mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 14:54:04 +02:00
parent
d768a1e825
commit
26974c8fd5
1 changed files with 1 additions and 1 deletions
|
|
@ -1067,7 +1067,7 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
return
|
||||
# See #80. Doesn't check if transitions differ but it does the job.
|
||||
last_service_data = self.turn_on_off_listener.last_service_data
|
||||
if light in last_service_data and last_service_data[light] == service_data:
|
||||
if last_service_data.get(light) == service_data:
|
||||
_LOGGER.debug(
|
||||
"%s: Cancelling adapt to light %s, there's no new values to set (context.id='%s')",
|
||||
self._name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue