odya / hass-ina219-ups-hat

Home Assistant UPS Hat integration. Waveshare and others based on INA219
MIT License
11 stars 2 forks source link

Entity sensor.hassio_ups_remaining_capacity #12

Closed boboruml closed 3 months ago

boboruml commented 4 months ago

Hi.
After setup and run showing this warning in log:

Entity sensor.hassio_ups_remaining_capacity (<class 'custom_components.ina219_ups_hat.sensor.RemainingCapacitySensor'>) is using native unit of measurement 'mAh' which is not a valid unit for the device class ('energy_storage') it is using; expected one of ['MWh', 'Wh', 'MJ', 'kWh', 'GJ']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/odya/hass-ina219-ups-hat/issues

Its code bug or other error in config?
Thanks