python-kasa 0.7.0.dev2__py3-none-any.whl → 0.7.0.dev4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import pytest
2
2
 
3
3
  from kasa.iot import IotDevice
4
4
  from kasa.smart import SmartDevice
5
- from kasa.tests.conftest import dimmable_iot, parametrize
5
+ from kasa.tests.conftest import dimmable_iot, get_parent_and_child_modules, parametrize
6
6
 
7
7
  brightness = parametrize("brightness smart", component_filter="brightness")
8
8
 
@@ -10,13 +10,13 @@ brightness = parametrize("brightness smart", component_filter="brightness")
10
10
  @brightness
11
11
  async def test_brightness_component(dev: SmartDevice):
12
12
  """Test brightness feature."""
13
- brightness = dev.modules.get("Brightness")
13
+ brightness = next(get_parent_and_child_modules(dev, "Brightness"))
14
14
  assert brightness
15
15
  assert isinstance(dev, SmartDevice)
16
16
  assert "brightness" in dev._components
17
17
 
18
18
  # Test getting the value
19
- feature = dev.features["brightness"]
19
+ feature = brightness._device.features["brightness"]
20
20
  assert isinstance(feature.value, int)
21
21
  assert feature.value > 1 and feature.value <= 100
22
22
 
@@ -9,7 +9,7 @@ from pytest_mock import MockerFixture
9
9
 
10
10
  from kasa import Module
11
11
  from kasa.smart import SmartDevice
12
- from kasa.tests.device_fixtures import parametrize
12
+ from kasa.tests.device_fixtures import get_parent_and_child_modules, parametrize
13
13
 
