mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Add binary sensor icon for DEVICE_CLASS_BATTERY_CHARGING (#6876)
* Add binary sensor icon for DEVICE_CLASS_BATTERY_CHARGING * Update icons for DEVICE_CLASS_BATTERY_CHARGING
This commit is contained in:
parent
07569f10b5
commit
2dffe7ba9e
@ -7,6 +7,8 @@ export const binarySensorIcon = (state: HassEntity) => {
|
|||||||
switch (state.attributes.device_class) {
|
switch (state.attributes.device_class) {
|
||||||
case "battery":
|
case "battery":
|
||||||
return activated ? "hass:battery" : "hass:battery-outline";
|
return activated ? "hass:battery" : "hass:battery-outline";
|
||||||
|
case "battery_charging":
|
||||||
|
return activated ? "hass:battery" : "hass:battery-charging";
|
||||||
case "cold":
|
case "cold":
|
||||||
return activated ? "hass:thermometer" : "hass:snowflake";
|
return activated ? "hass:thermometer" : "hass:snowflake";
|
||||||
case "connectivity":
|
case "connectivity":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user