Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Replaced deprecated async_setup_platforms
  • Loading branch information
eyesoft authored Feb 9, 2023
1 parent 698dbc1 commit 19650ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/min_renovasjon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
min_renovasjon = MinRenovasjon(hass, street_name, street_code, house_no, county_id, date_format)

hass.data[DOMAIN]["data"] = min_renovasjon
hass.config_entries.async_setup_platforms(config_entry, ["sensor"])
await hass.config_entries.async_forward_entry_setups(config_entry, ["sensor"])

return True

Expand Down

0 comments on commit 19650ed

Please sign in to comment.