mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
fix some comments
This commit is contained in:
parent
0dbf4b3c10
commit
4f75286f64
@ -90,16 +90,16 @@ class MqttMotor(MotorDevice):
|
||||
|
||||
@property
|
||||
def is_open(self):
|
||||
""" True if device is open. """
|
||||
""" True if device is current position is not zero. """
|
||||
return self._state > 0
|
||||
|
||||
def open(self, **kwargs):
|
||||
""" Close the device. """
|
||||
""" Open the device. """
|
||||
mqtt.publish(self.hass, self._command_topic, self._payload_open,
|
||||
self._qos)
|
||||
|
||||
def close(self, **kwargs):
|
||||
""" Open the device. """
|
||||
""" Close the device. """
|
||||
mqtt.publish(self.hass, self._command_topic, self._payload_close,
|
||||
self._qos)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user