Fix ONVIF camera_address using uninitialized inner device attribute (#172219)

This commit is contained in:
J. Nick Koston
2026-05-25 22:15:41 -05:00
committed by GitHub
parent 0faf96b983
commit 4f50ee5675
+1 -1
View File
@@ -39,7 +39,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ONVIFConfigEntry) -> boo
await async_populate_options(hass, entry)
device = ONVIFDevice(hass, entry)
camera_address = f"{device.device.host}:{device.device.port}"
camera_address = f"{device.host}:{device.port}"
async with AsyncExitStack() as stack:
# Register cleanup callback for device