mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +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. """
|
""" Is the garage door closed or opened. """
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def close(self):
|
def close_door(self):
|
||||||
""" Closes the garage door. """
|
""" Closes the garage door. """
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def open(self):
|
def open_door(self):
|
||||||
""" Opens the garage door. """
|
""" Opens the garage door. """
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
@ -37,14 +37,14 @@ class TestGarageDoorDemo(unittest.TestCase):
|
|||||||
self.hass.states.is_state(RIGHT, 'open')
|
self.hass.states.is_state(RIGHT, 'open')
|
||||||
|
|
||||||
def test_open_door(self):
|
def test_open_door(self):
|
||||||
gd.open(self.hass, LEFT)
|
gd.open_door(self.hass, LEFT)
|
||||||
|
|
||||||
self.hass.pool.block_till_done()
|
self.hass.pool.block_till_done()
|
||||||
|
|
||||||
self.assertTrue(gd.is_closed(self.hass, LEFT))
|
self.assertTrue(gd.is_closed(self.hass, LEFT))
|
||||||
|
|
||||||
def test_close_door(self):
|
def test_close_door(self):
|
||||||
gd.close(self.hass, RIGHT)
|
gd.close_door(self.hass, RIGHT)
|
||||||
|
|
||||||
self.hass.pool.block_till_done()
|
self.hass.pool.block_till_done()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user