Closed marcorizzi closed 2 years ago
this should be fixed with the latest version, can you confirm?
well done! Updated. Do you think that also Battery Charging Power (in and out) needs to be updated to battery device class ?
as per the developer doc, battery only allows % as a unit of measure. i dont see how i could put in/out power in percentage here...
You are right. Good!
The unit of your entity is not a supported unit for the device class of the entity, power. Statistics can not be generated until this entity has a supported unit.
If this unit was provided by an integration, this is a bug. Please report an issue.
If you have set this unit yourself, and want to have statistics generated, make sure the unit matches the device class. The supported units are documented in the developer documentation.
Some example are Charge Percentage User/Real that has 'power' class with unit % and need to changed to 'battery'