dakboard / Cloud-Platform

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

HA battery icon changes #1946

Closed cocarrig closed 7 months ago

cocarrig commented 8 months 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 8 months 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 7 months ago

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