mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 14:01:14 +08:00
chore: update miot_mips.py
event_occured -> event_occurred
This commit is contained in:
parent
36a63a007e
commit
338911cfdb
@ -920,9 +920,8 @@ class MipsCloudClient(_MipsClient):
|
||||
) -> 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:
|
||||
@ -957,9 +956,8 @@ class MipsCloudClient(_MipsClient):
|
||||
) -> 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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user