diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 06cd2f87..cf38d21f 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -359,7 +359,8 @@ async def handle_change_switch_settings( # deep copy the defaults so we don't modify the original dicts switch._set_changeable_settings(data=data, defaults=deepcopy(defaults)) - switch._update_time_interval_listener() + if switch.is_on: + switch._update_time_interval_listener() _LOGGER.debug( "Called 'adaptive_lighting.change_switch_settings' service with '%s'",