mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
ZWave alarm sensor cleanup (pylint fixes)
This commit is contained in:
parent
2495226c87
commit
5af4864326
@ -220,16 +220,18 @@ class ZWaveMultilevelSensor(ZWaveSensor):
|
||||
else:
|
||||
return unit
|
||||
|
||||
|
||||
class ZWaveAlarmSensor(ZWaveSensor):
|
||||
""" A Z-wave sensor that sends Alarm alerts
|
||||
|
||||
Examples include certain Multisensors that have motion and vibration capabilities.
|
||||
Z-Wave defines various alarm types such as Smoke, Flood, Burglar, CarbonMonoxide, etc.
|
||||
This wraps these events.
|
||||
Examples include certain Multisensors that have motion and
|
||||
vibration capabilities. Z-Wave defines various alarm types
|
||||
such as Smoke, Flood, Burglar, CarbonMonoxide, etc.
|
||||
|
||||
This wraps these alarms and allows you to use them to
|
||||
trigger things, etc.
|
||||
|
||||
COMMAND_CLASS_ALARM is what we get here.
|
||||
"""
|
||||
@property
|
||||
def state(self):
|
||||
""" Returns the state of the sensor. """
|
||||
return str(self._value.data)
|
||||
# Empty subclass for now. Allows for later customizations
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user