1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00
ha-core/homeassistant/components/amcrest
Julien "_FrnchFrgg_" Rivaud 5a9c3fea70
Enable passing Amcrest/Dahua signals through as HA events (#49004)
Some of the compatible hardware sends event signals that wouldn't map
well to entities, e.g. NTP sync notifications, SIP registering
information, or « doorbell button pressed » events with no « return to
rest state » matching event to have a properly behaved binary sensor.

Instead of only monitoring specific events, subscribe to all of them,
and pass them through (in addition to handling them as before if they
correspond to a configured binary sensor).

Also bump python-amcrest to 1.7.2. Digest of the changes:

* The library now passes through the event data instead of just presence of a
 "Start" member in in.
* Connection to some devices has been fixed by not throwing the towel on
  minor errors.

https://github.com/tchellomello/python-amcrest/compare/1.7.1...1.7.2
2021-04-13 21:33:46 +02:00
..
__init__.py Enable passing Amcrest/Dahua signals through as HA events (#49004) 2021-04-13 21:33:46 +02:00
binary_sensor.py Use contextlib.suppress where possible (#48189) 2021-03-23 14:36:43 +01:00
camera.py Fix services for Armcrest & Logi Circle (#49166) 2021-04-13 16:32:39 +02:00
const.py Add legacy polling option for Amcrest motion detection (#36955) 2020-06-24 23:20:39 -07:00
helpers.py Retry failed Amcrest commands that change settings (#36917) 2020-06-22 18:36:41 -07:00
manifest.json Enable passing Amcrest/Dahua signals through as HA events (#49004) 2021-04-13 21:33:46 +02:00
sensor.py Migrate integrations a-c to extend SensorEntity (#48210) 2021-03-22 12:37:16 +01:00
services.yaml Add prettier (in pre-commit and CI) (#33693) 2020-04-05 17:27:16 +02:00