hOn/custom_components/hon
Vadym Melnychuk 047800ccbf fix(thread-safety): use schedule_update_ha_state in async entity methods
Replace self.async_write_ha_state() with self.schedule_update_ha_state()
in async command handlers across climate, fan, light, lock and switch
entities. HA Core 2026.5.x enforces that async_write_ha_state() is only
called from the event loop, but pyhon-revived delivers MQTT push updates
from another thread, causing 'Detected blocking call'/thread-safety
errors on 2026.5.4.

See https://developers.home-assistant.io/docs/asyncio_thread_safety/#async_write_ha_state
Fixes mmalolepszy/hon-revived#44

Cherry-picked from hon-revived PR #43 (head VadymMelnychuk:async-write-ha-state-fix).
(cherry picked from commit e99a734c2dd07ca216f452a006b1605a1529a710)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 10:49:47 +03:00
..
translations Translation update in Russian and Ukrainian for new strings added in v0.18.0 (#33) 2026-05-17 23:16:52 +02:00
__init__.py Fix incompatibility with HA 2025.6 2025-06-26 01:00:29 +02:00
binary_sensor.py Added new OV entities and corresponding translations (#31) 2026-03-09 18:53:24 +01:00
button.py Update issue templates and docs to point to right repo and person 2025-12-19 19:25:53 +01:00
climate.py fix(thread-safety): use schedule_update_ha_state in async entity methods 2026-06-12 10:49:47 +03:00
config_flow.py Fix mypy errors 2023-11-20 16:39:33 +01:00
const.py Change poll to push 2024-03-25 02:26:20 +01:00
entity.py Fix automatic updates of entities 2025-06-26 01:02:47 +02:00
fan.py fix(thread-safety): use schedule_update_ha_state in async entity methods 2026-06-12 10:49:47 +03:00
light.py fix(thread-safety): use schedule_update_ha_state in async entity methods 2026-06-12 10:49:47 +03:00
lock.py fix(thread-safety): use schedule_update_ha_state in async entity methods 2026-06-12 10:49:47 +03:00
manifest.json Bump version v0.18.0 2026-03-13 19:19:46 +01:00
number.py Added new OV entities and corresponding translations (#31) 2026-03-09 18:53:24 +01:00
select.py Fix automatic updates of entities 2025-06-26 01:02:47 +02:00
sensor.py Added new OV entities and corresponding translations (#31) 2026-03-09 18:53:24 +01:00
switch.py fix(thread-safety): use schedule_update_ha_state in async entity methods 2026-06-12 10:49:47 +03:00
typedefs.py Fix issues from refactoring 2023-07-24 21:37:48 +02:00
util.py Rebuild to single data coordinator 2024-03-29 01:22:44 +01:00