mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Fixed style attribute with redefined built in method names.
This commit is contained in:
parent
fd0afaa204
commit
175b49236c
@ -91,11 +91,11 @@ class GarageDoorDevice(Entity):
|
||||
""" Is the garage door closed or opened. """
|
||||
return None
|
||||
|
||||
def close(self):
|
||||
def close_door(self):
|
||||
""" Closes the garage door. """
|
||||
raise NotImplementedError()
|
||||
|
||||
def open(self):
|
||||
def open_door(self):
|
||||
""" Opens the garage door. """
|
||||
raise NotImplementedError()
|
||||
|
||||
|
@ -37,14 +37,14 @@ class TestGarageDoorDemo(unittest.TestCase):
|
||||
self.hass.states.is_state(RIGHT, 'open')
|
||||
|
||||
def test_open_door(self):
|
||||
gd.open(self.hass, LEFT)
|
||||
gd.open_door(self.hass, LEFT)
|
||||
|
||||
self.hass.pool.block_till_done()
|
||||
|
||||
self.assertTrue(gd.is_closed(self.hass, LEFT))
|
||||
|
||||
def test_close_door(self):
|
||||
gd.close(self.hass, RIGHT)
|
||||
gd.close_door(self.hass, RIGHT)
|
||||
|
||||
self.hass.pool.block_till_done()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user