diff --git a/homeassistant/components/satel_integra/binary_sensor.py b/homeassistant/components/satel_integra/binary_sensor.py index 5acc49d1d1b..0e9688f0d37 100644 --- a/homeassistant/components/satel_integra/binary_sensor.py +++ b/homeassistant/components/satel_integra/binary_sensor.py @@ -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