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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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):