From 8882668f9ec5771ef92418e3b5ed533e3a0a665b Mon Sep 17 00:00:00 2001 From: rwjack Date: Sat, 24 Aug 2024 10:06:57 +0200 Subject: [PATCH] Fix #1017 --- custom_components/adaptive_lighting/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index c908418c..98a8d8e1 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -2490,7 +2490,7 @@ async def significant_change( # Ensure HASS is correctly updating your light's state with # light.turn_on calls if any problems arise. This # can happen e.g. using zigbee2mqtt with 'report: false' in device settings. - await async_update_entity(hass, light) + await async_update_entity(self.hass, light) refreshed_state = self.hass.states.get(light) assert refreshed_state is not None