Run coordinator config_entry_first_refresh in rituals_perfume_genie setup (#54080)

This commit is contained in:
Milan Meulemans
2021-08-06 06:13:47 +02:00
committed by GitHub
parent 582f2ae2f6
commit 02d6918165

View File

@@ -39,7 +39,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hublot = device.hublot
coordinator = RitualsDataUpdateCoordinator(hass, device)
await coordinator.async_refresh()
await coordinator.async_config_entry_first_refresh()
hass.data[DOMAIN][entry.entry_id][DEVICES][hublot] = device
hass.data[DOMAIN][entry.entry_id][COORDINATORS][hublot] = coordinator