Fix fan not checking supported_features (#35248)

* Fix fan not checking supported_features

* Fix pylint

* Fix test

* Code cleanup

* Fix fan demo

* Code style improvement
This commit is contained in:
Xiaonan Shen authored and GitHub committed 2020-05-06 09:58:07 +02:00
1 parent 1c5b4dbd97
commit 2581b031d9
3 files changed
+25 -17

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ class TestFanEntity(unittest.TestCase):
assert self.fan.state == "off"
assert len(self.fan.speed_list) == 0
assert self.fan.supported_features == 0
assert {"speed_list": []} == self.fan.capability_attributes
assert self.fan.capability_attributes == {}
# Test set_speed not required
self.fan.oscillate(True)
with pytest.raises(NotImplementedError):