1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 20:02:22 +01:00

mDNS updates (#4399)

This commit is contained in:
Jesse Hills
2023-02-09 10:25:44 +13:00
committed by GitHub
parent c6742117d3
commit ac6693f177
6 changed files with 31 additions and 33 deletions

View File

@@ -157,6 +157,11 @@ class DashboardImportDiscovery:
return
if state_change == ServiceStateChange.Removed:
self.import_state.pop(name, None)
return
if state_change == ServiceStateChange.Updated and name not in self.import_state:
# Ignore updates for devices that are not in the import state
return
info = zeroconf.get_service_info(service_type, name)
_LOGGER.debug("-> resolved info: %s", info)