Implement capability attributes (#30545)
* Implement capability attributes * Fix HeOS update order * Fix test
This commit is contained in:
1 parent
4cd83e71dd
commit
ed6aef2fd7
6 files changed
+58
-14
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user