mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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
|
return discovered_gateways
|
||||||
|
|
||||||
for host in hosts:
|
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
|
discovered_gateways[mac] = host
|
||||||
|
|
||||||
_LOGGER.debug("Discovered gateways: %s", discovered_gateways)
|
_LOGGER.debug("Discovered gateways: %s", discovered_gateways)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user