Skip to content

Commit

Permalink
Merge pull request #20 from tijsverkoyen/19-fix-deprecated-code
Browse files Browse the repository at this point in the history
Fix deprecated usage of async_forward_entry_setup
  • Loading branch information
tijsverkoyen authored Sep 4, 2024
2 parents fcdcdd6 + 90c7726 commit e479f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/energy_id/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

# Forward the setup to the sensor platform.
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, 'sensor')
hass.config_entries.async_forward_entry_setups(entry, ['sensor'])
)

async_setup_services(hass)
Expand Down

0 comments on commit e479f5a

Please sign in to comment.