-
Notifications
You must be signed in to change notification settings - Fork 4
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
cannot import name 'DEVICE_CLASS_TEMPERATURE' error with HA 2025.1.0 #8
Comments
Comment out the following in sensor.py:- DEVICE_CLASS_TEMPERATURE,DEVICE_CLASS_HUMIDITY,DEVICE_CLASS_ILLUMINANCE,DEVICE_CLASS_CO2,DEVICE_CLASS_BATTERY#) Then change:- To:- In custom_components/sensecap/sensor.py |
The correction is working, no more error in the integration. best regards |
Sorry I don't understand:- i have suppressed all about my devices ( maps entities etc) in HA before doing the opéraiton but now they are not détected ( no notification) |
sorry i ve solved the second problem. tanks a lot for your help i can now monitor the green houses |
Since Home assistant update 2025.1.0 the integration generate an error :
ImportError: cannot import name 'DEVICE_CLASS_TEMPERATURE' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)
i ve read that DEVICE_CLASS_TEMPERATURE have been removed from home assistant const.
Is it possible to correct code
best regards
The text was updated successfully, but these errors were encountered: