mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Do not use async_config_entry_first_refresh in fronius (#128153)
This commit is contained in:
parent
4c1b7add39
commit
cb02c723e0
@ -199,7 +199,10 @@ class FroniusSolarNet:
|
|||||||
name=_inverter_name,
|
name=_inverter_name,
|
||||||
inverter_info=_inverter_info,
|
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)
|
self.inverter_coordinators.append(_coordinator)
|
||||||
|
|
||||||
# Only for re-scans. Initial setup adds entities through sensor.async_setup_entry
|
# Only for re-scans. Initial setup adds entities through sensor.async_setup_entry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user