14
14
  autooff = parametrize(
15
15
  "has autooff", component_filter="auto_off", protocol_filter={"SMART"}
@@ -33,13 +33,13 @@ async def test_autooff_features(
33
33
  dev: SmartDevice, feature: str, prop_name: str, type: type
34
34
  ):
35
35
  """Test that features are registered and work as expected."""
36
- autooff = dev.modules.get(Module.AutoOff)
36
+ autooff = next(get_parent_and_child_modules(dev, Module.AutoOff))
37
37
  assert autooff is not None
38
38
 
39
39
  prop = getattr(autooff, prop_name)
40
40
  assert isinstance(prop, type)
41
41
 
42
- feat = dev.features[feature]
42
+ feat = autooff._device.features[feature]
43
43
  assert feat.value == prop
44
44
  assert isinstance(feat.value, type)
45
45
 
@@ -47,13 +47,13 @@ async def test_autooff_features(
47
47
  @autooff
48
48
  async def test_settings(dev: SmartDevice, mocker: MockerFixture):
49
49
  """Test autooff settings."""
50
- autooff = dev.modules.get(Module.AutoOff)
50
+ autooff = next(get_parent_and_child_modules(dev, Module.AutoOff))
51
51
  assert autooff
52
52
 
53
- enabled = dev.features["auto_off_enabled"]
53
+ enabled = autooff._device.features["auto_off_enabled"]
54
54
  assert autooff.enabled == enabled.value
55
55
 
56
- delay = dev.features["auto_off_minutes"]
56
+ delay = autooff._device.features["auto_off_minutes"]
57
57
  assert autooff.delay == delay.value
58
58
 
59
59
  call = mocker.spy(autooff, "call")
@@ -86,10 +86,10 @@ async def test_auto_off_at(
86
86
  dev: SmartDevice, mocker: MockerFixture, is_timer_active: bool
87
87
  ):
88
88
  """Test auto-off at sensor."""
89
- autooff = dev.modules.get(Module.AutoOff)
89
+ autooff = next(get_parent_and_child_modules(dev, Module.AutoOff))
90
90
  assert autooff
91
91
 
92
- autooff_at = dev.features["auto_off_at"]
92
+ autooff_at = autooff._device.features["auto_off_at"]
93
93
 
94
94
  mocker.patch.object(
95
95
  type(autooff),
@@ -3,7 +3,7 @@ from pytest_mock import MockerFixture
3
3
 
4
4
  from kasa import Module
5
5
  from kasa.smart import SmartDevice
6
- from kasa.tests.device_fixtures import parametrize
6
+ from kasa.tests.device_fixtures import get_parent_and_child_modules, parametrize
7
7
 
8
8
  fan = parametrize("has fan", component_filter="fan_control", protocol_filter={"SMART"})
9
9
 
@@ -11,10 +11,9 @@ fan = parametrize("has fan", component_filter="fan_control", protocol_filter={"S
11
11
  @fan
12
12
  async def test_fan_speed(dev: SmartDevice, mocker: MockerFixture):
13
13
  """Test fan speed feature."""
14
- fan = dev.modules.get(Module.Fan)
14
+ fan = next(get_parent_and_child_modules(dev, Module.Fan))
15
15
  assert fan
16
-
17
- level_feature = dev.features["fan_speed_level"]
16
+ level_feature = fan._module_features["fan_speed_level"]
18
17
  assert (
19
18
  level_feature.minimum_value
20
19
  <= level_feature.value
@@ -36,9 +35,9 @@ async def test_fan_speed(dev: SmartDevice, mocker: MockerFixture):
36
35
  @fan
37
36
  async def test_sleep_mode(dev: SmartDevice, mocker: MockerFixture):
38
37
  """Test sleep mode feature."""
39
- fan = dev.modules.get(Module.Fan)
38
+ fan = next(get_parent_and_child_modules(dev, Module.Fan))
40
39
  assert fan
41
- sleep_feature = dev.features["fan_sleep_mode"]
40
+ sleep_feature = fan._module_features["fan_sleep_mode"]
42
41
  assert isinstance(sleep_feature.value, bool)
43
42
 
44
43
  call = mocker.spy(fan, "call")
@@ -55,7 +54,7 @@ async def test_sleep_mode(dev: SmartDevice, mocker: MockerFixture):
55
54
  async def test_fan_module(dev: SmartDevice, mocker: MockerFixture):
56
55
  """Test fan speed on device interface."""
57
56
  assert isinstance(dev, SmartDevice)
58
- fan = dev.modules.get(Module.Fan)
57
+ fan = next(get_parent_and_child_modules(dev, Module.Fan))
59
58
  assert fan
60
59
  device = fan._device
61
60
 
@@ -64,6 +63,11 @@ async def test_fan_module(dev: SmartDevice, mocker: MockerFixture):
64
63
  assert fan.fan_speed_level == 1
65
64
  assert device.is_on
66
65
 
66
+ # Check that if the device is off the speed level is 0.
67
+ await device.set_state(False)
68
+ await dev.update()
69
+ assert fan.fan_speed_level == 0
70
+
67
71
  await fan.set_fan_speed_level(4)
68
72
  await dev.update()
69
73
  assert fan.fan_speed_level == 4
@@ -15,6 +15,7 @@ import aiohttp
15
15
  import pytest
16
16
  from cryptography.hazmat.primitives import serialization
17
17
  from cryptography.hazmat.primitives.asymmetric import padding as asymmetric_padding
18
+ from freezegun.api import FrozenDateTimeFactory
18
19
  from yarl import URL
19
20
 
20
21
  from ..aestransport import AesEncyptionSession, AesTransport, TransportState
@@ -287,12 +288,20 @@ async def test_port_override():
287
288
 
288
289
 
289
290
  @pytest.mark.parametrize(
290
- "request_delay, should_error, should_succeed",
291
- [(0, False, True), (0.125, True, True), (0.3, True, True), (0.7, True, False)],
292
- ids=["No error", "Error then succeed", "Two errors then succeed", "No succeed"],
291
+ "device_delay_required, should_error, should_succeed",
292
+ [
293
+ pytest.param(0, False, True, id="No error"),
294
+ pytest.param(0.125, True, True, id="Error then succeed"),
295
+ pytest.param(0.3, True, True, id="Two errors then succeed"),
296
+ pytest.param(0.7, True, False, id="No succeed"),
297
+ ],
293
298
  )
294
299
  async def test_device_closes_connection(
295
- mocker, request_delay, should_error, should_succeed
300
+ mocker,
301
+ freezer: FrozenDateTimeFactory,
302
+ device_delay_required,
303
+ should_error,
304
+ should_succeed,
296
305
  ):
297
306
  """Test the delay logic in http client to deal with devices that close connections after each request.
298
307
 
@@ -300,16 +309,19 @@ async def test_device_closes_connection(
300
309
  """
301
310
  host = "127.0.0.1"
302
311
 
303
- # Speed up the test by dividing all times by a factor. Doesn't seem to work on windows
304
- # but leaving here as a TODO to manipulate system time for testing.
305
- speed_up_factor = 1
306
- default_delay = HttpClient.WAIT_BETWEEN_REQUESTS_ON_OSERROR / speed_up_factor
307
- request_delay = request_delay / speed_up_factor
312
+ default_delay = HttpClient.WAIT_BETWEEN_REQUESTS_ON_OSERROR
313
+
308
314
  mock_aes_device = MockAesDevice(
309
- host, 200, 0, 0, sequential_request_delay=request_delay
315
+ host, 200, 0, 0, sequential_request_delay=device_delay_required
310
316
  )
311
317
  mocker.patch.object(aiohttp.ClientSession, "post", side_effect=mock_aes_device.post)
312
318
 
319
+ async def _asyncio_sleep_mock(delay, result=None):
320
+ freezer.tick(delay)
321
+ return result
322
+
323
+ mocker.patch("asyncio.sleep", side_effect=_asyncio_sleep_mock)
324
+
313
325
  config = DeviceConfig(host, credentials=Credentials("foo", "bar"))
314
326
  transport = AesTransport(config=config)
315
327
  transport._http_client.WAIT_BETWEEN_REQUESTS_ON_OSERROR = default_delay
@@ -332,7 +344,7 @@ async def test_device_closes_connection(
332
344
  # If the device errors without a delay then it should error immedately ( + 1)
333
345
  # and then the number of times the default delay passes within the request delay window
334
346
  expected_error_count = (
335
- 0 if not should_error else int(request_delay / default_delay) + 1
347
+ 0 if not should_error else int(device_delay_required / default_delay) + 1
336
348
  )
337
349
  for _ in range(3):
338
350
  try:
@@ -3,10 +3,20 @@ import sys
3
3
 
4
4
  import pytest
5
5
 
6
+ from kasa.device_type import DeviceType
6
7
  from kasa.smart.smartchilddevice import SmartChildDevice
8
+ from kasa.smart.smartdevice import NON_HUB_PARENT_ONLY_MODULES
7
9
  from kasa.smartprotocol import _ChildProtocolWrapper
8
10
 
9
- from .conftest import strip_smart
11
+ from .conftest import parametrize, parametrize_subtract, strip_smart
12
+
13
+ has_children_smart = parametrize(
14
+ "has children", component_filter="control_child", protocol_filter={"SMART"}
15
+ )
16
+ hub_smart = parametrize(
17
+ "smart hub", device_type_filter=[DeviceType.Hub], protocol_filter={"SMART"}
18
+ )
19
+ non_hub_parent_smart = parametrize_subtract(has_children_smart, hub_smart)
10
20
 
11
21
 
12
22
  @strip_smart
@@ -82,3 +92,11 @@ async def test_childdevice_properties(dev: SmartChildDevice):
82
92
  exceptions = list(_test_property_getters())
83
93
  if exceptions:
84
94
  raise ExceptionGroup("Accessing child properties caused exceptions", exceptions)
95
+
96
+
97
+ @non_hub_parent_smart
98
+ async def test_parent_only_modules(dev, dummy_protocol, mocker):
99
+ """Test that parent only modules are not available on children."""
100
+ for child in dev.children:
101
+ for module in NON_HUB_PARENT_ONLY_MODULES:
102
+ assert module not in [type(module) for module in child.modules.values()]
@@ -7,6 +7,7 @@ from kasa.tests.device_fixtures import (
7
7
  bulb_smart,
8
8
  dimmable_iot,
9
9
  dimmer_iot,
10
+ get_parent_and_child_modules,
10
11
  lightstrip_iot,
11
12
  parametrize,
12
13
  parametrize_combine,
@@ -78,7 +79,7 @@ async def test_light_effect_module(dev: Device, mocker: MockerFixture):
78
79
  assert light_effect_module
79
80
  feat = dev.features["light_effect"]
80
81
 
81
- call = mocker.spy(light_effect_module, "call")
82
+ call = mocker.spy(dev, "_query_helper")
82
83
  effect_list = light_effect_module.effect_list
83
84
  assert "Off" in effect_list
84
85
  assert effect_list.index("Off") == 0
@@ -123,11 +124,11 @@ async def test_light_effect_module(dev: Device, mocker: MockerFixture):
123
124
  async def test_light_brightness(dev: Device):
124
125
  """Test brightness setter and getter."""
125
126
  assert isinstance(dev, Device)
126
- light = dev.modules.get(Module.Light)
127
+ light = next(get_parent_and_child_modules(dev, Module.Light))
127
128
  assert light
128
129
 
129
130
  # Test getting the value
130
- feature = dev.features["brightness"]
131
+ feature = light._device.features["brightness"]
131
132
  assert feature.minimum_value == 0
132
133
  assert feature.maximum_value == 100
133
134
 
@@ -146,7 +147,7 @@ async def test_light_brightness(dev: Device):
146
147
  async def test_light_set_state(dev: Device):
147
148
  """Test brightness setter and getter."""
148
149
  assert isinstance(dev, Device)
149
- light = dev.modules.get(Module.Light)
150
+ light = next(get_parent_and_child_modules(dev, Module.Light))
150
151
  assert light
151
152
 
152
153
  await light.set_state(LightState(light_on=False))
@@ -169,11 +170,11 @@ async def test_light_set_state(dev: Device):
169
170
  @light_preset
170
171
  async def test_light_preset_module(dev: Device, mocker: MockerFixture):
171
172
  """Test light preset module."""
172
- preset_mod = dev.modules[Module.LightPreset]
173
+ preset_mod = next(get_parent_and_child_modules(dev, Module.LightPreset))
173
174
  assert preset_mod
174
- light_mod = dev.modules[Module.Light]
175
+ light_mod = next(get_parent_and_child_modules(dev, Module.Light))
175
176
  assert light_mod
176
- feat = dev.features["light_preset"]
177
+ feat = preset_mod._device.features["light_preset"]
177
178
 
178
179
  preset_list = preset_mod.preset_list
179
180
  assert "Not set" in preset_list
@@ -220,7 +221,7 @@ async def test_light_preset_module(dev: Device, mocker: MockerFixture):
220
221
  @light_preset
221
222
  async def test_light_preset_save(dev: Device, mocker: MockerFixture):
222
223
  """Test saving a new preset value."""
223
- preset_mod = dev.modules[Module.LightPreset]
224
+ preset_mod = next(get_parent_and_child_modules(dev, Module.LightPreset))
224
225
  assert preset_mod
225
226
  preset_list = preset_mod.preset_list
226
227
  if len(preset_list) == 1:
@@ -9,13 +9,14 @@ from unittest.mock import patch
9
9
  import pytest
10
10
  from pytest_mock import MockerFixture
11
11
 
12
- from kasa import KasaException, Module
12
+ from kasa import Device, KasaException, Module
13
13
  from kasa.exceptions import SmartErrorCode
14
14
  from kasa.smart import SmartDevice
15
15
 
16
16
  from .conftest import (
17
17
  device_smart,
18
18
  get_device_for_fixture_protocol,
19
+ get_parent_and_child_modules,
19
20
  )
20
21
 
21
22
 
@@ -111,6 +112,11 @@ async def test_update_module_queries(dev: SmartDevice, mocker: MockerFixture):
111
112
  device_queries: dict[SmartDevice, dict[str, Any]] = {}
112
113
  for mod in dev._modules.values():
113
114
  device_queries.setdefault(mod._device, {}).update(mod.query())
115
+ # Hubs do not query child modules by default.
116
+ if dev.device_type != Device.Type.Hub:
117
+ for child in dev.children:
118
+ for mod in child.modules.values():
119
+ device_queries.setdefault(mod._device, {}).update(mod.query())
114
120
 
115
121
  spies = {}
116
122
  for device in device_queries:
@@ -119,7 +125,8 @@ async def test_update_module_queries(dev: SmartDevice, mocker: MockerFixture):
119
125
  await dev.update()
120
126
  for device in device_queries:
121
127
  if device_queries[device]:
122
- spies[device].assert_called_with(device_queries[device])
128
+ # Need assert any here because the child device updates use the parent's protocol
129
+ spies[device].assert_any_call(device_queries[device])
123
130
  else:
124
131
  spies[device].assert_not_called()
125
132
 
@@ -144,11 +151,8 @@ async def test_get_modules():
144
151
 
145
152
  # Modules on child
146
153
  module = dummy_device.modules.get("Fan")
147
- assert module
148
- assert module._device != dummy_device
149
- assert module._device._parent == dummy_device
150
-
151
- module = dummy_device.modules.get(Module.Fan)
154
+ assert module is None
155
+ module = next(get_parent_and_child_modules(dummy_device, "Fan"))
152
156
  assert module
153
157
  assert module._device != dummy_device
154
158
  assert module._device._parent == dummy_device
kasa/tests/test_strip.py CHANGED
@@ -88,6 +88,14 @@ async def test_get_plug_by_index(dev: IotStrip):
88
88
  dev.get_plug_by_index(len(dev.children))
89
89
 
90
90
 
91
+ @strip
92
+ async def test_plug_features(dev: IotStrip):
93
+ """Test the child plugs have default features."""
94
+ for child in dev.children:
95
+ assert "state" in child.features
96
+ assert "on_since" in child.features
97
+
98
+
91
99
  @pytest.mark.skip("this test will wear out your relays")
92
100
  async def test_all_binary_states(dev):
93
101
  # test every binary state
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-kasa
3
- Version: 0.7.0.dev2
3
+ Version: 0.7.0.dev4
4
4
  Summary: Python API for TP-Link Kasa Smarthome devices
5
5
  Home-page: https://github.com/python-kasa/python-kasa
6
6
  License: GPL-3.0-or-later
@@ -1,6 +1,6 @@
1
1
  kasa/__init__.py,sha256=Hxo9ItTa2noIYRXWVSneK15nDUWdd3fBUcYYJTlC2bM,4454
2
- kasa/aestransport.py,sha256=_ege5nXFCeKOSqOE5-QxxpWGvRXXCdfgv6q9-iL-fWs,16076
3
- kasa/cli.py,sha256=yEdQRb45qGLOjRJKNl0mJvlHeKfbsIO7JB7viWL2KO4,37784
2
+ kasa/aestransport.py,sha256=bpvZz6rpziY3e-o1wg-M0hT58LvauHZL8WYQWdTnPNw,16150
3
+ kasa/cli.py,sha256=E-rkWSC5bfJYpgqEfENd7xLzJ_4p0eQu4pGsMDuw-rY,37776
4
4
  kasa/credentials.py,sha256=SU9O5QjkWsozC7oCMhc2abydmETNjLZrJwv_KJ6fnK4,357
5
5
  kasa/device.py,sha256=YG8C_DemOsvnwphMtc2HkN-eLVN2Safx98JwGRPUJj8,14675
6
6
  kasa/device_factory.py,sha256=ct22rdnDqXONBc5PMeY_hii84Jy8ncWfkyEq2ZzfheA,6996
@@ -25,7 +25,7 @@ kasa/iot/iotdimmer.py,sha256=CeECYa_k5ObIsiHw_cQHaP_7QFsrB5_8r3uBslrkty8,7760
25
25
  kasa/iot/iotlightstrip.py,sha256=uJ9EeN1qiyTcOKhc2Hwso3_1TQMKg1cv4yIUFYpgX5U,2104
26
26
  kasa/iot/iotmodule.py,sha256=-pf1d91Va0pxfcgT0HsF5aO8xJYWyoYVMCrrADP2zWg,2091
27
27
  kasa/iot/iotplug.py,sha256=34PH4V1Dpw6pg8j1mBZxI6nfx-JjwerX-0fprOubkU0,2986
28
- kasa/iot/iotstrip.py,sha256=nBZloWoCBtJloyXjPiGEtNlsHXCPF42xo0JBC7KCFoM,12334
28
+ kasa/iot/iotstrip.py,sha256=3LIp21jZnJf0zEQ6cRlDsJiWVCP-Wfnvp1uYiZaO1aQ,13328
29
29
  kasa/iot/modules/__init__.py,sha256=Nq49DvOol1DcURsL3ZmXRLOmQRAgA7s3yFA9aiKQkss,751
30
30
  kasa/iot/modules/ambientlight.py,sha256=qGwAuAfSHE6at-hzMblKmEkwNsWrtY5k6unnrFrkX1s,2458
31
31
  kasa/iot/modules/antitheft.py,sha256=XV5NM_zMLMU50KpR-MCFGx-1S4TxB61jcuOh3KZ-9Zc,235
@@ -34,7 +34,7 @@ kasa/iot/modules/countdown.py,sha256=53PUMGv3L1zMTkx1PBRvMSGzqX6ZnbwmtXHMyBioT4o
34
34
  kasa/iot/modules/emeter.py,sha256=6Ckz5coe8VtO34jIqWSvRG4c0lKVISKGHHBZwMe7rcA,6816
35
35
  kasa/iot/modules/led.py,sha256=6iM2FTE7sxNJtxmqwLs2iFXBbTdF-4vmgIAqJTuXDAA,814
36
36
  kasa/iot/modules/light.py,sha256=a-Ypjg39SMsBRMgF9Bx78glObArZ1gTacTAy1CFcOWg,9551
37
- kasa/iot/modules/lighteffect.py,sha256=UunL9zT3pkXBZA3irrv0a4HG9_YV57STfAt_0-0yrrk,3595
37
+ kasa/iot/modules/lighteffect.py,sha256=kRwlAw1no9YT09PhNks2kFi3nSylm0ExeYYsiHgZJmA,3902
38
38
  kasa/iot/modules/lightpreset.py,sha256=foSnCR7UiaEmec3GUzb85HR6LXUYb7iMzl3rjL1FQwo,5532
39
39
  kasa/iot/modules/motion.py,sha256=lfxM0CFGacjZrBh6UqN5Kyja4beXwrTNxZUU4lh0xZg,2264
40
40
  kasa/iot/modules/rulemodule.py,sha256=_QgsgMRvnh2M2xLx0ACvPdhn_3LZ9zwTbhpT5oQqxvE,2040
@@ -53,7 +53,7 @@ kasa/smart/__init__.py,sha256=gdmi-Doe7dnv7e8ab_892lr9IdOXeFa3XlU3u_CePCk,198
53
53
  kasa/smart/effects.py,sha256=EneV8hvcNRCNqZqXxAmxQBXDk7dnnSWKd_Ru4egIXHY,10807
54
54
  kasa/smart/modules/__init__.py,sha256=zXiuja09r25Cx1jUHnnO67g3aJgbN74bAFi3qo44JyE,1451
55
55
  kasa/smart/modules/alarm.py,sha256=abwuqdmcZD1FK_m0nyuZv9mRyrpTDh8pMzqEildvB_4,4214
56
- kasa/smart/modules/autooff.py,sha256=9P_8ny-5pvE7snbI3QviEX_iXPvapvwqCbTBnZ861sc,3005
56
+ kasa/smart/modules/autooff.py,sha256=l9oEWu0k3nueVwGUOM_4_kH8ykIi_dOOZNe2m4rUq5s,3317
57
57
  kasa/smart/modules/batterysensor.py,sha256=9CGZoVk7COwM0yIYqRKqpoxYQA-1poCqEaoJZfrnoI4,1634
58
58
  kasa/smart/modules/brightness.py,sha256=krwyfFNhXm1r7RcQXPhajSAizfh5hrPHrpbV8-ocy_s,2077
59
59
  kasa/smart/modules/childdevice.py,sha256=Ge5DbilDBoSdUWDfSfMqFz3ZNA1in8c2QeBG3zZgQuM,246
@@ -63,14 +63,14 @@ kasa/smart/modules/colortemperature.py,sha256=fK7SMAfeX__LIoVlLO7aMKOWa52XmpUzR0
63
63
  kasa/smart/modules/contactsensor.py,sha256=wnKkb5yt7OPvdvfFjYlB0_xKsTptviNSQD19UDJQ3sY,1145
64
64
  kasa/smart/modules/devicemodule.py,sha256=gl6flBNv1mb7uShsv6U-myZ0z6ZYpzrqaem9xJLAKzg,552
65
65
  kasa/smart/modules/energy.py,sha256=CXE7wDTpMAzqnIjyRFLC--lPHlca_1kaP7umPcd3ZXQ,2960
66
- kasa/smart/modules/fan.py,sha256=sGM9Cro2i9iulIf76O3wijIL6HUlAx1YPaT-7HIC0xM,2446
66
+ kasa/smart/modules/fan.py,sha256=61tPg4UIKN16BgyYqN2rLu9UYcP5q4NN8A2YCB2Zjno,2552
67
67
  kasa/smart/modules/firmware.py,sha256=2tk5KxXCd6234mENnyP7C8OqNqyMxemoUG6J9DdWu38,7281
68
68
  kasa/smart/modules/frostprotection.py,sha256=atqjnvMySSvQ-FeWeynyof2xEY9PF3qA0Eme6ATWhOU,1748
69
69
  kasa/smart/modules/humiditysensor.py,sha256=hTgSb7RjgwWAWiVjG6_wjm-KNoAvfgbYuJZST53UVus,1609
70
70
  kasa/smart/modules/led.py,sha256=evlYwTXhkUs4jqmRLEENeRrBkztN7_wEna7WJCnBWmw,1369
71
71
  kasa/smart/modules/light.py,sha256=3JQ3OUdknnb_hpM62O-2MUcgCR584VqkzI9amjaneIA,5668
72
72
  kasa/smart/modules/lighteffect.py,sha256=cJg4pRYZrR6iHmIVGnBN-qoz9oTrtlhEtXQb2soL5Dk,3971
73
- kasa/smart/modules/lightpreset.py,sha256=Xoy2sOVxq4z9bifwPIgo-jN99Xv9e8Gxs2BjMY2-N44,5327
73
+ kasa/smart/modules/lightpreset.py,sha256=xVLW2qhfHnh26OtDdQTV5sVV3Iu7YMPyFSnoGmmRx2k,5792
74
74
  kasa/smart/modules/lightstripeffect.py,sha256=Hdw_QZ7c8SDawDFpYhnMinAnukMAt62Yaql_HNvvBtE,4012
75
75
  kasa/smart/modules/lighttransition.py,sha256=LLJvyruBzvkLY0O6xiezEuPun7bwZ8b6aiRP9RYeL0A,6237
76
76
  kasa/smart/modules/reportmode.py,sha256=IMg1HWmipgsKeOgOc9mtnGYdpjGPIzqcwtgYqjtjz9o,960
@@ -78,16 +78,16 @@ kasa/smart/modules/temperaturecontrol.py,sha256=qDXCm-NO_shtu8q29_6F6Vx5hbLO82Qn
78
78
  kasa/smart/modules/temperaturesensor.py,sha256=ezYTyFSKG-d2Dz20fX_3VUwU2ZXHCEPlC8AjVpx1gSQ,2547
79
79
  kasa/smart/modules/time.py,sha256=nzU26LYI0DqXZI471BZp6rXL6AQVgV7NF8FY7cnJiY4,1678
80
80
  kasa/smart/modules/waterleaksensor.py,sha256=-mFTA3qpXYHSHUsA5062tscJrU74eqVv3gG9zL15UNg,1790
81
- kasa/smart/smartchilddevice.py,sha256=fEFp_SFl1a2bcmmpFQYHxk4a5Se30AKLv1_eXrLIFqY,2326
82
- kasa/smart/smartdevice.py,sha256=ARSw7vO78GW7Mmrg55jlp3BTEE0PkSBrQjFWWR9w240,23677
81
+ kasa/smart/smartchilddevice.py,sha256=zBstI7ks5XM1wLv5Lcrbj4Pe3jYN0YLxXSwTSKOtKW4,2677
82
+ kasa/smart/smartdevice.py,sha256=Or9Pc_OHeQqZXFeymOewqIdEQWMfnV0xYAikF53ARVs,23037
83
83
  kasa/smart/smartmodule.py,sha256=UcQSZ94wfXtxgnJJ-feTCi1lEb0Oayeed9-z7x-ejcA,3609
84
84
  kasa/smartprotocol.py,sha256=wZ-vtNc1vamFwaQ1paNftH5bhfAR1D5Kbx1hyYxqiJA,15268
85
85
  kasa/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
86
  kasa/tests/conftest.py,sha256=SEMjGkposNARLaU2DZO__NBkZmNIn3A-CXJuYIrRk9Q,2791
87
- kasa/tests/device_fixtures.py,sha256=S0M9F942U5KhcjJp5xLXjNMHOfRhmi0PvpN09MODHIA,12406
87
+ kasa/tests/device_fixtures.py,sha256=ozyRZ1F38sVpsmReCP9PWRY4sjQPDTv15XUdtAURWpM,13493
88
88
  kasa/tests/discovery_fixtures.py,sha256=_nV2PN2QDplp40bj3C4-AJ8W0gLjrKXBdkNpgxzRdGk,8573
89
- kasa/tests/fakeprotocol_iot.py,sha256=_NNcWAi7qe34jytDQ_eNc5_6DhebcgosAfJwOWrVcX8,14173
90
- kasa/tests/fakeprotocol_smart.py,sha256=TDy5MhMeMKd9ymuYXIzB9ixgAohAOB7T_KYtQ0lX0sA,12989
89
+ kasa/tests/fakeprotocol_iot.py,sha256=tl12kouujaN09LEtxlMQzFPBjj44NaQsmY1ObocTgpw,14435
90
+ kasa/tests/fakeprotocol_smart.py,sha256=l2IpOvytldPXJR9pexIcEHVuoaQu8WbdTQUtcoUXBEo,14041
91
91
  kasa/tests/fixtureinfo.py,sha256=3hZrANIFasuBWslUrelqluqozm2DDfrbqxCRcpN1Jt0,4857
92
92
  kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json,sha256=sABRlOhIcHXHnKTQFdEnIKW5gf2ir3t_TaJXamVQ8ZM,974
93
93
  kasa/tests/fixtures/EP40(US)_1.0_1.0.2.json,sha256=yOfWZEhRPMshudzi5suV6ER_9yagp4hILhznX5r1KuI,1427
@@ -186,6 +186,7 @@ kasa/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json,sha256=uGh2xEqqPD3lvZRt8zjEgRV
186
186
  kasa/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json,sha256=kVBU1qCAQUfcMe8RoTBTsL1pdupBoe20Scgxgo_J0wI,6145
187
187
  kasa/tests/fixtures/smart/P135(US)_1.0_1.0.5.json,sha256=RtKXcKBZoSXx3GHNpWyYpGhVApNQ3MxJnItmO3mWHSs,8251
188
188
  kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json,sha256=PWl5FnEpybN5wJt8xzqhmLdviEhx5NtV7hDOnf52S-k,15605
189
+ kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json,sha256=J6GqyWjUyA-rV-IOq1yY3Pqr1DHfooNt52EX2_q-rOo,30910
189
190
  kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json,sha256=B0LDPtQoEzO9Q2W5pbX2ORixgUOvEU6fWlYXB6qN9pc,15653
190
191
  kasa/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json,sha256=QlU1vIIAEEkEr6ZLbBwr4Ii-fBt6VMWwo3JpUEUr7SA,8461
191
192
  kasa/tests/fixtures/smart/S505(US)_1.0_1.0.2.json,sha256=NBXlb8UXdZzRNoZQxAnzThoT_tAnaXVGRVKkCVgZnwE,8415
@@ -201,23 +202,23 @@ kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json,sha256=RDKym90HdXS9yh54y
201
202
  kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json,sha256=qP7Eak0PHlemZ-eJihPKr3yPwA1zOof1T68shtkoJ6o,8709
202
203
  kasa/tests/smart/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
203
204
  kasa/tests/smart/features/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
204
- kasa/tests/smart/features/test_brightness.py,sha256=u4gqitJlqEr_9M1QrvefQ7MyA-CuPQDo_d8JH1Gb2CA,1644
205
+ kasa/tests/smart/features/test_brightness.py,sha256=FnssEYLXbArbGiU2H-xMA_sUrqpE-VRRDlHUDx4aBAM,1713
205
206
  kasa/tests/smart/features/test_colortemp.py,sha256=LBZ-ijLdVXovH_GO3kcD3htp6rn6Zf0yk0qKi0_vKio,992
206
207
  kasa/tests/smart/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
207
- kasa/tests/smart/modules/test_autooff.py,sha256=mELmLW2LjW6A0z1Qiit_GN7gp4QRnOmIDtpTLaWD-yU,2656
208
+ kasa/tests/smart/modules/test_autooff.py,sha256=TcPzKbROwIfKihiAScoRUJvCZvDCGUCBpfAr-oer6T4,2806
208
209
  kasa/tests/smart/modules/test_contact.py,sha256=a-NRdPgtIHyb97DIVqFyMHUdyUOgcUoPsSH4Y4RKh6Q,698
209
- kasa/tests/smart/modules/test_fan.py,sha256=miw2oxJ2_1LRFpzEGxzDMo_LRu4w_Q9ofwt6Gyn-BqQ,2076
210
+ kasa/tests/smart/modules/test_fan.py,sha256=6HuJwH63T0LQDv5K9pPz6mTHpAActXEitKWAZmu78FY,2347
210
211
  kasa/tests/smart/modules/test_firmware.py,sha256=AUImLF49GSVRJbX4P4U0SC4YFkkoQViwHOYaYAy4Cko,3296
211
212
  kasa/tests/smart/modules/test_humidity.py,sha256=vxpunr-2N1KiciTE59EcDUMczL_IWjn0wWLUa43nPpQ,715
212
213
  kasa/tests/smart/modules/test_light_effect.py,sha256=xp1VzUK9BwQjIxrIYWsVhEsd4R92H9wmOCgcXDoV0dI,1393
213
214
  kasa/tests/smart/modules/test_temperature.py,sha256=MJy4T5HSKl0tzgLADvTS1P2V9-Kq6skOEBlb6fVvt8I,1361
214
215
  kasa/tests/smart/modules/test_temperaturecontrol.py,sha256=_g7WAp1dkXWWP_8g633Z_LzgEdYDr1xW_XHSg96Pe7k,4145
215
216
  kasa/tests/smart/modules/test_waterleak.py,sha256=IeMts3JTj84npChuP3A0sjqt50ZwuhroZOgsYqtN4CU,1156
216
- kasa/tests/test_aestransport.py,sha256=qexXcXtkB5B7tCA8TSlAFmi9HBNlqWTQtTf417vTOgI,17287
217
+ kasa/tests/test_aestransport.py,sha256=UCsQM_1ztlWkywjC4AxPmQkk8zyUAXH3bzeg5THYTk8,17423
217
218
  kasa/tests/test_bulb.py,sha256=SzIPESncYYz2Ov_wo5HauwvEcv-ruSdV_4NxGorBYj0,11794
218
- kasa/tests/test_childdevice.py,sha256=FWCfvkk_87QEvIfmheHkIhMM6MnJIaLpBz3flp_uLBs,2648
219
+ kasa/tests/test_childdevice.py,sha256=-U2s2voFJVx_fUnid9PPS2LTgd7x3NyYfiTpyK7k_iE,3412
219
220
  kasa/tests/test_cli.py,sha256=iO7JnZvbdnaVYQ2XX_mUVKyCzcf6ZPvXPUY3Cpxxmtg,26215
220
- kasa/tests/test_common_modules.py,sha256=S14yXjIZ3Kr6P2G69-aGB_L7ylfT-1TgeDsEMXThFX8,7318
221
+ kasa/tests/test_common_modules.py,sha256=BLMw0Eu5Ct6mY7CnmLKcR-YTVEpuZtdjJFVtjr4ZwlA,7502
221
222
  kasa/tests/test_device.py,sha256=QyIgropNVhMqqFlLMDoTL6NtNbNMv57q3LPAUqA0moE,9872
222
223
  kasa/tests/test_device_factory.py,sha256=cwtBepr7WnN6xLmSbAim-7UxjuAwtjnvySxWRnJYjY8,5710
223
224
  kasa/tests/test_device_type.py,sha256=QiAHVsPbs1lR8mXXvq1IJ4n1OAIs0pmMekjVSTxfp1o,872
@@ -233,13 +234,13 @@ kasa/tests/test_lightstrip.py,sha256=GvjrFyWP8A5UahrHDMCetmLzfZKWe1R8jWBdQf3tWI0
233
234
  kasa/tests/test_plug.py,sha256=GOfU-mVSSPuakHoATbg5iJVVMbqGZl6ZCrWSpqshAkw,1859
234
235
  kasa/tests/test_protocol.py,sha256=eHkr9iF2SnlWnyxzb3ECS68r53GBK6Z1SW37G8QHSv8,19578
235
236
  kasa/tests/test_readme_examples.py,sha256=kMNc2CJFMa-SHDTYkqNWl4gUC2m7JBM4yebfEcU33uU,5211
236
- kasa/tests/test_smartdevice.py,sha256=WTcFBbIrvw4AVWhkpAh8mwXOrGus9xArxYv_6WlPZEI,7381
237
+ kasa/tests/test_smartdevice.py,sha256=SadKAaipkFmqOgB9IquMoChgRABat89kp0Q3LUM495Q,7702
237
238
  kasa/tests/test_smartprotocol.py,sha256=H6qWAFVLWajLfhHOX9Ot9lmZJCVygk6NTThnfthcXzQ,10339
238
- kasa/tests/test_strip.py,sha256=OnfPMX1gifWl1-LG_nMvnKheRJvjiRB7YpbjG53kdqs,4286
239
+ kasa/tests/test_strip.py,sha256=dtB8GgXmB5NcxZ7bjpFhLxCaz0ZVpaw3G9YHJCSuEM4,4510
239
240
  kasa/tests/test_usage.py,sha256=ypM6O_KEpmI3Mw9FRPf045S-FefOKqpM-BF0px6ca6M,2331
240
241
  kasa/xortransport.py,sha256=W0wCWqMHUqkPQqj71JRUFzMxZIzkIxUdFqlXgYP_olc,8530
241
- python_kasa-0.7.0.dev2.dist-info/LICENSE,sha256=Klt9aEsei738epLgYqeikhpdBWwMvU1VAli14Bxlc5c,33218
242
- python_kasa-0.7.0.dev2.dist-info/METADATA,sha256=9HVrIUQtcRuVlTa96nYo0xMKLlQszLDMiYmBbZ6c-_g,13194
243
- python_kasa-0.7.0.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
244
- python_kasa-0.7.0.dev2.dist-info/entry_points.txt,sha256=RlTlZyXOxJ_r2Ap7lpuPAWyYUud9RfVBnOklBvUKPVA,37
245
- python_kasa-0.7.0.dev2.dist-info/RECORD,,
242
+ python_kasa-0.7.0.dev4.dist-info/LICENSE,sha256=Klt9aEsei738epLgYqeikhpdBWwMvU1VAli14Bxlc5c,33218
243
+ python_kasa-0.7.0.dev4.dist-info/METADATA,sha256=AQrf_aobGB9wHha8ua1ZuTBP7hwe3FMiUKGBGSZAbzQ,13194
244
+ python_kasa-0.7.0.dev4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
245
+ python_kasa-0.7.0.dev4.dist-info/entry_points.txt,sha256=RlTlZyXOxJ_r2Ap7lpuPAWyYUud9RfVBnOklBvUKPVA,37
246
+ python_kasa-0.7.0.dev4.dist-info/RECORD,,