mirror of
https://github.com/thecode/ha-rpi_gpio.git
synced 2025-07-26 04:06:38 +00:00
Fix regressions in cover (#327)
This commit is contained in:
parent
902c9808a2
commit
aa563dfd45
@ -199,7 +199,8 @@ class Hub:
|
|||||||
bias = BIAS[bias],
|
bias = BIAS[bias],
|
||||||
active_low = active_low)},
|
active_low = active_low)},
|
||||||
) as request:
|
) as request:
|
||||||
entity._attr_is_on = True if request.get_value(port) == Value.ACTIVE else False
|
# Although we prefer to set the _attr_is_on attribute, in cover it does not exists for whatever reason.
|
||||||
|
entity.is_on = True if request.get_value(port) == Value.ACTIVE else False
|
||||||
|
|
||||||
_LOGGER.debug(f"current value for port {port}: {entity.is_on}")
|
_LOGGER.debug(f"current value for port {port}: {entity.is_on}")
|
||||||
self._edge_events = True
|
self._edge_events = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user