Skip to content

Commit

Permalink
chore: update miot_mips.py
Browse files Browse the repository at this point in the history
event_occured -> event_occurred
  • Loading branch information
eltociear authored Jan 30, 2025
1 parent 36a63a0 commit 338911c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/xiaomi_home/miot/miot_mips.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,8 @@ def sub_event(
) -> bool:
if not isinstance(did, str) or handler is None:
raise MIoTMipsError('invalid params')
# Spelling error: event_occured
topic: str = (
f'device/{did}/up/event_occured/'
f'device/{did}/up/event_occurred/'
f'{"#" if siid is None or eiid is None else f"{siid}/{eiid}"}')

def on_event_msg(topic: str, payload: str, ctx: Any) -> None:
Expand Down Expand Up @@ -957,9 +956,8 @@ def unsub_event(
) -> bool:
if not isinstance(did, str):
raise MIoTMipsError('invalid params')
# Spelling error: event_occured
topic: str = (
f'device/{did}/up/event_occured/'
f'device/{did}/up/event_occurred/'
f'{"#" if siid is None or eiid is None else f"{siid}/{eiid}"}')
return self.__unreg_broadcast_external(topic=topic)

Expand Down

0 comments on commit 338911c

Please sign in to comment.