mirror of
https://github.com/Andre0512/hon.git
synced 2025-07-08 03:50:33 +00:00
Fix mqtt
This commit is contained in:
parent
0d3033faf5
commit
5b6c7f98d6
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue