zigpy / zha

Zigbee Home Automation
Apache License 2.0
21 stars 19 forks source link

Emit state change events for sensors not tied to an attribute #60

Closed puddly closed 3 months ago

puddly commented 3 months ago

Sensors not tied to an attribute (such as the Sinope thermostat HVAC mode) did not emit an update event when their state changed.

This fixes all commented out ZHA unit tests.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.12%. Comparing base (6794a64) to head (0ec0108).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #60 +/- ## ========================================== + Coverage 95.00% 95.12% +0.11% ========================================== Files 61 61 Lines 9306 9306 ========================================== + Hits 8841 8852 +11 + Misses 465 454 -11 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.