Skip to content

Commit

Permalink
Merge pull request #375 from Schnitzel/dev_init_update
Browse files Browse the repository at this point in the history
Fix raising error from first data update coordinator refresh
  • Loading branch information
b-rowan authored Sep 17, 2024
2 parents ba6a220 + a6693d4 commit fe6b838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/miner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
m_coordinator = MinerCoordinator(hass, entry)
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = m_coordinator

await m_coordinator.async_config_entry_first_refresh()

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

await async_setup_services(hass)
Expand Down

0 comments on commit fe6b838

Please sign in to comment.