You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[1.0.13] - 2024-12-20
Fixed
Binary Sensor State Update Issue: Resolved an issue where binary sensors (e.g., feederWorks) were not updating their state to Off (False) in Home Assistant when the corresponding value in regParams or sysParams was False.
The issue occurred because the previous logic treated False values as None and skipped them during updates.
Updated the _handle_coordinator_update method in entity.py to explicitly check for None instead of using or logic, ensuring that False values are correctly recognized as valid states.
Improved debug logging for better traceability of state synchronization and updates.
Changed
entity.py:
Replaced or logic in _handle_coordinator_update with explicit if-elif checks to handle False values properly.
Enhanced debug logging to provide more detailed insights into state updates and data fetching.
Testing
Verified functionality by toggling regParams["feederWorks"] between True and False and confirmed that the binary sensor state in Home Assistant updates correctly to On and Off.
Impact
Binary sensors now correctly reflect both On (True) and Off (False) states, improving reliability and usability of the integration.