Fix incorrect state updates in FakeTestProtocols (#861)

This commit is contained in:
Steven B
2024-04-24 12:25:16 +01:00
committed by GitHub
parent 6e5cae1f47
commit e410e4f3f3
10 changed files with 32 additions and 18 deletions

View File

@@ -295,6 +295,7 @@ async def test_modify_preset(dev: IotBulb, mocker):
assert preset.color_temp == 0
await dev.save_preset(preset)
await dev.update()
assert dev.presets[0].brightness == 10
with pytest.raises(KasaException):