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

WASH_DEV_SENSORS need to be binary sensor (instead sensor) #830

Open
szczukot opened this issue Nov 20, 2024 · 0 comments
Open

WASH_DEV_SENSORS need to be binary sensor (instead sensor) #830

szczukot opened this issue Nov 20, 2024 · 0 comments

Comments

@szczukot
Copy link

Describe the bug
This integration has a sensor that collects data from HA: core/homeassistant/const.py at dev · home-assistant/core · GitHub
for example strings “off” and “on”.
But on UI I always see “Off” and “On”.
And now, when I try use any logic (for example card visibilty) based on this sensor I have big problem.
Instead of using a “On” that I see everywhere on HA, i need to use “on”.
I only know this because I looked at the code.
A normal user won’t know why it doesn’t work for him (when use “On”).

And this sensor is typical on/off - binary.
https://github.com/ollo69/ha-smartthinq-sensors/blob/master/custom_components/smartthinq_sensors/device_helpers.py#L114

Screenshots
image

Environment details:

  • Environment (HASSIO, Raspbian, etc): hassio
  • Home Assistant version installed: 2024.11
  • Component version installed: 0.40.3
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

1 participant