Skip to content

0.3.3 - Race condition Hot Fix

Choose a tag to compare

@DAB-LABS DAB-LABS released this 07 Jun 13:46
· 15 commits to main since this release

Fixed

Updating a device while its entity was still being registered with Home Assistant could raise "Attribute hass is None for " and roll back the change. The race fired most often when promoting a remote with several commands (each command-add fires a device update before the entity registration coroutine has finished). Affects every HAIR entity platform (media_player, climate, fan, light, switch, cover, remote, button). Each entity's update path now defers state writes until registration completes; the initial state captured at construction time is correct and is written when HA finishes adding the entity.