Skip to content

Commit

Permalink
dumb fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raman325 committed Mar 5, 2024
1 parent 38ba5b8 commit 9fc5bdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/lock_code_manager/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def async_update_usercodes(
continue

if not (
disabling_entity_ids := (
disabling_entity_ids := list(
state["entity_id"]
for key, state in states.items()
if (
Expand All @@ -166,8 +166,6 @@ async def async_update_usercodes(
):
return

_LOGGER.error(list(disabling_entity_ids))

await lock.async_clear_usercode(int(self.slot_num))

_LOGGER.info(
Expand Down

0 comments on commit 9fc5bdf

Please sign in to comment.