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

Device-class problem with the states #222

Closed
McGiverGim opened this issue Aug 15, 2020 · 2 comments
Closed

Device-class problem with the states #222

McGiverGim opened this issue Aug 15, 2020 · 2 comments

Comments

@McGiverGim
Copy link

The binary_sensor.snapshots_stale is not being shown as expected in the lovelace UI.

The device-class: problem with states on/off is being showed in the UI of Home Assistant in a correct way (when it's off it appears as OK -no problem-). But your sensor uses True/False states and the UI is not able to interpret and shows them as True/False.

I don't know if this is a problem of Home Assistant that must accept True/False as states or is easier if you change the states of your sensorto the habitual on/off.

Regards and thanks for your plugin!!!

@sabeechen
Copy link
Owner

Yikes, you're right. This has been wrong since the addon was first released.
Unfortunately, fixing this would likely break anyone who has created an automation based on the sensor. Let me see if I can find a better way to fix this.

@sabeechen
Copy link
Owner

I've just released a new version, v0.101.1, that should resolve this by using the proper states. If it doesn't work properly for you after updating, please let me know.

ajoah added a commit to ajoah/hassio-google-drive-backup that referenced this issue Aug 23, 2020
ajoah added a commit to ajoah/hassio-google-drive-backup that referenced this issue Aug 23, 2020
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

No branches or pull requests

2 participants