Skip to content

Commit

Permalink
#395 make sure we are connected
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerza committed Jan 20, 2025
1 parent a2de710 commit 37f5570
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ha_addon_sunsynk_multi/sensor_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ async def callback_sensor(now: int) -> None:
sensors_to_read: set[Sensor] = set()
sensors_to_publish: set[ASensor] = set()

await ist.inv.connect() # Check that we are connected #395

# Flush pending writes
while ist.write_queue:
sensor, value = ist.write_queue.popitem()
Expand Down

0 comments on commit 37f5570

Please sign in to comment.