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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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