diff --git a/custom_components/sonoff/core/ewelink/local.py b/custom_components/sonoff/core/ewelink/local.py index 7490d635..3137afb6 100644 --- a/custom_components/sonoff/core/ewelink/local.py +++ b/custom_components/sonoff/core/ewelink/local.py @@ -3,6 +3,7 @@ decode such messages by itself because it does not manage the list of known devices and their devicekey. """ + import asyncio import base64 import errno @@ -97,7 +98,9 @@ def _handler1( state_change: ServiceStateChange, ): """Step 1. Receive change event from zeroconf.""" - if state_change == ServiceStateChange.Removed: + # accept: eWeLink_1000xxxxxx.local. + # skip: ihost-1001xxxxxx.local. + if state_change == ServiceStateChange.Removed or not name.startswith("eWeLink"): return asyncio.create_task(self._handler2(zeroconf, service_type, name))