mirror of
https://github.com/home-assistant/core.git
synced 2026-09-13 20:20:10 +01:00
Adjust homekit to not access DeviceEntry.config_entries (#181744)
This commit is contained in:
@@ -1259,10 +1259,10 @@ class HomeKit:
|
||||
config[ATTR_SW_VERSION] = device_entry.sw_version
|
||||
if device_entry.hw_version:
|
||||
config[ATTR_HW_VERSION] = device_entry.hw_version
|
||||
if device_entry.config_entries:
|
||||
first_entry = list(device_entry.config_entries)[0]
|
||||
if entry := self.hass.config_entries.async_get_entry(first_entry):
|
||||
config[ATTR_INTEGRATION] = entry.domain
|
||||
if entry := self.hass.config_entries.async_get_entry(
|
||||
device_entry.config_entry_id
|
||||
):
|
||||
config[ATTR_INTEGRATION] = entry.domain
|
||||
|
||||
|
||||
class HomeKitPairingQRView(HomeAssistantView):
|
||||
|
||||
Reference in New Issue
Block a user