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

Temperature sensors not inheriting SensorEntity warning in HA 2022.4 #9

Open
iridris opened this issue Apr 6, 2022 · 2 comments
Open

Comments

@iridris
Copy link
Contributor

iridris commented Apr 6, 2022

Describe the bug
Starting with HA 2022.4 release, log entries are listed on HA startup stating that a couple of the temperature sensors are not inheriting SensorEntity, which will be unsupported starting in HA 2022.7.

To Reproduce
Steps to reproduce the behavior:

  1. Update to HA 2022.4
  2. View logs
  3. See the warning message about the temperature sensors.

Expected behavior
No warnings.

Screenshots

Server:

  • OS: HA OS
  • HA: core 2022.4.b6
  • docker?: no

Additional context
Logs:

Temperature sensor sensor.prusa_mini_temp_nozzle (<class 'custom_components.prusa_connect.sensor.PrusaSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author.
Temperature sensor sensor.prusa_mini_temp_bed (<class 'custom_components.prusa_connect.sensor.PrusaSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author.
@sq3tle
Copy link
Owner

sq3tle commented Apr 6, 2022

Thanks for letting me know! I'll fix it when I have some free time...

@iridris
Copy link
Contributor Author

iridris commented Apr 15, 2022

I think this might be because the various temperature sensors are not declaring the "device class" property as being "temperature". But I'm not a developer, and don't know that for sure.

I think this would probably be set up in class PrusaSensor(Entity):, but again, I'm not a developer so I'm grasping at straws.

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