mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Screenlogic config: Filter unexpected host names (#70256)
This commit is contained in:
parent
3fa3ee9ea2
commit
16c6d79265
@ -35,7 +35,8 @@ async def async_discover_gateways_by_unique_id(hass):
|
||||
return discovered_gateways
|
||||
|
||||
for host in hosts:
|
||||
mac = _extract_mac_from_name(host[SL_GATEWAY_NAME])
|
||||
if (name := host[SL_GATEWAY_NAME]).startswith("Pentair:"):
|
||||
mac = _extract_mac_from_name(name)
|
||||
discovered_gateways[mac] = host
|
||||
|
||||
_LOGGER.debug("Discovered gateways: %s", discovered_gateways)
|
||||
|
Loading…
x
Reference in New Issue
Block a user