python-kasa 0.7.0.2__py3-none-any.whl → 0.7.0.3__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.
- kasa/smart/modules/autooff.py +0 -6
- kasa/smart/modules/batterysensor.py +4 -0
- kasa/smart/modules/cloud.py +8 -2
- kasa/smart/modules/devicemodule.py +7 -0
- kasa/smart/modules/firmware.py +9 -3
- kasa/smart/modules/frostprotection.py +4 -0
- kasa/smart/modules/humiditysensor.py +4 -0
- kasa/smart/modules/lightpreset.py +1 -1
- kasa/smart/modules/lighttransition.py +1 -1
- kasa/smart/modules/reportmode.py +4 -0
- kasa/smart/modules/temperaturesensor.py +4 -0
- kasa/smart/smartdevice.py +26 -4
- kasa/smart/smartmodule.py +21 -1
- kasa/smartprotocol.py +4 -0
- kasa/tests/test_smartdevice.py +83 -11
- kasa/tests/test_smartprotocol.py +16 -0
- {python_kasa-0.7.0.2.dist-info → python_kasa-0.7.0.3.dist-info}/METADATA +1 -1
- {python_kasa-0.7.0.2.dist-info → python_kasa-0.7.0.3.dist-info}/RECORD +21 -21
- {python_kasa-0.7.0.2.dist-info → python_kasa-0.7.0.3.dist-info}/LICENSE +0 -0
- {python_kasa-0.7.0.2.dist-info → python_kasa-0.7.0.3.dist-info}/WHEEL +0 -0
- {python_kasa-0.7.0.2.dist-info → python_kasa-0.7.0.3.dist-info}/entry_points.txt +0 -0
kasa/smart/modules/autooff.py
CHANGED
|
@@ -19,12 +19,6 @@ class AutoOff(SmartModule):
|
|
|
19
19
|
|
|
20
20
|
def _initialize_features(self):
|
|
21
21
|
"""Initialize features after the initial update."""
|
|
22
|
-
if not isinstance(self.data, dict):
|
|
23
|
-
_LOGGER.warning(
|
|
24
|
-
"No data available for module, skipping %s: %s", self, self.data
|
|
25
|
-
)
|
|
26
|
-
return
|
|
27
|
-
|
|
28
22
|
self._add_feature(
|
|
29
23
|
Feature(
|
|
30
24
|
self._device,
|
kasa/smart/modules/cloud.py
CHANGED
|
@@ -4,7 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing import TYPE_CHECKING
|
|
6
6
|
|
|
7
|
-
from ...exceptions import SmartErrorCode
|
|
8
7
|
from ...feature import Feature
|
|
9
8
|
from ..smartmodule import SmartModule
|
|
10
9
|
|
|
@@ -18,6 +17,13 @@ class Cloud(SmartModule):
|
|
|
18
17
|
QUERY_GETTER_NAME = "get_connect_cloud_state"
|
|
19
18
|
REQUIRED_COMPONENT = "cloud_connect"
|
|
20
19
|
|
|
20
|
+
def _post_update_hook(self):
|
|
21
|
+
"""Perform actions after a device update.
|
|
22
|
+
|
|
23
|
+
Overrides the default behaviour to disable a module if the query returns
|
|
24
|
+
an error because the logic here is to treat that as not connected.
|
|
25
|
+
"""
|
|
26
|
+
|
|
21
27
|
def __init__(self, device: SmartDevice, module: str):
|
|
22
28
|
super().__init__(device, module)
|
|
23
29
|
|
|
@@ -37,6 +43,6 @@ class Cloud(SmartModule):
|
|
|
37
43
|
@property
|
|
38
44
|
def is_connected(self):
|
|
39
45
|
"""Return True if device is connected to the cloud."""
|
|
40
|
-
if
|
|
46
|
+
if self._has_data_error():
|
|
41
47
|
return False
|
|
42
48
|
return self.data["status"] == 0
|
|
@@ -10,6 +10,13 @@ class DeviceModule(SmartModule):
|
|
|
10
10
|
|
|
11
11
|
REQUIRED_COMPONENT = "device"
|
|
12
12
|
|
|
13
|
+
def _post_update_hook(self):
|
|
14
|
+
"""Perform actions after a device update.
|
|
15
|
+
|
|
16
|
+
Overrides the default behaviour to disable a module if the query returns
|
|
17
|
+
an error because this module is critical.
|
|
18
|
+
"""
|
|
19
|
+
|
|
13
20
|
def query(self) -> dict:
|
|
14
21
|
"""Query to execute during the update cycle."""
|
|
15
22
|
query = {
|
kasa/smart/modules/firmware.py
CHANGED
|
@@ -13,7 +13,6 @@ from typing import TYPE_CHECKING, Any, Callable, Optional
|
|
|
13
13
|
from async_timeout import timeout as asyncio_timeout
|
|
14
14
|
from pydantic.v1 import BaseModel, Field, validator
|
|
15
15
|
|
|
16
|
-
from ...exceptions import SmartErrorCode
|
|
17
16
|
from ...feature import Feature
|
|
18
17
|
from ..smartmodule import SmartModule
|
|
19
18
|
|
|
@@ -123,6 +122,13 @@ class Firmware(SmartModule):
|
|
|
123
122
|
req["get_auto_update_info"] = None
|
|
124
123
|
return req
|
|
125
124
|
|
|
125
|
+
def _post_update_hook(self):
|
|
126
|
+
"""Perform actions after a device update.
|
|
127
|
+
|
|
128
|
+
Overrides the default behaviour to disable a module if the query returns
|
|
129
|
+
an error because some of the module still functions.
|
|
130
|
+
"""
|
|
131
|
+
|
|
126
132
|
@property
|
|
127
133
|
def current_firmware(self) -> str:
|
|
128
134
|
"""Return the current firmware version."""
|
|
@@ -136,11 +142,11 @@ class Firmware(SmartModule):
|
|
|
136
142
|
@property
|
|
137
143
|
def firmware_update_info(self):
|
|
138
144
|
"""Return latest firmware information."""
|
|
139
|
-
|
|
140
|
-
if not self._device.is_cloud_connected or isinstance(fw, SmartErrorCode):
|
|
145
|
+
if not self._device.is_cloud_connected or self._has_data_error():
|
|
141
146
|
# Error in response, probably disconnected from the cloud.
|
|
142
147
|
return UpdateInfo(type=0, need_to_upgrade=False)
|
|
143
148
|
|
|
149
|
+
fw = self.data.get("get_latest_fw") or self.data
|
|
144
150
|
return UpdateInfo.parse_obj(fw)
|
|
145
151
|
|
|
146
152
|
@property
|
|
@@ -14,6 +14,10 @@ class FrostProtection(SmartModule):
|
|
|
14
14
|
REQUIRED_COMPONENT = "frost_protection"
|
|
15
15
|
QUERY_GETTER_NAME = "get_frost_protection"
|
|
16
16
|
|
|
17
|
+
def query(self) -> dict:
|
|
18
|
+
"""Query to execute during the update cycle."""
|
|
19
|
+
return {}
|
|
20
|
+
|
|
17
21
|
@property
|
|
18
22
|
def enabled(self) -> bool:
|
|
19
23
|
"""Return True if frost protection is on."""
|
|
@@ -140,7 +140,7 @@ class LightPreset(SmartModule, LightPresetInterface):
|
|
|
140
140
|
"""Query to execute during the update cycle."""
|
|
141
141
|
if self._state_in_sysinfo: # Child lights can have states in the child info
|
|
142
142
|
return {}
|
|
143
|
-
return {self.QUERY_GETTER_NAME:
|
|
143
|
+
return {self.QUERY_GETTER_NAME: {"start_index": 0}}
|
|
144
144
|
|
|
145
145
|
async def _check_supported(self):
|
|
146
146
|
"""Additional check to see if the module is supported by the device.
|
|
@@ -230,7 +230,7 @@ class LightTransition(SmartModule):
|
|
|
230
230
|
if self._state_in_sysinfo:
|
|
231
231
|
return {}
|
|
232
232
|
else:
|
|
233
|
-
return {self.QUERY_GETTER_NAME:
|
|
233
|
+
return {self.QUERY_GETTER_NAME: {}}
|
|
234
234
|
|
|
235
235
|
async def _check_supported(self):
|
|
236
236
|
"""Additional check to see if the module is supported by the device."""
|
kasa/smart/modules/reportmode.py
CHANGED
kasa/smart/smartdevice.py
CHANGED
|
@@ -177,11 +177,20 @@ class SmartDevice(Device):
|
|
|
177
177
|
self._children[info["device_id"]]._update_internal_state(info)
|
|
178
178
|
|
|
179
179
|
# Call handle update for modules that want to update internal data
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
errors = []
|
|
181
|
+
for module_name, module in self._modules.items():
|
|
182
|
+
if not self._handle_module_post_update_hook(module):
|
|
183
|
+
errors.append(module_name)
|
|
184
|
+
for error in errors:
|
|
185
|
+
self._modules.pop(error)
|
|
186
|
+
|
|
182
187
|
for child in self._children.values():
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
errors = []
|
|
189
|
+
for child_module_name, child_module in child._modules.items():
|
|
190
|
+
if not self._handle_module_post_update_hook(child_module):
|
|
191
|
+
errors.append(child_module_name)
|
|
192
|
+
for error in errors:
|
|
193
|
+
child._modules.pop(error)
|
|
185
194
|
|
|
186
195
|
# We can first initialize the features after the first update.
|
|
187
196
|
# We make here an assumption that every device has at least a single feature.
|
|
@@ -190,6 +199,19 @@ class SmartDevice(Device):
|
|
|
190
199
|
|
|
191
200
|
_LOGGER.debug("Got an update: %s", self._last_update)
|
|
192
201
|
|
|
202
|
+
def _handle_module_post_update_hook(self, module: SmartModule) -> bool:
|
|
203
|
+
try:
|
|
204
|
+
module._post_update_hook()
|
|
205
|
+
return True
|
|
206
|
+
except Exception as ex:
|
|
207
|
+
_LOGGER.error(
|
|
208
|
+
"Error processing %s for device %s, module will be unavailable: %s",
|
|
209
|
+
module.name,
|
|
210
|
+
self.host,
|
|
211
|
+
ex,
|
|
212
|
+
)
|
|
213
|
+
return False
|
|
214
|
+
|
|
193
215
|
async def _initialize_modules(self):
|
|
194
216
|
"""Initialize modules based on component negotiation response."""
|
|
195
217
|
from .smartmodule import SmartModule
|
kasa/smart/smartmodule.py
CHANGED
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
import logging
|
|
6
6
|
from typing import TYPE_CHECKING
|
|
7
7
|
|
|
8
|
-
from ..exceptions import KasaException
|
|
8
|
+
from ..exceptions import DeviceError, KasaException, SmartErrorCode
|
|
9
9
|
from ..module import Module
|
|
10
10
|
|
|
11
11
|
if TYPE_CHECKING:
|
|
@@ -41,6 +41,14 @@ class SmartModule(Module):
|
|
|
41
41
|
"""Name of the module."""
|
|
42
42
|
return getattr(self, "NAME", self.__class__.__name__)
|
|
43
43
|
|
|
44
|
+
def _post_update_hook(self): # noqa: B027
|
|
45
|
+
"""Perform actions after a device update.
|
|
46
|
+
|
|
47
|
+
Any modules overriding this should ensure that self.data is
|
|
48
|
+
accessed unless the module should remain active despite errors.
|
|
49
|
+
"""
|
|
50
|
+
assert self.data # noqa: S101
|
|
51
|
+
|
|
44
52
|
def query(self) -> dict:
|
|
45
53
|
"""Query to execute during the update cycle.
|
|
46
54
|
|
|
@@ -87,6 +95,11 @@ class SmartModule(Module):
|
|
|
87
95
|
|
|
88
96
|
filtered_data = {k: v for k, v in dev._last_update.items() if k in q_keys}
|
|
89
97
|
|
|
98
|
+
for data_item in filtered_data:
|
|
99
|
+
if isinstance(filtered_data[data_item], SmartErrorCode):
|
|
100
|
+
raise DeviceError(
|
|
101
|
+
f"{data_item} for {self.name}", error_code=filtered_data[data_item]
|
|
102
|
+
)
|
|
90
103
|
if len(filtered_data) == 1:
|
|
91
104
|
return next(iter(filtered_data.values()))
|
|
92
105
|
|
|
@@ -110,3 +123,10 @@ class SmartModule(Module):
|
|
|
110
123
|
color_temp_range but only supports one value.
|
|
111
124
|
"""
|
|
112
125
|
return True
|
|
126
|
+
|
|
127
|
+
def _has_data_error(self) -> bool:
|
|
128
|
+
try:
|
|
129
|
+
assert self.data # noqa: S101
|
|
130
|
+
return False
|
|
131
|
+
except DeviceError:
|
|
132
|
+
return True
|
kasa/smartprotocol.py
CHANGED
|
@@ -416,6 +416,10 @@ class _ChildProtocolWrapper(SmartProtocol):
|
|
|
416
416
|
return smart_method, smart_params
|
|
417
417
|
|
|
418
418
|
async def query(self, request: str | dict, retry_count: int = 3) -> dict:
|
|
419
|
+
"""Wrap request inside control_child envelope."""
|
|
420
|
+
return await self._query(request, retry_count)
|
|
421
|
+
|
|
422
|
+
async def _query(self, request: str | dict, retry_count: int = 3) -> dict:
|
|
419
423
|
"""Wrap request inside control_child envelope."""
|
|
420
424
|
method, params = self._get_method_and_params_for_request(request)
|
|
421
425
|
request_data = {
|
kasa/tests/test_smartdevice.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import logging
|
|
6
|
-
from typing import Any
|
|
6
|
+
from typing import Any, cast
|
|
7
7
|
from unittest.mock import patch
|
|
8
8
|
|
|
9
9
|
import pytest
|
|
@@ -132,6 +132,78 @@ async def test_update_module_queries(dev: SmartDevice, mocker: MockerFixture):
|
|
|
132
132
|
spies[device].assert_not_called()
|
|
133
133
|
|
|
134
134
|
|
|
135
|
+
@device_smart
|
|
136
|
+
async def test_update_module_errors(dev: SmartDevice, mocker: MockerFixture):
|
|
137
|
+
"""Test that modules that error are disabled / removed."""
|
|
138
|
+
# We need to have some modules initialized by now
|
|
139
|
+
assert dev._modules
|
|
140
|
+
|
|
141
|
+
critical_modules = {Module.DeviceModule, Module.ChildDevice}
|
|
142
|
+
not_disabling_modules = {Module.Firmware, Module.Cloud}
|
|
143
|
+
|
|
144
|
+
new_dev = SmartDevice("127.0.0.1", protocol=dev.protocol)
|
|
145
|
+
|
|
146
|
+
module_queries = {
|
|
147
|
+
modname: q
|
|
148
|
+
for modname, module in dev._modules.items()
|
|
149
|
+
if (q := module.query()) and modname not in critical_modules
|
|
150
|
+
}
|
|
151
|
+
child_module_queries = {
|
|
152
|
+
modname: q
|
|
153
|
+
for child in dev.children
|
|
154
|
+
for modname, module in child._modules.items()
|
|
155
|
+
if (q := module.query()) and modname not in critical_modules
|
|
156
|
+
}
|
|
157
|
+
all_queries_names = {
|
|
158
|
+
key for mod_query in module_queries.values() for key in mod_query
|
|
159
|
+
}
|
|
160
|
+
all_child_queries_names = {
|
|
161
|
+
key for mod_query in child_module_queries.values() for key in mod_query
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
async def _query(request, *args, **kwargs):
|
|
165
|
+
responses = await dev.protocol._query(request, *args, **kwargs)
|
|
166
|
+
for k in responses:
|
|
167
|
+
if k in all_queries_names:
|
|
168
|
+
responses[k] = SmartErrorCode.PARAMS_ERROR
|
|
169
|
+
return responses
|
|
170
|
+
|
|
171
|
+
async def _child_query(self, request, *args, **kwargs):
|
|
172
|
+
responses = await child_protocols[self._device_id]._query(
|
|
173
|
+
request, *args, **kwargs
|
|
174
|
+
)
|
|
175
|
+
for k in responses:
|
|
176
|
+
if k in all_child_queries_names:
|
|
177
|
+
responses[k] = SmartErrorCode.PARAMS_ERROR
|
|
178
|
+
return responses
|
|
179
|
+
|
|
180
|
+
mocker.patch.object(new_dev.protocol, "query", side_effect=_query)
|
|
181
|
+
|
|
182
|
+
from kasa.smartprotocol import _ChildProtocolWrapper
|
|
183
|
+
|
|
184
|
+
child_protocols = {
|
|
185
|
+
cast(_ChildProtocolWrapper, child.protocol)._device_id: child.protocol
|
|
186
|
+
for child in dev.children
|
|
187
|
+
}
|
|
188
|
+
# children not created yet so cannot patch.object
|
|
189
|
+
mocker.patch("kasa.smartprotocol._ChildProtocolWrapper.query", new=_child_query)
|
|
190
|
+
|
|
191
|
+
await new_dev.update()
|
|
192
|
+
for modname in module_queries:
|
|
193
|
+
no_disable = modname in not_disabling_modules
|
|
194
|
+
mod_present = modname in new_dev._modules
|
|
195
|
+
assert (
|
|
196
|
+
mod_present is no_disable
|
|
197
|
+
), f"{modname} present {mod_present} when no_disable {no_disable}"
|
|
198
|
+
|
|
199
|
+
for modname in child_module_queries:
|
|
200
|
+
no_disable = modname in not_disabling_modules
|
|
201
|
+
mod_present = any(modname in child._modules for child in new_dev.children)
|
|
202
|
+
assert (
|
|
203
|
+
mod_present is no_disable
|
|
204
|
+
), f"{modname} present {mod_present} when no_disable {no_disable}"
|
|
205
|
+
|
|
206
|
+
|
|
135
207
|
async def test_get_modules():
|
|
136
208
|
"""Test getting modules for child and parent modules."""
|
|
137
209
|
dummy_device = await get_device_for_fixture_protocol(
|
|
@@ -181,6 +253,9 @@ async def test_smartdevice_cloud_connection(dev: SmartDevice, mocker: MockerFixt
|
|
|
181
253
|
assert dev.is_cloud_connected == is_connected
|
|
182
254
|
last_update = dev._last_update
|
|
183
255
|
|
|
256
|
+
for child in dev.children:
|
|
257
|
+
mocker.patch.object(child.protocol, "query", return_value=child._last_update)
|
|
258
|
+
|
|
184
259
|
last_update["get_connect_cloud_state"] = {"status": 0}
|
|
185
260
|
with patch.object(dev.protocol, "query", return_value=last_update):
|
|
186
261
|
await dev.update()
|
|
@@ -207,21 +282,18 @@ async def test_smartdevice_cloud_connection(dev: SmartDevice, mocker: MockerFixt
|
|
|
207
282
|
"get_connect_cloud_state": last_update["get_connect_cloud_state"],
|
|
208
283
|
"get_device_info": last_update["get_device_info"],
|
|
209
284
|
}
|
|
210
|
-
|
|
211
|
-
if "get_child_device_list" in last_update:
|
|
212
|
-
child_component_list = await dev.protocol.query(
|
|
213
|
-
"get_child_device_component_list"
|
|
214
|
-
)
|
|
215
|
-
last_update["get_child_device_component_list"] = child_component_list[
|
|
216
|
-
"get_child_device_component_list"
|
|
217
|
-
]
|
|
285
|
+
|
|
218
286
|
new_dev = SmartDevice("127.0.0.1", protocol=dev.protocol)
|
|
219
287
|
|
|
220
288
|
first_call = True
|
|
221
289
|
|
|
222
|
-
def side_effect_func(*
|
|
290
|
+
async def side_effect_func(*args, **kwargs):
|
|
223
291
|
nonlocal first_call
|
|
224
|
-
resp =
|
|
292
|
+
resp = (
|
|
293
|
+
initial_response
|
|
294
|
+
if first_call
|
|
295
|
+
else await new_dev.protocol._query(*args, **kwargs)
|
|
296
|
+
)
|
|
225
297
|
first_call = False
|
|
226
298
|
return resp
|
|
227
299
|
|
kasa/tests/test_smartprotocol.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
|
|
3
3
|
import pytest
|
|
4
|
+
import pytest_mock
|
|
4
5
|
|
|
5
6
|
from ..exceptions import (
|
|
6
7
|
SMART_RETRYABLE_ERRORS,
|
|
@@ -19,6 +20,21 @@ DUMMY_MULTIPLE_QUERY = {
|
|
|
19
20
|
ERRORS = [e for e in SmartErrorCode if e != 0]
|
|
20
21
|
|
|
21
22
|
|
|
23
|
+
async def test_smart_queries(dummy_protocol, mocker: pytest_mock.MockerFixture):
|
|
24
|
+
mock_response = {"result": {"great": "success"}, "error_code": 0}
|
|
25
|
+
|
|
26
|
+
mocker.patch.object(dummy_protocol._transport, "send", return_value=mock_response)
|
|
27
|
+
# test sending a method name as a string
|
|
28
|
+
resp = await dummy_protocol.query("foobar")
|
|
29
|
+
assert "foobar" in resp
|
|
30
|
+
assert resp["foobar"] == mock_response["result"]
|
|
31
|
+
|
|
32
|
+
# test sending a method name as a dict
|
|
33
|
+
resp = await dummy_protocol.query(DUMMY_QUERY)
|
|
34
|
+
assert "foobar" in resp
|
|
35
|
+
assert resp["foobar"] == mock_response["result"]
|
|
36
|
+
|
|
37
|
+
|
|
22
38
|
@pytest.mark.parametrize("error_code", ERRORS, ids=lambda e: e.name)
|
|
23
39
|
async def test_smart_device_errors(dummy_protocol, mocker, error_code):
|
|
24
40
|
mock_response = {"result": {"great": "success"}, "error_code": error_code.value}
|
|
@@ -54,35 +54,35 @@ kasa/smart/__init__.py,sha256=gdmi-Doe7dnv7e8ab_892lr9IdOXeFa3XlU3u_CePCk,198
|
|
|
54
54
|
kasa/smart/effects.py,sha256=E3oPHeWlc4lzThBbYV_UC2q-3EpdRiWf8eZiENMfb4k,11476
|
|
55
55
|
kasa/smart/modules/__init__.py,sha256=CKGEkVdcGeW2Z9ByBcNL3d9imMYFF29RYaz3bbMy3yY,1514
|
|
56
56
|
kasa/smart/modules/alarm.py,sha256=-7AxCD1B2i64vzNHwM071-B-jQVIt20MG3mumUJXpiA,4256
|
|
57
|
-
kasa/smart/modules/autooff.py,sha256=
|
|
58
|
-
kasa/smart/modules/batterysensor.py,sha256=
|
|
57
|
+
kasa/smart/modules/autooff.py,sha256=RxtmUTj9dknP92cmsyyvYmCERAanoQyXvSHxOevVNvM,3238
|
|
58
|
+
kasa/smart/modules/batterysensor.py,sha256=cjdrAa71RFZ88kQ36hzwFV0LfKZ7eHZdx2tH2v5hnPs,1738
|
|
59
59
|
kasa/smart/modules/brightness.py,sha256=GjQZ6wTRy8bDFBKT_zwMT0XQHIjx88DfxH-AFqmFM2k,2642
|
|
60
60
|
kasa/smart/modules/childdevice.py,sha256=oxzSEk0uDcxtsTfT0TPPb0otPb9fwKpFObihNVheL64,991
|
|
61
|
-
kasa/smart/modules/cloud.py,sha256=
|
|
61
|
+
kasa/smart/modules/cloud.py,sha256=t_dS3AGU-3IVLvLBhUX7Xt0zJ-Hsq7OuvSkcKgIYNl8,1348
|
|
62
62
|
kasa/smart/modules/color.py,sha256=Qr8v0xz1sgKDI6OwdcD5UxJabqBQ1bhMJMH5fPivbI8,2956
|
|
63
63
|
kasa/smart/modules/colortemperature.py,sha256=fK7SMAfeX__LIoVlLO7aMKOWa52XmpUzR0Aymrb8tRs,2511
|
|
64
64
|
kasa/smart/modules/contactsensor.py,sha256=wnKkb5yt7OPvdvfFjYlB0_xKsTptviNSQD19UDJQ3sY,1145
|
|
65
|
-
kasa/smart/modules/devicemodule.py,sha256=
|
|
65
|
+
kasa/smart/modules/devicemodule.py,sha256=3SixQV2wXLf14Z3ZA4poHY93pnWK4XHvmHPLkUfOXWw,780
|
|
66
66
|
kasa/smart/modules/energy.py,sha256=AFZSc4wpr9HTaYtsOFiyTUVQGPpKRJ0UM17fLdf3H8s,3152
|
|
67
67
|
kasa/smart/modules/fan.py,sha256=61tPg4UIKN16BgyYqN2rLu9UYcP5q4NN8A2YCB2Zjno,2552
|
|
68
|
-
kasa/smart/modules/firmware.py,sha256=
|
|
69
|
-
kasa/smart/modules/frostprotection.py,sha256=
|
|
70
|
-
kasa/smart/modules/humiditysensor.py,sha256=
|
|
68
|
+
kasa/smart/modules/firmware.py,sha256=PToVbqTWi8zclWs6thH8loug3V0QHaCb-_kxTD14mmE,7582
|
|
69
|
+
kasa/smart/modules/frostprotection.py,sha256=NsNhbvMnuCoUJWGbAWfP7_ODoOiIGISTHHE-Xj9IeNw,1125
|
|
70
|
+
kasa/smart/modules/humiditysensor.py,sha256=T-jsWVEOSVl6oX_IWvFvl_tCyjdncQjeFi-sxzH07Q4,1755
|
|
71
71
|
kasa/smart/modules/led.py,sha256=g9AuNjZ8QDBbtJ-qgHc5coGPONSFjrkBK9UA-n6bk4c,1378
|
|
72
72
|
kasa/smart/modules/light.py,sha256=3JQ3OUdknnb_hpM62O-2MUcgCR584VqkzI9amjaneIA,5668
|
|
73
73
|
kasa/smart/modules/lighteffect.py,sha256=Ki-ioL_sJE_pgURkQupTZwsbi6ulH7ttHJi2Ct4Ou3A,6142
|
|
74
|
-
kasa/smart/modules/lightpreset.py,sha256=
|
|
74
|
+
kasa/smart/modules/lightpreset.py,sha256=TFXlCWce9VaXhtHptbbJ52C6QQeUKQj38nzV7ipczFg,5833
|
|
75
75
|
kasa/smart/modules/lightstripeffect.py,sha256=vOkt5S0I_NlcOy9Seoo6zrgdLR18YqTXXKx0Q7X3R7o,5548
|
|
76
|
-
kasa/smart/modules/lighttransition.py,sha256=
|
|
77
|
-
kasa/smart/modules/reportmode.py,sha256=
|
|
76
|
+
kasa/smart/modules/lighttransition.py,sha256=XQMH9o6MMMRwqA8jSqk3vBlTCP1R8JqRDnED54Ryuv4,8212
|
|
77
|
+
kasa/smart/modules/reportmode.py,sha256=wHabcWLEgSNsh32pK-xn16Aa02anexoqsPdg9VvYWlg,1132
|
|
78
78
|
kasa/smart/modules/temperaturecontrol.py,sha256=_9idQNmHRAQA_Rc05jXC4DCfHK4RfoEc-u6HhvGHVr0,5709
|
|
79
|
-
kasa/smart/modules/temperaturesensor.py,sha256=
|
|
79
|
+
kasa/smart/modules/temperaturesensor.py,sha256=dgqqVJeE03RQ2PRXveLnxC4n-nLz0dQI7nHqrd7ZDBM,2719
|
|
80
80
|
kasa/smart/modules/time.py,sha256=CITnlRTe0z48DL2KHu18UDeGLKCy629eghYPq3MOHo8,1891
|
|
81
81
|
kasa/smart/modules/waterleaksensor.py,sha256=yoQtSjM1MO9sMpU2ldtWzHcTPPd7okZNWvjSXmkb4h0,1880
|
|
82
82
|
kasa/smart/smartchilddevice.py,sha256=zBstI7ks5XM1wLv5Lcrbj4Pe3jYN0YLxXSwTSKOtKW4,2677
|
|
83
|
-
kasa/smart/smartdevice.py,sha256=
|
|
84
|
-
kasa/smart/smartmodule.py,sha256=
|
|
85
|
-
kasa/smartprotocol.py,sha256=
|
|
83
|
+
kasa/smart/smartdevice.py,sha256=_sZxwwZaOHTiDyZZ6F-XZTLeq93OapMW8xi8RG1TBmQ,22994
|
|
84
|
+
kasa/smart/smartmodule.py,sha256=VVNFFRQqJb4ZOn855FWkPqDOeCPDVX_-0vNuIOb5J-8,4351
|
|
85
|
+
kasa/smartprotocol.py,sha256=OdTTZmKLamjLmoV3zNqXeSqCb7fDtKQVkJn3ll2Yh5Q,16943
|
|
86
86
|
kasa/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
87
|
kasa/tests/conftest.py,sha256=SEMjGkposNARLaU2DZO__NBkZmNIn3A-CXJuYIrRk9Q,2791
|
|
88
88
|
kasa/tests/device_fixtures.py,sha256=p29ye1Q-HjgZERiRXIPk8ik_YNaBD9MhIuNuJsqc-0I,13576
|
|
@@ -238,13 +238,13 @@ kasa/tests/test_lightstrip.py,sha256=GvjrFyWP8A5UahrHDMCetmLzfZKWe1R8jWBdQf3tWI0
|
|
|
238
238
|
kasa/tests/test_plug.py,sha256=GOfU-mVSSPuakHoATbg5iJVVMbqGZl6ZCrWSpqshAkw,1859
|
|
239
239
|
kasa/tests/test_protocol.py,sha256=eHkr9iF2SnlWnyxzb3ECS68r53GBK6Z1SW37G8QHSv8,19578
|
|
240
240
|
kasa/tests/test_readme_examples.py,sha256=gU19c-M-PkNU2UD-JR4WnXWY3jWVr1Ygy2kaJriDJH4,6934
|
|
241
|
-
kasa/tests/test_smartdevice.py,sha256=
|
|
242
|
-
kasa/tests/test_smartprotocol.py,sha256=
|
|
241
|
+
kasa/tests/test_smartdevice.py,sha256=p1fKvZKmXLT8Idubt2BD8oO2Wn0Y2H8CdRKn7Ft4kV8,10236
|
|
242
|
+
kasa/tests/test_smartprotocol.py,sha256=eM9w1Z8x13hA5p_jQyHY5r9uNDFvFIgINpslOQYlbiA,14270
|
|
243
243
|
kasa/tests/test_strip.py,sha256=v7-fDl0DTCIxC7Otd8GrAmm_WVkJDqrzBEJ7Yvx9yA0,5017
|
|
244
244
|
kasa/tests/test_usage.py,sha256=ypM6O_KEpmI3Mw9FRPf045S-FefOKqpM-BF0px6ca6M,2331
|
|
245
245
|
kasa/xortransport.py,sha256=nuQqClJIgfSt485WCxkw-vNwrORkmoCy-X-xfJiBwOY,8533
|
|
246
|
-
python_kasa-0.7.0.
|
|
247
|
-
python_kasa-0.7.0.
|
|
248
|
-
python_kasa-0.7.0.
|
|
249
|
-
python_kasa-0.7.0.
|
|
250
|
-
python_kasa-0.7.0.
|
|
246
|
+
python_kasa-0.7.0.3.dist-info/LICENSE,sha256=Klt9aEsei738epLgYqeikhpdBWwMvU1VAli14Bxlc5c,33218
|
|
247
|
+
python_kasa-0.7.0.3.dist-info/METADATA,sha256=oZvCC82wJNrkk9CsTpvwhgwEnLL_Ydjc2-eldxwrVbg,11516
|
|
248
|
+
python_kasa-0.7.0.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
249
|
+
python_kasa-0.7.0.3.dist-info/entry_points.txt,sha256=RlTlZyXOxJ_r2Ap7lpuPAWyYUud9RfVBnOklBvUKPVA,37
|
|
250
|
+
python_kasa-0.7.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|