Update switch.py

This commit is contained in:
Benjamin Auquite 2023-04-03 01:40:29 -05:00
commit 2f0bad82ff

View file

@ -1142,7 +1142,6 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
)
self.async_write_ha_state()
# Return here if there's no lights to adapt.
if lights is None:
lights = self._lights