Skip to content

Commit

Permalink
fix: some event:motion-detected does not contain 'arguments'
Browse files Browse the repository at this point in the history
  • Loading branch information
caibinqing committed Jan 28, 2025
1 parent 57422dd commit 0caa1b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 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,12 @@ 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
# 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 0caa1b5

Please sign in to comment.