Fix Lutron keypad led state always off at startup (#91149)

This commit is contained in:
Mike Knoop
2023-04-12 03:59:52 -07:00
committed by GitHub
parent 8ce17458a9
commit e8fb7b8cf1

View File

@@ -107,8 +107,5 @@ class LutronLed(LutronDevice, SwitchEntity):
def update(self) -> None:
"""Call when forcing a refresh of the device."""
if self._lutron_device.last_state is not None:
return
# The following property getter actually triggers an update in Lutron
self._lutron_device.state # pylint: disable=pointless-statement