Skip to content

Commit

Permalink
chore: Update async_setup_entry to use async_forward_entry_setups
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocjohn committed Nov 29, 2024
1 parent dd969f3 commit af6b8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/lunar_phase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
"moon_calc": moon,
}

await hass.config_entries.async_forward_entry_setup(config_entry, "sensor")
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)

except Exception as err:
_LOGGER.error("Error setting up Moon Phase: %s", err, exc_info=True)
Expand Down

0 comments on commit af6b8e7

Please sign in to comment.