From 064b2cdb9fae78ab7574636aa0f7c5cd95af7765 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 29 Apr 2017 15:12:18 -0700 Subject: [PATCH] Remove state property from alarmdecoder binary sensor (#7370) --- homeassistant/components/binary_sensor/alarmdecoder.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/homeassistant/components/binary_sensor/alarmdecoder.py b/homeassistant/components/binary_sensor/alarmdecoder.py index e6292128710..21d33a4d303 100644 --- a/homeassistant/components/binary_sensor/alarmdecoder.py +++ b/homeassistant/components/binary_sensor/alarmdecoder.py @@ -11,7 +11,6 @@ from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.components.binary_sensor import BinarySensorDevice -from homeassistant.const import (STATE_ON, STATE_OFF, STATE_OPEN, STATE_CLOSED) from homeassistant.components.alarmdecoder import (ZONE_SCHEMA, CONF_ZONES, CONF_ZONE_NAME, @@ -69,14 +68,6 @@ class AlarmDecoderBinarySensor(BinarySensorDevice): async_dispatcher_connect( self.hass, SIGNAL_ZONE_RESTORE, self._restore_callback) - @property - def state(self): - """Return the state of the binary sensor.""" - if self._type == 'opening': - return STATE_OPEN if self.is_on else STATE_CLOSED - - return STATE_ON if self.is_on else STATE_OFF - @property def name(self): """Return the name of the entity."""