custom-cards / custom-card-helpers

Custom Card Helper Functions/Types for Developers
https://custom-cards.github.io/custom-card-helpers/
MIT License
48 stars 29 forks source link

function domainIcon should account for Binary Sensor Device Class #57

Open declankenny opened 2 years ago

declankenny commented 2 years ago

Currently all binary sensors are represented bymdi:radiobox-blank or mdi:checkbox-marked-circle.

It would be helpful if this function could also take device class as a parameter to allow for the correct representation of each device.

mochoandre commented 2 years ago

Put here the same question that in lovelace-mushroom.

I am not a developer, but if it will look for the device class to determine the correct icon, the icons will loose previous customizations right (like in customize.yaml)?