mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-03 08:15:30 +08:00
fix: some event:motion-detected
does not contain 'arguments'
(#712)
This commit is contained in:
parent
6f058bf392
commit
417af787c4
@ -1213,10 +1213,12 @@ class MipsLocalClient(_MipsClient):
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user