-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
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
min_max not exposing device_class #78979
Comments
min_max documentation Hey there @fabaff, mind taking a look at this issue as it has been labeled with an integration ( |
I am happy to try and fix this, and provide a suggested patch, but I'm new to HA so might take me a while to figure it out. |
Also confirming that when one of the source temperature sensors is used, Google Assistant sees the sensor fine. |
A workaround is to add the device_class via 'customize'. |
I'm not using |
Yes, that I think would be the right fix. The code that I pointed to in trait.py uses device_class to match against the Google Assistant types. Without device_class being set, no corresponding Google Assistant device type will be matched, so these sensors will never be exposable to Google Assistant. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
In homeassistant/components/google_assistant/trait.py a check is made for the sensor device class so that the sensor can be matched to an appropriate Google Assistant sensor type.
For min_max sensors, it doesn't appear as though this attribute is exposed, and so no min_max based sensors
can be exported or synced with Google Assistant.
Presumably the device_class should be inherited from one of the child sensors.
What version of Home Assistant Core has the issue?
2022.9.1
What was the last working version of Home Assistant Core?
Not known
What type of installation are you running?
Home Assistant Container
Integration causing the issue
min_max
Link to integration documentation on our website
https://www.home-assistant.io/integrations/min_max/
Diagnostics information
config_entry-google_assistant-821d371e09089be29be4406bfeeb5e1b.json.txt
The debug dump shows the sensor in the entity_config list, but nothing in the sync list.
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: