[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 toOff
(False
) in Home Assistant when the corresponding value inregParams
orsysParams
wasFalse
.- The issue occurred because the previous logic treated
False
values asNone
and skipped them during updates. - Updated the
_handle_coordinator_update
method inentity.py
to explicitly check forNone
instead of usingor
logic, ensuring thatFalse
values are correctly recognized as valid states. - Improved debug logging for better traceability of state synchronization and updates.
- The issue occurred because the previous logic treated
Changed
entity.py
:- Replaced
or
logic in_handle_coordinator_update
with explicitif-elif
checks to handleFalse
values properly. - Enhanced debug logging to provide more detailed insights into state updates and data fetching.
- Replaced
Testing
- Verified functionality by toggling
regParams["feederWorks"]
betweenTrue
andFalse
and confirmed that the binary sensor state in Home Assistant updates correctly toOn
andOff
.
Impact
- Binary sensors now correctly reflect both
On
(True
) andOff
(False
) states, improving reliability and usability of the integration.