Add tamper device class for binary sensor (#10268)

This commit is contained in:
Franck Nijhof
2021-10-14 12:22:07 +02:00
committed by GitHub
parent 4ad005f0bf
commit a91d25b27d
5 changed files with 15 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ export const binarySensorIcon = (state?: string, stateObj?: HassEntity) => {
case "gas":
case "problem":
case "safety":
case "tamper":
return is_off ? "hass:check-circle" : "hass:alert-circle";
case "smoke":
return is_off ? "hass:check-circle" : "hass:smoke";