Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore is_on behavior for specialized BinarySensor subclasses #29

Merged
merged 4 commits into from
Jul 7, 2024

Conversation

jaraco
Copy link
Owner

@jaraco jaraco commented Jul 7, 2024

In home-assistant/core#121300, we learned that d2b6939 caused a regression for motion sensors. It turns out that sensor.Sensor and Motion devices also need this behavior (but presumably only when type=Occupancy).

This change adds a test and reverts the offending change to restore behavior selectively.

Future bugs and refactorings will deal with the underlying architectural problems that led to this issue, but this change addresses the symptom to get HA users' expectations restored ASAP.

@jaraco jaraco merged commit 7201d9f into main Jul 7, 2024
26 checks passed
@jaraco jaraco deleted the bugfix/ha-121300-occupancy branch July 7, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant