Added icon for power on/off (#7124)

This commit is contained in:
Simone Chemelli 2020-09-24 19:37:50 +02:00 committed by GitHub
parent 98dd21b75c
commit 003d55968e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,9 @@ export const binarySensorIcon = (state: HassEntity) => {
return is_off ? "hass:door-closed" : "hass:door-open";
case "garage_door":
return is_off ? "hass:garage" : "hass:garage-open";
case "gas":
case "power":
return is_off ? "hass:power-off" : "hass:power-on";
case "gas":
case "problem":
case "safety":
case "smoke":