Improve device handling
Build probe jar / build (push) Failing after 1m33s

This commit is contained in:
gerviba committed 2026-11-01 22:44:02 +01:00
1 parent d663f3336b
commit c9d257a442
11 files changed
+138 -25

No files matched your search

+4
View File
@@ -18,6 +18,7 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_send
from .device import parse_device_meta, sync_device_registry
from .const import CONF_WEBHOOK_ID, DOMAIN, PLATFORMS, HaProbeRuntimeData, signal_entities
_LOGGER = logging.getLogger(__name__)
@@ -49,6 +50,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: HaProbeConfigEntry) -> b
display_name = device.get("haDisplayName")
if ha_id and display_name:
entry.runtime_data.devices[ha_id] = display_name
meta = parse_device_meta(device)
entry.runtime_data.device_meta[ha_id] = meta
sync_device_registry(hass, entry.entry_id, ha_id, meta)
entities = payload.get("entities") or ()
if entities: