[go: nahoru, domu]

Skip to content

Commit

Permalink
fix non-thread-safe operation (#77)
Browse files Browse the repository at this point in the history
* fix non-thread-safe operation

* update according to pr suggestions
  • Loading branch information
cloudrainstar committed May 7, 2024
1 parent f3f0ab6 commit f1254f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/jcihitachi_tw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,4 @@ def update(self):
)

# Important: We have to reset the update scheduler to prevent old status from wrongly being loaded.
self.coordinator.async_set_updated_data(None)
self.hass.loop.call_soon_threadsafe(self.coordinator.async_set_updated_data, None)

0 comments on commit f1254f7

Please sign in to comment.