-
Notifications
You must be signed in to change notification settings - Fork 43
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
HA Release 2022.4 causes sensors to fail #62
Comments
Hello switch.py: and I already have this error in logs : Logger: homeassistant.components.switch Error adding entities for domain switch with platform apsystems_ecur |
I have made all the changes from HAEdwin (Pull requests => File changed) and it works perfectly again. |
Yes i saw, thanks |
In theory, shouldn't this be closed AFTER the PR that solves this was merged? (even better, have the PR do that automatically...) |
You are soo right. Better for reference also (if one might encounter the same issue). |
Compatibility with 2022.4 fixed in release v1.2.12 |
sensor.py needs to be modified (no time to create pull request at this moment, this is my reminder here)
Add the following line:
from homeassistant.helpers.entity import EntityCategory
Replace:
entity_category="diagnostic"
for
entity_category=EntityCategory.DIAGNOSTIC
switch.py and binairy_sensor.py also fixed in my repository. If no comments are made on this fix I'll close this issue.
The text was updated successfully, but these errors were encountered: