dakboard / Cloud-Platform

Feature requests, enhancements and anything you'd like to see in DAKboard!
https://dakboard.com
168 stars 39 forks source link

HA battery icon changes #1946

Closed cocarrig closed 1 year ago

cocarrig commented 1 year ago

Currently in HA configuration, showing a batter level (as opposed to raw percentage) indication is made dependent upon the a 'state_ class measurement' field in the device's attribute not being present from HA.

In review, this does not appear to be consistent with all device types and is not needed. This case has been created to remove this dependency from generating the battery icon payload for these entities.

Supporting details: Device_class battery and unit_of_measurement % need only to be required.

image

Dan-Peck commented 1 year ago

Once this modification is released, when the HA block matches an entity with a state_class of measurement AND device_class is also battery, we will format as a battery type.

Dan-Peck commented 1 year ago

Merged in @ c1f6ffa and added to the queue for upcoming release to the live site.