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:
William Scanlon authored and Paulus Schoutsen committed 2017-01-13 22:08:13 -08:00
1 parent 9f765836f8
commit 0da8418f3f
7 files changed
+177 -13

No files matched your search

+9
View File
@@ -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)