sdwilsh / hass-truenas

TrueNAS integration for Home Assistant
MIT License
39 stars 11 forks source link

update inheritance from Entity to SensorEntity #106

Closed colemamd closed 2 years ago

colemamd commented 2 years ago

Starting in HA 2022.4.0b0 I started receiving the following log entry: "Temperature sensor sensor.disk_wd_xxx_temperature (<class 'custom_components.truenas.sensor.DiskTemperatureSensor'>) does not inherit SensorEntity, this will be unsupported in Home Assistant Core 2022.7.Please report it to the custom component author. The issue is that the Entity base class was being used vice the SensorEntity base class.

colemamd commented 2 years ago

When black gets updated the Lint check will pass.. Not sure what's changed with translations causing hassfest to fail.

sdwilsh commented 2 years ago

I've got black updated. Looking into the hassfest failures, but that one is going to be more difficult, I fear.

sdwilsh commented 2 years ago

I think hassfest is failing because TrueNAS got added to the brands repo: https://github.com/home-assistant/brands/pull/3119

sdwilsh commented 2 years ago

That was it, it looks like :D