Improve typing of deCONZ services (#69444)

This commit is contained in:
Robert Svensson 2022-04-10 15:24:28 +02:00 committed by GitHub
parent afd21e4084
commit e44d34018e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,6 +167,7 @@ async def async_remove_orphaned_entries_service(gateway: DeconzGateway) -> None:
] ]
# Don't remove the Gateway host entry # Don't remove the Gateway host entry
if gateway.api.config.mac:
gateway_host = device_registry.async_get_device( gateway_host = device_registry.async_get_device(
connections={(CONNECTION_NETWORK_MAC, gateway.api.config.mac)}, connections={(CONNECTION_NETWORK_MAC, gateway.api.config.mac)},
identifiers=set(), identifiers=set(),