mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Forgot to refactor demo.
This commit is contained in:
parent
ec88733b57
commit
6fc68e9c8a
@ -38,12 +38,12 @@ class DemoGarageDoor(GarageDoorDevice):
|
|||||||
""" True if device is closed. """
|
""" True if device is closed. """
|
||||||
return self._state == STATE_CLOSED
|
return self._state == STATE_CLOSED
|
||||||
|
|
||||||
def close(self, **kwargs):
|
def close_door(self, **kwargs):
|
||||||
""" Close the device. """
|
""" Close the device. """
|
||||||
self._state = STATE_CLOSED
|
self._state = STATE_CLOSED
|
||||||
self.update_ha_state()
|
self.update_ha_state()
|
||||||
|
|
||||||
def open(self, **kwargs):
|
def open_door(self, **kwargs):
|
||||||
""" Open the device. """
|
""" Open the device. """
|
||||||
self._state = STATE_OPEN
|
self._state = STATE_OPEN
|
||||||
self.update_ha_state()
|
self.update_ha_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user