d49a223a02
* 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> |
||
---|---|---|
.. | ||
__init__.py | ||
binary_sensor.py | ||
camera.py | ||
const.py | ||
helpers.py | ||
manifest.json | ||
sensor.py | ||
services.yaml | ||
switch.py |