Skip to content

Commit cb02c72

Browse files
authored
Do not use async_config_entry_first_refresh in fronius (#128153)
1 parent 4c1b7ad commit cb02c72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

homeassistant/components/fronius/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ async def _init_devices_inverter(self, _now: datetime | None = None) -> None:
199199
name=_inverter_name,
200200
inverter_info=_inverter_info,
201201
)
202-
await _coordinator.async_config_entry_first_refresh()
202+
if self.config_entry.state == ConfigEntryState.LOADED:
203+
await _coordinator.async_refresh()
204+
else:
205+
await _coordinator.async_config_entry_first_refresh()
203206
self.inverter_coordinators.append(_coordinator)
204207

205208
# Only for re-scans. Initial setup adds entities through sensor.async_setup_entry

0 commit comments

Comments
 (0)