mirror of
https://github.com/home-assistant/core.git
synced 2025-05-04 05:59:16 +00:00
Improve typing of deCONZ services (#69444)
This commit is contained in:
parent
afd21e4084
commit
e44d34018e
@ -167,12 +167,13 @@ async def async_remove_orphaned_entries_service(gateway: DeconzGateway) -> None:
|
|||||||
]
|
]
|
||||||
|
|
||||||
# Don't remove the Gateway host entry
|
# Don't remove the Gateway host entry
|
||||||
gateway_host = device_registry.async_get_device(
|
if gateway.api.config.mac:
|
||||||
connections={(CONNECTION_NETWORK_MAC, gateway.api.config.mac)},
|
gateway_host = device_registry.async_get_device(
|
||||||
identifiers=set(),
|
connections={(CONNECTION_NETWORK_MAC, gateway.api.config.mac)},
|
||||||
)
|
identifiers=set(),
|
||||||
if gateway_host and gateway_host.id in devices_to_be_removed:
|
)
|
||||||
devices_to_be_removed.remove(gateway_host.id)
|
if gateway_host and gateway_host.id in devices_to_be_removed:
|
||||||
|
devices_to_be_removed.remove(gateway_host.id)
|
||||||
|
|
||||||
# Don't remove the Gateway service entry
|
# Don't remove the Gateway service entry
|
||||||
gateway_service = device_registry.async_get_device(
|
gateway_service = device_registry.async_get_device(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user