mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +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) {
|
function binarySensorIcon(state) {
|
||||||
const activated = state.state && state.state === 'off';
|
const activated = state.state && state.state === 'off';
|
||||||
if (state.state && state.state === 'unavailable') {
|
|
||||||
return 'mdi:alert-circle-outline';
|
|
||||||
}
|
|
||||||
switch (state.attributes.sensor_class) {
|
switch (state.attributes.sensor_class) {
|
||||||
case 'opening':
|
case 'opening':
|
||||||
return activated ? 'mdi:crop-square' : 'mdi:exit-to-app';
|
return activated ? 'mdi:crop-square' : 'mdi:exit-to-app';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user