From 4f50ee5675fc3ee1bd5ac732547523fae596f157 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 25 May 2026 22:15:41 -0500 Subject: [PATCH] Fix ONVIF camera_address using uninitialized inner device attribute (#172219) --- homeassistant/components/onvif/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/onvif/__init__.py b/homeassistant/components/onvif/__init__.py index 03fbd1562e86..0d947744e0f6 100644 --- a/homeassistant/components/onvif/__init__.py +++ b/homeassistant/components/onvif/__init__.py @@ -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