Skip to content

Commit

Permalink
fix: state change event function call (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored May 2, 2024
1 parent 1b64e50 commit 595781a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/keymaster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ async def homeassistant_started_listener(
async_track_state_change_event(
hass,
[lock.lock_entity_id for lock in locks_to_watch],
functools.partial(handle_state_change, hass, config_entry),
from_state=[STATE_LOCKED, STATE_UNLOCKED],
to_state=[STATE_LOCKED, STATE_UNLOCKED],
functools.partial(handle_state_change, hass, config_entry)
)
)

Expand Down

0 comments on commit 595781a

Please sign in to comment.