mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Fix incorrect state updates in FakeTestProtocols (#861)
This commit is contained in:
@@ -182,6 +182,7 @@ class IotBulb(IotDevice, Bulb):
|
||||
50
|
||||
>>> preset.brightness = 100
|
||||
>>> asyncio.run(bulb.save_preset(preset))
|
||||
>>> asyncio.run(bulb.update())
|
||||
>>> bulb.presets[0].brightness
|
||||
100
|
||||
|
||||
|
@@ -66,6 +66,7 @@ class IotStrip(IotDevice):
|
||||
>>> strip.is_on
|
||||
True
|
||||
>>> asyncio.run(strip.turn_off())
|
||||
>>> asyncio.run(strip.update())
|
||||
|
||||
Accessing individual plugs can be done using the `children` property:
|
||||
|
||||
|
Reference in New Issue
Block a user