Skip to content

Commit 5361824

Browse files
committed
Change the recent fix to #97 to use async_schedule_update_ha_state instead
1 parent 6837a18 commit 5361824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/lightener/light.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def async_turn_on(self, **kwargs: Any) -> None:
158158
else:
159159
# Update the Lightener brightness level to the one being set.
160160
self._attr_brightness = brightness
161-
await self.async_update_ha_state()
161+
self.async_schedule_update_ha_state()
162162

163163
for entity in self._entities:
164164
service = SERVICE_TURN_ON

0 commit comments

Comments
 (0)