core/homeassistant/components/amcrest
Sean Vig d49a223a02
Fix updating Amcrest binary sensors (#80365)
* Fix updating Amcrest binary sensors

As detailed in https://bugs.python.org/issue32113, a generator
expression cannot be used with asynchronous components, even that the
resulting elements of the generator are normal objects.  Manually
iterate over the event codes and check if the events have happened.
Escape early on the first event that is triggered such that this is
functionally equivalent to using `any`.

* Update homeassistant/components/amcrest/binary_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-10-17 10:13:11 +02:00
..
__init__.py Fix audio detection for IP4m-1041 Amcrest camera (#80066) 2022-10-11 14:29:35 +02:00
binary_sensor.py Fix updating Amcrest binary sensors (#80365) 2022-10-17 10:13:11 +02:00
camera.py Use platform constants from root (#78032) 2022-09-08 12:24:45 +02:00
const.py Bump amcrest version to 1.9.7 (#68055) 2022-03-14 17:36:16 +01:00
helpers.py
manifest.json Bump amcrest version to 1.9.7 (#68055) 2022-03-14 17:36:16 +01:00
sensor.py
services.yaml Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02:00
switch.py