mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 20:36:35 +00:00
Remove condition from binary sensor
This commit is contained in:
parent
e8d9bfd33c
commit
6dd7d9d158
@ -6,9 +6,6 @@ const { util: { temperatureUnits } } = hass;
|
||||
|
||||
function binarySensorIcon(state) {
|
||||
const activated = state.state && state.state === 'off';
|
||||
if (state.state && state.state === 'unavailable') {
|
||||
return 'mdi:alert-circle-outline';
|
||||
}
|
||||
switch (state.attributes.sensor_class) {
|
||||
case 'opening':
|
||||
return activated ? 'mdi:crop-square' : 'mdi:exit-to-app';
|
||||
|
Loading…
x
Reference in New Issue
Block a user