Compare commits

...

2 Commits

Author SHA1 Message Date
Necroneco
35d9fa60e6
Merge 0caa1b566a into 20b0004746 2025-02-19 15:38:04 +08:00
Necroneco
0caa1b566a
fix: some event:motion-detected does not contain 'arguments' 2025-01-28 15:40:30 +08:00

View File

@ -1213,10 +1213,12 @@ class MipsLocalClient(_MipsClient):
or 'did' not in msg or 'did' not in msg
or 'siid' not in msg or 'siid' not in msg
or 'eiid' 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}') # self.log_error(f'on_event_msg, recv unknown msg, {payload}')
return return
if 'arguments' not in msg:
msg['arguments'] = []
if handler: if handler:
self.log_debug('local, on event_occurred, %s', payload) self.log_debug('local, on event_occurred, %s', payload)
handler(msg, ctx) handler(msg, ctx)