mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix smoke detection for HomematicIP Cloud (#31753)
This commit is contained in:
parent
30e302a8a3
commit
656c901f7b
@ -227,7 +227,11 @@ class HomematicipSmokeDetector(HomematicipGenericDevice, BinarySensorDevice):
|
|||||||
@property
|
@property
|
||||||
def is_on(self) -> bool:
|
def is_on(self) -> bool:
|
||||||
"""Return true if smoke is detected."""
|
"""Return true if smoke is detected."""
|
||||||
return self._device.smokeDetectorAlarmType != SmokeDetectorAlarmType.IDLE_OFF
|
if self._device.smokeDetectorAlarmType:
|
||||||
|
return (
|
||||||
|
self._device.smokeDetectorAlarmType != SmokeDetectorAlarmType.IDLE_OFF
|
||||||
|
)
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class HomematicipWaterDetector(HomematicipGenericDevice, BinarySensorDevice):
|
class HomematicipWaterDetector(HomematicipGenericDevice, BinarySensorDevice):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user