Jablotronpy

Latest version: v0.10.0

Safety actively analyzes 641002 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.5.0

Maintenance in order to improve the robustness of handling incorrect responses.

0.4.3

Some users reported recursion in HomeAssistant Jablotron, this release should prevent that and make it easier to debug.

0.4.1

Allow the exception to be imported

0.4.0

Breaking change on `get_programmable_gates()` for adding the state of a PG.

Before it would return a list of PG's, it will not return a dictionary with the following keys ['service-states', 'states', 'programmableGates'] in order to get to the old behavior you need to select the key "programmableGates".

What's Changed
* Add support for PG names by fdegier in https://github.com/fdegier/JablotronPy/pull/9


**Full Changelog**: https://github.com/fdegier/JablotronPy/compare/0.3.1...0.4.0

0.3.1

This release adds:
- Adds support for controlling programmable gates.
- Includes names of section and components in the output


Two new methods are available.

Control section (shortcut to `control_component`:

jablotron.control_programmable_gate(service_id=service_id, component_id=pg_id, state="ON")


Control section (shortcut to `control_component`:

jablotron.control_section(service_id=service_id, component_id = section_id, on=False)

0.3.0

Breaking change on `get_sections()` for adding the state of a section.

Before it would return a list of sections, it will not return a dictionary with the following keys `['service-states', 'states', 'sections']` in order to get to the old behavior you need to select the key `"sections"`.

Example output:
python
{
'service-states':
{
'events': [
{
'type': 'TROUBLE',
'message': 'Fault - Periphery',
'date': '2022-11-27T23:55:34+0100'
}],
'last-event-time': '2023-01-04T20:01:05+0100',
'service-name': 'Name'
},
'states': [
{
'cloud-component-id': 'SEC-12345678',
'state': 'DISARM'
}],
'sections': [
{
'cloud-component-id': 'SEC-12345678',
'name': 'Name',
'can-control': True,
'need-authorization': True,
'partial-arm-enabled': False
}]
}

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.