From 36a63a007e45a17dc7f05e9ad2d87274717750b9 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Thu, 30 Jan 2025 14:19:52 +0900 Subject: [PATCH] chore: update miot_lan.py event_occured -> event_occurred --- custom_components/xiaomi_home/miot/miot_lan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_home/miot/miot_lan.py b/custom_components/xiaomi_home/miot/miot_lan.py index fd9ff47..1b19860 100644 --- a/custom_components/xiaomi_home/miot/miot_lan.py +++ b/custom_components/xiaomi_home/miot/miot_lan.py @@ -1307,7 +1307,7 @@ class MIoTLan: self._main_loop.call_soon_threadsafe( sub.handler, param, sub.handler_ctx) elif ( - msg['method'] == 'event_occured' + msg['method'] == 'event_occurred' and 'siid' in msg['params'] and 'eiid' in msg['params'] ):