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.
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 itsdevice_class
. Unfortunately,PERCENTAGE
('%') is not a valid unit for aSTORAGE
device_class. Unfortunately, there is currently no more suitable device_class to describe a fuel level, so I have set thedevice_class
toNone
for the time being.