Skip to content

Commit

Permalink
fix: support event messages without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld committed Feb 9, 2025
1 parent 631cb97 commit c8ac6cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_home/miot/miot_mips.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,10 +1213,11 @@ def on_event_msg(topic: str, payload: str, ctx: Any):
or 'did' not in msg
or 'siid' not in msg
or 'eiid' not in msg
or 'arguments' not in msg
):
# self.log_error(f'on_event_msg, recv unknown msg, {payload}')
return
if 'arguments' not in msg:
msg['arguments'] = []
if handler:
self.log_debug('local, on event_occurred, %s', payload)
handler(msg, ctx)
Expand Down

0 comments on commit c8ac6cd

Please sign in to comment.