fix some comments

This commit is contained in:
sfam 2015-11-26 09:38:25 +00:00
parent 0dbf4b3c10
commit 4f75286f64

View File

@ -90,16 +90,16 @@ class MqttMotor(MotorDevice):
@property @property
def is_open(self): def is_open(self):
""" True if device is open. """ """ True if device is current position is not zero. """
return self._state > 0 return self._state > 0
def open(self, **kwargs): def open(self, **kwargs):
""" Close the device. """ """ Open the device. """
mqtt.publish(self.hass, self._command_topic, self._payload_open, mqtt.publish(self.hass, self._command_topic, self._payload_open,
self._qos) self._qos)
def close(self, **kwargs): def close(self, **kwargs):
""" Open the device. """ """ Close the device. """
mqtt.publish(self.hass, self._command_topic, self._payload_close, mqtt.publish(self.hass, self._command_topic, self._payload_close,
self._qos) self._qos)