Skip to content

2.2.0

Latest
Compare
Choose a tag to compare
@hostcc hostcc released this 26 May 18:33
46f8a66

What's Changed

  • @hostcc in #57: Support for sensor and device registration
    • Added support for registering sensors and devices with the G90 alarm panel. Sensor registration utilizes notifications the panel sends when a new sensor is added and refreshes the list of sensors to reflect the change. Contrary, the device registration does not have an associated panel's notification, hence uses polling to check when new device is added.

    • Sensor and device definitions are now split into G90SensorDefinitions and G90DeviceDefinitions classes, to distinguish between those.

    • ❗ Breaking change: G90SensorTypes has been renamed to G90PeripheralTypes, since it is now used for both sensor and device definitions.

    • Two more callbacks have been added to G90Alarm - sensor_list_change_callback and device_list_change_callback, which are invoked when sensor or device list changes, respectively. Please notes those are generated by the package internally, and may not have associated panel's notifications

    • ❗ Breaking change: All user-visible callbacks of G90Alarm and G90Sensor classes are now
      instances of G90CallbackList class, which allows for multiple callbacks for the same event.

      For compatibility reasons the properties to set such callbacks add the value to the callback list internally. Alternatively, the return values from the properties could be used to access methods of underlying G90CallbackList class - for example, G90Alarm(...).sensor_callback.add(callback) or G90Alarm(...).sensor_callback.remove(callback) methods could be used to add or remove the callback, respectively

    • G90BaseCommand now handles failures and errors if reported by the panel

Full Changelog: 2.1.1...2.2.0