Update __init__.py

This commit is contained in:
thekiwismarthome
2026-02-13 20:52:57 +13:00
committed by GitHub
parent ab5bd34c07
commit f0c2bb6f29
@@ -44,10 +44,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.data[DOMAIN][DATA_STORAGE] = storage
hass.data[DOMAIN]["image_handler"] = image_handler # NEW
# Store storage instance in hass.data
hass.data.setdefault(DOMAIN, {})
hass.data[DOMAIN][DATA_STORAGE] = storage
# Register WebSocket commands
await _async_register_websocket_handlers(hass, storage)