diff --git a/custom_components/hon/__init__.py b/custom_components/hon/__init__.py index 2a7fdab..b25563c 100644 --- a/custom_components/hon/__init__.py +++ b/custom_components/hon/__init__.py @@ -48,15 +48,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: coordinator: DataUpdateCoordinator[dict[str, Any]] = DataUpdateCoordinator( hass, _LOGGER, name=DOMAIN ) - hon.subscribe_updates(coordinator.async_set_updated_data) + hon.subscribe_updates(lambda: hass.add_job(coordinator.async_update_listeners)) hass.data.setdefault(DOMAIN, {}) hass.data[DOMAIN][entry.unique_id] = {"hon": hon, "coordinator": coordinator} - for platform in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, platform) - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) + return True diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index 8bb1c08..ab42e34 100644 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -9,7 +9,7 @@ "iot_class": "cloud_push", "issue_tracker": "https://github.com/Andre0512/hon/issues", "requirements": [ - "pyhOn @ git+https://github.com/IoTLabs-pl/pyhOn@v0.17.5" + "pyhOn @ git+https://github.com/IoTLabs-pl/pyhOn@v0.17.6" ], - "version": "0.14.0-beta.8" + "version": "0.14.0-beta.9" }