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

Use unavailable and unknown states consistently when dealing with sensors and entities #3821

Merged

Conversation

dshokouhi
Copy link
Member

@dshokouhi dshokouhi commented Aug 25, 2023

Summary

Breaking change: Unavailable is now unavailable and Unknown is now unknown for all sensors that report those states. Phone SIM, Next Alarm, Media Session, Geocoded location

  • Noticed in a few places our casing was off causing issues in the frontend not showing unavailable entities properly
  • Use a consistent variable in all places where we send or evaluate the state to avoid mistakes. In some places this is kept for function consistency purposes like when comparing multiple states.

Screenshots

image

image

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

@dshokouhi dshokouhi force-pushed the consistent_unavailable_unknown_usage branch from cce2553 to 3f6e782 Compare August 26, 2023 23:49
@JBassett JBassett merged commit bb58a57 into home-assistant:master Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants