mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Enable and convert to future annotations (#838)
This commit is contained in:
@@ -14,7 +14,11 @@ async def test_fan_speed(dev: SmartDevice, mocker: MockerFixture):
|
||||
"""Test fan speed feature."""
|
||||
fan: FanModule = dev.modules["FanModule"]
|
||||
level_feature = fan._module_features["fan_speed_level"]
|
||||
assert level_feature.minimum_value <= level_feature.value <= level_feature.maximum_value
|
||||
assert (
|
||||
level_feature.minimum_value
|
||||
<= level_feature.value
|
||||
<= level_feature.maximum_value
|
||||
)
|
||||
|
||||
call = mocker.spy(fan, "call")
|
||||
await fan.set_fan_speed_level(3)
|
||||
|
Reference in New Issue
Block a user