mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-11-21 03:28:57 +08:00
fix: ignore mdns REMOVED package (#1296)
Some checks failed
Some checks failed
This commit is contained in:
@@ -1048,11 +1048,11 @@ class MIoTClient:
|
||||
|
||||
mips = self._mips_local.get(group_id, None)
|
||||
if mips:
|
||||
if state == MipsServiceState.REMOVED:
|
||||
mips.disconnect()
|
||||
self._mips_local.pop(group_id, None)
|
||||
return
|
||||
if (
|
||||
# if state == MipsServiceState.REMOVED:
|
||||
# mips.disconnect()
|
||||
# self._mips_local.pop(group_id, None)
|
||||
# return
|
||||
if ( # ADDED or UPDATED
|
||||
mips.client_id == self._entry_data['virtual_did']
|
||||
and mips.host == data['addresses'][0]
|
||||
and mips.port == data['port']
|
||||
|
||||
Reference in New Issue
Block a user