Fixed style attribute with redefined built in method names.

This commit is contained in:
Eric Rolf 2016-02-11 09:20:38 -05:00
parent fd0afaa204
commit 175b49236c
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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()