Fix implicit-return in satel_integra (#122925)

This commit is contained in:
epenet
2024-07-31 20:49:19 +02:00
committed by GitHub
parent b8ac86939b
commit 9860109db9

View File

@@ -109,10 +109,11 @@ class SatelIntegraBinarySensor(BinarySensorEntity):
return self._name
@property
def icon(self):
def icon(self) -> str | None:
"""Icon for device by its type."""
if self._zone_type is BinarySensorDeviceClass.SMOKE:
return "mdi:fire"
return None
@property
def is_on(self):