DurgNomis-drol / ha_toyota

Toyota Connected Services integration for Home Assistant.
MIT License
148 stars 29 forks source link

remove device_class from fuel_level sensors #177

Closed CM000n closed 10 months ago

CM000n commented 10 months ago

This fix should solve a problem that @clews described here: https://github.com/DurgNomis-drol/ha_toyota/pull/166#issuecomment-1820420303

Home Assistant checks whether the native_unit_of_measurement of a sensor matches its device_class. Unfortunately, PERCENTAGE ('%') is not a valid unit for a STORAGE device_class. Unfortunately, there is currently no more suitable device_class to describe a fuel level, so I have set the device_class to None for the time being.