Wink fan support (#5174)
* Initial commit for Wink fan support * Added fan to discovery list * Raise NotImplementedError and fixed is_on * Added speed property * Update __init__.py
This commit is contained in:
1 parent
9f765836f8
commit
0da8418f3f
7 files changed
+177
-13
No files matched your search
@@ -55,6 +55,15 @@ class TestDemoFan(unittest.TestCase):
|
||||
self.hass.block_till_done()
|
||||
self.assertEqual(STATE_OFF, self.get_entity().state)
|
||||
|
||||
def test_set_direction(self):
|
||||
"""Test setting the direction of the device."""
|
||||
self.assertEqual(STATE_OFF, self.get_entity().state)
|
||||
|
||||
fan.set_direction(self.hass, FAN_ENTITY_ID, fan.DIRECTION_REVERSE)
|
||||
self.hass.block_till_done()
|
||||
self.assertEqual(fan.DIRECTION_REVERSE,
|
||||
self.get_entity().attributes.get('direction'))
|
||||
|
||||
def test_set_speed(self):
|
||||
"""Test setting the speed of the device."""
|
||||
self.assertEqual(STATE_OFF, self.get_entity().state)
|
||||
|
||||
Reference in new issue
Block a user