Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Commit 23298fa

Browse files
committed
Fix for dummylabs#76 (use async_forward_entry_setups)
1 parent e8c8d55 commit 23298fa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

custom_components/watchman/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
127127
hass.data[DOMAIN]["coordinator"] = coordinator
128128
hass.data[DOMAIN_DATA] = entry.options # TODO: refactor
129129

130-
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
130+
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
131131

132132
entry.async_on_unload(entry.add_update_listener(update_listener))
133133
await add_services(hass)
@@ -141,6 +141,12 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
141141
# parse_config will be scheduled once HA is fully loaded
142142
_LOGGER.info("Watchman started [%s]", VERSION)
143143

144+
145+
# resources = hass.data["lovelace"]["resources"]
146+
# await resources.async_get_info()
147+
# for itm in resources.async_items():
148+
# _LOGGER.debug(itm)
149+
144150
return True
145151

146152

0 commit comments

Comments
 (0)