Fix icon for binary_sensor
This commit is contained in:
parent
551e08ef37
commit
6ab2f89a30
@ -1,7 +1,7 @@
|
|||||||
"""Binary ensor platform for blueprint."""
|
"""Binary ensor platform for blueprint."""
|
||||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||||
from . import update_data
|
from . import update_data
|
||||||
from .const import BINARY_SENSOR_DEVICE_CLASS, DOMAIN_DATA, SENSOR_ICON
|
from .const import BINARY_SENSOR_DEVICE_CLASS, DOMAIN_DATA
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_platform(
|
async def async_setup_platform(
|
||||||
@ -53,11 +53,6 @@ class BlueprintBinarySensor(BinarySensorDevice):
|
|||||||
"""Return true if the binary sensor is on."""
|
"""Return true if the binary sensor is on."""
|
||||||
return self._status
|
return self._status
|
||||||
|
|
||||||
@property
|
|
||||||
def icon(self):
|
|
||||||
"""Return the icon of the sensor."""
|
|
||||||
return SENSOR_ICON
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
"""Return the state attributes."""
|
"""Return the state attributes."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user