mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix screenlogic to get the macaddress from discovery (#68687)
This commit is contained in:
parent
b9f172899e
commit
7198ec06d3
@ -79,7 +79,7 @@ class ScreenlogicConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
|
||||
async def async_step_dhcp(self, discovery_info: dhcp.DhcpServiceInfo) -> FlowResult:
|
||||
"""Handle dhcp discovery."""
|
||||
mac = _extract_mac_from_name(discovery_info.hostname)
|
||||
mac = format_mac(discovery_info.macaddress)
|
||||
await self.async_set_unique_id(mac)
|
||||
self._abort_if_unique_id_configured(
|
||||
updates={CONF_IP_ADDRESS: discovery_info.ip}
|
||||
|
@ -8,7 +8,7 @@
|
||||
"dhcp": [
|
||||
{"registered_devices": true},
|
||||
{
|
||||
"hostname": "pentair: *",
|
||||
"hostname": "pentair*",
|
||||
"macaddress": "00C033*"
|
||||
}
|
||||
],
|
||||
|
@ -82,7 +82,7 @@ DHCP: list[dict[str, str | bool]] = [
|
||||
{'domain': 'samsungtv', 'macaddress': '4844F7*'},
|
||||
{'domain': 'samsungtv', 'macaddress': '8CEA48*'},
|
||||
{'domain': 'screenlogic', 'registered_devices': True},
|
||||
{'domain': 'screenlogic', 'hostname': 'pentair: *', 'macaddress': '00C033*'},
|
||||
{'domain': 'screenlogic', 'hostname': 'pentair*', 'macaddress': '00C033*'},
|
||||
{'domain': 'sense', 'hostname': 'sense-*', 'macaddress': '009D6B*'},
|
||||
{'domain': 'sense', 'hostname': 'sense-*', 'macaddress': 'DCEFCA*'},
|
||||
{'domain': 'sense', 'hostname': 'sense-*', 'macaddress': 'A4D578*'},
|
||||
|
Loading…
x
Reference in New Issue
Block a user