mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix implicit-return in xiaomi_aqara (#122940)
This commit is contained in:
parent
d393317eb2
commit
dde97a02f0
@ -202,6 +202,8 @@ class XiaomiNatgasSensor(XiaomiBinarySensor):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class XiaomiMotionSensor(XiaomiBinarySensor):
|
class XiaomiMotionSensor(XiaomiBinarySensor):
|
||||||
"""Representation of a XiaomiMotionSensor."""
|
"""Representation of a XiaomiMotionSensor."""
|
||||||
@ -298,6 +300,8 @@ class XiaomiMotionSensor(XiaomiBinarySensor):
|
|||||||
self._state = True
|
self._state = True
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class XiaomiDoorSensor(XiaomiBinarySensor, RestoreEntity):
|
class XiaomiDoorSensor(XiaomiBinarySensor, RestoreEntity):
|
||||||
"""Representation of a XiaomiDoorSensor."""
|
"""Representation of a XiaomiDoorSensor."""
|
||||||
@ -357,6 +361,8 @@ class XiaomiDoorSensor(XiaomiBinarySensor, RestoreEntity):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class XiaomiWaterLeakSensor(XiaomiBinarySensor):
|
class XiaomiWaterLeakSensor(XiaomiBinarySensor):
|
||||||
"""Representation of a XiaomiWaterLeakSensor."""
|
"""Representation of a XiaomiWaterLeakSensor."""
|
||||||
@ -401,6 +407,8 @@ class XiaomiWaterLeakSensor(XiaomiBinarySensor):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class XiaomiSmokeSensor(XiaomiBinarySensor):
|
class XiaomiSmokeSensor(XiaomiBinarySensor):
|
||||||
"""Representation of a XiaomiSmokeSensor."""
|
"""Representation of a XiaomiSmokeSensor."""
|
||||||
@ -443,6 +451,8 @@ class XiaomiSmokeSensor(XiaomiBinarySensor):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
class XiaomiVibration(XiaomiBinarySensor):
|
class XiaomiVibration(XiaomiBinarySensor):
|
||||||
"""Representation of a Xiaomi Vibration Sensor."""
|
"""Representation of a Xiaomi Vibration Sensor."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user