Skip to content

Commit

Permalink
Merge pull request #7 from netsoft-ruidias/v1.1.0
Browse files Browse the repository at this point in the history
V1.1.0
  • Loading branch information
netsoft-ruidias authored May 8, 2023
2 parents 0373fa1 + d453f9c commit 34a3e65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/myedenred/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType):
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
"""Set up the component from a config entry."""
hass.data.setdefault(DOMAIN, {})

hass.config_entries.async_setup_platforms(entry, PLATFORMS)

# Update compatibility with Home Assistant 2022.12
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True

async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):
Expand Down

0 comments on commit 34a3e65

Please sign in to comment.