mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +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."""
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_SMOKE,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
@ -88,7 +88,7 @@ class SatelIntegraBinarySensor(BinarySensorEntity):
|
||||
@property
|
||||
def icon(self):
|
||||
"""Icon for device by its type."""
|
||||
if self._zone_type == DEVICE_CLASS_SMOKE:
|
||||
if self._zone_type is BinarySensorDeviceClass.SMOKE:
|
||||
return "mdi:fire"
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user