Remove condition from binary sensor

This commit is contained in:
William Scanlon 2016-03-01 12:02:13 -05:00
parent e8d9bfd33c
commit 6dd7d9d158
1 changed files with 0 additions and 3 deletions

View File

@ -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';