Implement capability attributes (#30545)

* Implement capability attributes

* Fix HeOS update order

* Fix test
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-01-08 21:22:56 +01:00
1 parent 4cd83e71dd
commit ed6aef2fd7
6 files changed
+58 -14

No files matched your search

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