Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Change 
`hass.config_entries.async_setup_platforms(entry, PLATFORMS)`
to
`await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)`
  • Loading branch information
DeadEnded authored Jun 29, 2023
1 parent 573e343 commit d83a2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ha-pyamdgpuinfo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up AMD GPU from a config entry."""
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True


Expand Down

0 comments on commit d83a2ee

Please sign in to comment.