mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Use enums in satel_integra (#62048)
This commit is contained in:
parent
dce9d551f8
commit
72462b5dd1
@ -1,6 +1,6 @@
|
|||||||
"""Support for Satel Integra zone states- represented as binary sensors."""
|
"""Support for Satel Integra zone states- represented as binary sensors."""
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
DEVICE_CLASS_SMOKE,
|
BinarySensorDeviceClass,
|
||||||
BinarySensorEntity,
|
BinarySensorEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
@ -88,7 +88,7 @@ class SatelIntegraBinarySensor(BinarySensorEntity):
|
|||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
"""Icon for device by its type."""
|
"""Icon for device by its type."""
|
||||||
if self._zone_type == DEVICE_CLASS_SMOKE:
|
if self._zone_type is BinarySensorDeviceClass.SMOKE:
|
||||||
return "mdi:fire"
|
return "mdi:fire"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user