Do not use async_config_entry_first_refresh in fronius (#128153)
parent
4c1b7add39
commit
cb02c723e0
|
@ -199,7 +199,10 @@ class FroniusSolarNet:
|
|||
name=_inverter_name,
|
||||
inverter_info=_inverter_info,
|
||||
)
|
||||
await _coordinator.async_config_entry_first_refresh()
|
||||
if self.config_entry.state == ConfigEntryState.LOADED:
|
||||
await _coordinator.async_refresh()
|
||||
else:
|
||||
await _coordinator.async_config_entry_first_refresh()
|
||||
self.inverter_coordinators.append(_coordinator)
|
||||
|
||||
# Only for re-scans. Initial setup adds entities through sensor.async_setup_entry
|
||||
|
|
Loading…
Reference in New Issue