Skip to content

Commit

Permalink
Fix startup race in cast (home-assistant#113843)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored and balloob committed Mar 22, 2024
1 parent 14c4cdc commit 8056886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/cast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up Cast from a config entry."""
hass.data[DOMAIN] = {"cast_platform": {}, "unknown_models": {}}
await home_assistant_cast.async_setup_ha_cast(hass, entry)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
hass.data[DOMAIN] = {"cast_platform": {}, "unknown_models": {}}
await async_process_integration_platforms(hass, DOMAIN, _register_cast_platform)
return True

Expand Down

0 comments on commit 8056886

Please sign in to comment.