Skip to content

Commit 89a883c

Browse files
authored
Remove remaining async_track_state_change
1 parent 5c6a7e8 commit 89a883c

File tree

1 file changed

+2
-4
lines changed
  • custom_components/circadian_lighting

1 file changed

+2
-4
lines changed

custom_components/circadian_lighting/switch.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,8 @@ async def async_added_to_hass(self):
241241
async_track_state_change_event(**sleep_kwargs)
242242

243243
if self._disable_entity is not None:
244-
async_track_state_change(
245-
**track_kwargs,
246-
entity_ids=self._disable_entity,
247-
from_state=self._disable_state,
244+
async_track_state_change_event(
245+
self.hass, self._disable_entity, self._state_changed
248246
)
249247

250248
if self._state is not None: # If not None, we got an initial value

0 commit comments

Comments
 (0)