python-kasa 0.7.0.dev0__py3-none-any.whl → 0.7.0.dev1__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/__init__.py +3 -1
- kasa/device.py +8 -0
- kasa/interfaces/light.py +6 -1
- kasa/iot/iotbulb.py +3 -0
- kasa/iot/iotdevice.py +19 -0
- kasa/iot/iotdimmer.py +3 -0
- kasa/iot/modules/light.py +46 -4
- kasa/smart/modules/light.py +28 -1
- kasa/tests/test_bulb.py +1 -1
- kasa/tests/test_common_modules.py +28 -2
- kasa/tests/test_dimmer.py +9 -9
- {python_kasa-0.7.0.dev0.dist-info → python_kasa-0.7.0.dev1.dist-info}/METADATA +1 -1
- {python_kasa-0.7.0.dev0.dist-info → python_kasa-0.7.0.dev1.dist-info}/RECORD +16 -16
- {python_kasa-0.7.0.dev0.dist-info → python_kasa-0.7.0.dev1.dist-info}/LICENSE +0 -0
- {python_kasa-0.7.0.dev0.dist-info → python_kasa-0.7.0.dev1.dist-info}/WHEEL +0 -0
- {python_kasa-0.7.0.dev0.dist-info → python_kasa-0.7.0.dev1.dist-info}/entry_points.txt +0 -0
kasa/__init__.py
CHANGED
|
@@ -35,7 +35,7 @@ from kasa.exceptions import (
|
|
|
35
35
|
UnsupportedDeviceError,
|
|
36
36
|
)
|
|
37
37
|
from kasa.feature import Feature
|
|
38
|
-
from kasa.interfaces.light import Light, LightState
|
|
38
|
+
from kasa.interfaces.light import HSV, ColorTempRange, Light, LightState
|
|
39
39
|
from kasa.iotprotocol import (
|
|
40
40
|
IotProtocol,
|
|
41
41
|
_deprecated_TPLinkSmartHomeProtocol, # noqa: F401
|
|
@@ -60,6 +60,8 @@ __all__ = [
|
|
|
60
60
|
"EmeterStatus",
|
|
61
61
|
"Device",
|
|
62
62
|
"Light",
|
|
63
|
+
"ColorTempRange",
|
|
64
|
+
"HSV",
|
|
63
65
|
"Plug",
|
|
64
66
|
"Module",
|
|
65
67
|
"KasaException",
|
kasa/device.py
CHANGED
|
@@ -138,6 +138,14 @@ class Device(ABC):
|
|
|
138
138
|
async def turn_off(self, **kwargs) -> dict | None:
|
|
139
139
|
"""Turn off the device."""
|
|
140
140
|
|
|
141
|
+
@abstractmethod
|
|
142
|
+
async def set_state(self, on: bool):
|
|
143
|
+
"""Set the device state to *on*.
|
|
144
|
+
|
|
145
|
+
This allows turning the device on and off.
|
|
146
|
+
See also *turn_off* and *turn_on*.
|
|
147
|
+
"""
|
|
148
|
+
|
|
141
149
|
@property
|
|
142
150
|
def host(self) -> str:
|
|
143
151
|
"""The device host."""
|
kasa/interfaces/light.py
CHANGED
|
@@ -18,7 +18,7 @@ class LightState:
|
|
|
18
18
|
hue: int | None = None
|
|
19
19
|
saturation: int | None = None
|
|
20
20
|
color_temp: int | None = None
|
|
21
|
-
transition:
|
|
21
|
+
transition: int | None = None
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class ColorTempRange(NamedTuple):
|
|
@@ -128,6 +128,11 @@ class Light(Module, ABC):
|
|
|
128
128
|
:param int transition: transition in milliseconds.
|
|
129
129
|
"""
|
|
130
130
|
|
|
131
|
+
@property
|
|
132
|
+
@abstractmethod
|
|
133
|
+
def state(self) -> LightState:
|
|
134
|
+
"""Return the current light state."""
|
|
135
|
+
|
|
131
136
|
@abstractmethod
|
|
132
137
|
async def set_state(self, state: LightState) -> dict:
|
|
133
138
|
"""Set the light state."""
|
kasa/iot/iotbulb.py
CHANGED
|
@@ -329,6 +329,9 @@ class IotBulb(IotDevice):
|
|
|
329
329
|
if transition is not None:
|
|
330
330
|
state["transition_period"] = transition
|
|
331
331
|
|
|
332
|
+
if "brightness" in state:
|
|
333
|
+
self._raise_for_invalid_brightness(state["brightness"])
|
|
334
|
+
|
|
332
335
|
# if no on/off is defined, turn on the light
|
|
333
336
|
if "on_off" not in state:
|
|
334
337
|
state["on_off"] = 1
|
kasa/iot/iotdevice.py
CHANGED
|
@@ -323,6 +323,18 @@ class IotDevice(Device):
|
|
|
323
323
|
"""Initialize modules not added in init."""
|
|
324
324
|
|
|
325
325
|
async def _initialize_features(self):
|
|
326
|
+
"""Initialize common features."""
|
|
327
|
+
self._add_feature(
|
|
328
|
+
Feature(
|
|
329
|
+
self,
|
|
330
|
+
id="state",
|
|
331
|
+
name="State",
|
|
332
|
+
attribute_getter="is_on",
|
|
333
|
+
attribute_setter="set_state",
|
|
334
|
+
type=Feature.Type.Switch,
|
|
335
|
+
category=Feature.Category.Primary,
|
|
336
|
+
)
|
|
337
|
+
)
|
|
326
338
|
self._add_feature(
|
|
327
339
|
Feature(
|
|
328
340
|
device=self,
|
|
@@ -634,6 +646,13 @@ class IotDevice(Device):
|
|
|
634
646
|
"""Return True if the device is on."""
|
|
635
647
|
raise NotImplementedError("Device subclass needs to implement this.")
|
|
636
648
|
|
|
649
|
+
async def set_state(self, on: bool):
|
|
650
|
+
"""Set the device state."""
|
|
651
|
+
if on:
|
|
652
|
+
return await self.turn_on()
|
|
653
|
+
else:
|
|
654
|
+
return await self.turn_off()
|
|
655
|
+
|
|
637
656
|
@property # type: ignore
|
|
638
657
|
@requires_update
|
|
639
658
|
def on_since(self) -> datetime | None:
|
kasa/iot/iotdimmer.py
CHANGED
|
@@ -168,6 +168,9 @@ class IotDimmer(IotPlug):
|
|
|
168
168
|
if not 0 <= brightness <= 100:
|
|
169
169
|
raise ValueError("Brightness value %s is not valid." % brightness)
|
|
170
170
|
|
|
171
|
+
# If zero set to 1 millisecond
|
|
172
|
+
if transition == 0:
|
|
173
|
+
transition = 1
|
|
171
174
|
if not isinstance(transition, int):
|
|
172
175
|
raise ValueError(
|
|
173
176
|
"Transition must be integer, " "not of %s.", type(transition)
|
kasa/iot/modules/light.py
CHANGED
|
@@ -25,6 +25,7 @@ class Light(IotModule, LightInterface):
|
|
|
25
25
|
"""Implementation of brightness module."""
|
|
26
26
|
|
|
27
27
|
_device: IotBulb | IotDimmer
|
|
28
|
+
_light_state: LightState
|
|
28
29
|
|
|
29
30
|
def _initialize_features(self):
|
|
30
31
|
"""Initialize features."""
|
|
@@ -102,12 +103,14 @@ class Light(IotModule, LightInterface):
|
|
|
102
103
|
async def set_brightness(
|
|
103
104
|
self, brightness: int, *, transition: int | None = None
|
|
104
105
|
) -> dict:
|
|
105
|
-
"""Set the brightness in percentage.
|
|
106
|
+
"""Set the brightness in percentage. A value of 0 will turn off the light.
|
|
106
107
|
|
|
107
108
|
:param int brightness: brightness in percent
|
|
108
109
|
:param int transition: transition in milliseconds.
|
|
109
110
|
"""
|
|
110
|
-
return await self.
|
|
111
|
+
return await self.set_state(
|
|
112
|
+
LightState(brightness=brightness, transition=transition)
|
|
113
|
+
)
|
|
111
114
|
|
|
112
115
|
@property
|
|
113
116
|
def is_color(self) -> bool:
|
|
@@ -202,15 +205,54 @@ class Light(IotModule, LightInterface):
|
|
|
202
205
|
|
|
203
206
|
async def set_state(self, state: LightState) -> dict:
|
|
204
207
|
"""Set the light state."""
|
|
205
|
-
|
|
206
|
-
|
|
208
|
+
# iot protocol Dimmers and smart protocol devices do not support
|
|
209
|
+
# brightness of 0 so 0 will turn off all devices for consistency
|
|
210
|
+
if (bulb := self._get_bulb_device()) is None: # Dimmer
|
|
211
|
+
if state.brightness == 0 or state.light_on is False:
|
|
212
|
+
return await self._device.turn_off(transition=state.transition)
|
|
213
|
+
elif state.brightness:
|
|
214
|
+
# set_dimmer_transition will turn on the device
|
|
215
|
+
return await self._device.set_dimmer_transition(
|
|
216
|
+
state.brightness, state.transition or 0
|
|
217
|
+
)
|
|
218
|
+
return await self._device.turn_on(transition=state.transition)
|
|
207
219
|
else:
|
|
208
220
|
transition = state.transition
|
|
209
221
|
state_dict = asdict(state)
|
|
210
222
|
state_dict = {k: v for k, v in state_dict.items() if v is not None}
|
|
223
|
+
if "transition" in state_dict:
|
|
224
|
+
del state_dict["transition"]
|
|
211
225
|
state_dict["on_off"] = 1 if state.light_on is None else int(state.light_on)
|
|
226
|
+
if state_dict.get("brightness") == 0:
|
|
227
|
+
state_dict["on_off"] = 0
|
|
228
|
+
del state_dict["brightness"]
|
|
229
|
+
# If light on state not set default to on.
|
|
230
|
+
elif state.light_on is None:
|
|
231
|
+
state_dict["on_off"] = 1
|
|
232
|
+
else:
|
|
233
|
+
state_dict["on_off"] = int(state.light_on)
|
|
212
234
|
return await bulb._set_light_state(state_dict, transition=transition)
|
|
213
235
|
|
|
236
|
+
@property
|
|
237
|
+
def state(self) -> LightState:
|
|
238
|
+
"""Return the current light state."""
|
|
239
|
+
return self._light_state
|
|
240
|
+
|
|
241
|
+
def _post_update_hook(self) -> None:
|
|
242
|
+
if self._device.is_on is False:
|
|
243
|
+
state = LightState(light_on=False)
|
|
244
|
+
else:
|
|
245
|
+
state = LightState(light_on=True)
|
|
246
|
+
if self.is_dimmable:
|
|
247
|
+
state.brightness = self.brightness
|
|
248
|
+
if self.is_color:
|
|
249
|
+
hsv = self.hsv
|
|
250
|
+
state.hue = hsv.hue
|
|
251
|
+
state.saturation = hsv.saturation
|
|
252
|
+
if self.is_variable_color_temp:
|
|
253
|
+
state.color_temp = self.color_temp
|
|
254
|
+
self._light_state = state
|
|
255
|
+
|
|
214
256
|
async def _deprecated_set_light_state(
|
|
215
257
|
self, state: dict, *, transition: int | None = None
|
|
216
258
|
) -> dict:
|
kasa/smart/modules/light.py
CHANGED
|
@@ -14,6 +14,8 @@ from ..smartmodule import SmartModule
|
|
|
14
14
|
class Light(SmartModule, LightInterface):
|
|
15
15
|
"""Implementation of a light."""
|
|
16
16
|
|
|
17
|
+
_light_state: LightState
|
|
18
|
+
|
|
17
19
|
def query(self) -> dict:
|
|
18
20
|
"""Query to execute during the update cycle."""
|
|
19
21
|
return {}
|
|
@@ -131,9 +133,34 @@ class Light(SmartModule, LightInterface):
|
|
|
131
133
|
"""Set the light state."""
|
|
132
134
|
state_dict = asdict(state)
|
|
133
135
|
# brightness of 0 turns off the light, it's not a valid brightness
|
|
134
|
-
if state.brightness
|
|
136
|
+
if state.brightness == 0:
|
|
135
137
|
state_dict["device_on"] = False
|
|
136
138
|
del state_dict["brightness"]
|
|
139
|
+
elif state.light_on is not None:
|
|
140
|
+
state_dict["device_on"] = state.light_on
|
|
141
|
+
del state_dict["light_on"]
|
|
142
|
+
else:
|
|
143
|
+
state_dict["device_on"] = True
|
|
137
144
|
|
|
138
145
|
params = {k: v for k, v in state_dict.items() if v is not None}
|
|
139
146
|
return await self.call("set_device_info", params)
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def state(self) -> LightState:
|
|
150
|
+
"""Return the current light state."""
|
|
151
|
+
return self._light_state
|
|
152
|
+
|
|
153
|
+
def _post_update_hook(self) -> None:
|
|
154
|
+
if self._device.is_on is False:
|
|
155
|
+
state = LightState(light_on=False)
|
|
156
|
+
else:
|
|
157
|
+
state = LightState(light_on=True)
|
|
158
|
+
if self.is_dimmable:
|
|
159
|
+
state.brightness = self.brightness
|
|
160
|
+
if self.is_color:
|
|
161
|
+
hsv = self.hsv
|
|
162
|
+
state.hue = hsv.hue
|
|
163
|
+
state.saturation = hsv.saturation
|
|
164
|
+
if self.is_variable_color_temp:
|
|
165
|
+
state.color_temp = self.color_temp
|
|
166
|
+
self._light_state = state
|
kasa/tests/test_bulb.py
CHANGED
|
@@ -241,7 +241,7 @@ async def test_dimmable_brightness_transition(dev: IotBulb, mocker):
|
|
|
241
241
|
set_light_state = mocker.patch("kasa.iot.IotBulb._set_light_state")
|
|
242
242
|
await dev.set_brightness(10, transition=1000)
|
|
243
243
|
|
|
244
|
-
set_light_state.assert_called_with({"brightness": 10}, transition=1000)
|
|
244
|
+
set_light_state.assert_called_with({"brightness": 10, "on_off": 1}, transition=1000)
|
|
245
245
|
|
|
246
246
|
|
|
247
247
|
@dimmable_iot
|
|
@@ -4,6 +4,7 @@ from pytest_mock import MockerFixture
|
|
|
4
4
|
from kasa import Device, LightState, Module
|
|
5
5
|
from kasa.tests.device_fixtures import (
|
|
6
6
|
bulb_iot,
|
|
7
|
+
bulb_smart,
|
|
7
8
|
dimmable_iot,
|
|
8
9
|
dimmer_iot,
|
|
9
10
|
lightstrip_iot,
|
|
@@ -40,6 +41,8 @@ light_preset_smart = parametrize(
|
|
|
40
41
|
|
|
41
42
|
light_preset = parametrize_combine([light_preset_smart, bulb_iot])
|
|
42
43
|
|
|
44
|
+
light = parametrize_combine([bulb_smart, bulb_iot, dimmable])
|
|
45
|
+
|
|
43
46
|
|
|
44
47
|
@led
|
|
45
48
|
async def test_led_module(dev: Device, mocker: MockerFixture):
|
|
@@ -139,6 +142,30 @@ async def test_light_brightness(dev: Device):
|
|
|
139
142
|
await light.set_brightness(feature.maximum_value + 10)
|
|
140
143
|
|
|
141
144
|
|
|
145
|
+
@light
|
|
146
|
+
async def test_light_set_state(dev: Device):
|
|
147
|
+
"""Test brightness setter and getter."""
|
|
148
|
+
assert isinstance(dev, Device)
|
|
149
|
+
light = dev.modules.get(Module.Light)
|
|
150
|
+
assert light
|
|
151
|
+
|
|
152
|
+
await light.set_state(LightState(light_on=False))
|
|
153
|
+
await dev.update()
|
|
154
|
+
assert light.state.light_on is False
|
|
155
|
+
|
|
156
|
+
await light.set_state(LightState(light_on=True))
|
|
157
|
+
await dev.update()
|
|
158
|
+
assert light.state.light_on is True
|
|
159
|
+
|
|
160
|
+
await light.set_state(LightState(brightness=0))
|
|
161
|
+
await dev.update()
|
|
162
|
+
assert light.state.light_on is False
|
|
163
|
+
|
|
164
|
+
await light.set_state(LightState(brightness=50))
|
|
165
|
+
await dev.update()
|
|
166
|
+
assert light.state.light_on is True
|
|
167
|
+
|
|
168
|
+
|
|
142
169
|
@light_preset
|
|
143
170
|
async def test_light_preset_module(dev: Device, mocker: MockerFixture):
|
|
144
171
|
"""Test light preset module."""
|
|
@@ -148,7 +175,6 @@ async def test_light_preset_module(dev: Device, mocker: MockerFixture):
|
|
|
148
175
|
assert light_mod
|
|
149
176
|
feat = dev.features["light_preset"]
|
|
150
177
|
|
|
151
|
-
call = mocker.spy(light_mod, "set_state")
|
|
152
178
|
preset_list = preset_mod.preset_list
|
|
153
179
|
assert "Not set" in preset_list
|
|
154
180
|
assert preset_list.index("Not set") == 0
|
|
@@ -157,7 +183,6 @@ async def test_light_preset_module(dev: Device, mocker: MockerFixture):
|
|
|
157
183
|
assert preset_mod.has_save_preset is True
|
|
158
184
|
|
|
159
185
|
await light_mod.set_brightness(33) # Value that should not be a preset
|
|
160
|
-
assert call.call_count == 0
|
|
161
186
|
await dev.update()
|
|
162
187
|
assert preset_mod.preset == "Not set"
|
|
163
188
|
assert feat.value == "Not set"
|
|
@@ -165,6 +190,7 @@ async def test_light_preset_module(dev: Device, mocker: MockerFixture):
|
|
|
165
190
|
if len(preset_list) == 1:
|
|
166
191
|
return
|
|
167
192
|
|
|
193
|
+
call = mocker.spy(light_mod, "set_state")
|
|
168
194
|
second_preset = preset_list[1]
|
|
169
195
|
await preset_mod.set_preset(second_preset)
|
|
170
196
|
assert call.call_count == 1
|
kasa/tests/test_dimmer.py
CHANGED
|
@@ -7,19 +7,19 @@ from .conftest import dimmer_iot, handle_turn_on, turn_on
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
@dimmer_iot
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
async def test_set_brightness(dev):
|
|
11
|
+
await handle_turn_on(dev, False)
|
|
12
|
+
assert dev.is_on is False
|
|
13
13
|
|
|
14
14
|
await dev.set_brightness(99)
|
|
15
15
|
await dev.update()
|
|
16
16
|
assert dev.brightness == 99
|
|
17
|
-
assert dev.is_on
|
|
17
|
+
assert dev.is_on is True
|
|
18
18
|
|
|
19
19
|
await dev.set_brightness(0)
|
|
20
20
|
await dev.update()
|
|
21
|
-
assert dev.brightness ==
|
|
22
|
-
assert dev.is_on
|
|
21
|
+
assert dev.brightness == 99
|
|
22
|
+
assert dev.is_on is False
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
@dimmer_iot
|
|
@@ -41,7 +41,7 @@ async def test_set_brightness_transition(dev, turn_on, mocker):
|
|
|
41
41
|
|
|
42
42
|
await dev.set_brightness(0, transition=1000)
|
|
43
43
|
await dev.update()
|
|
44
|
-
assert dev.
|
|
44
|
+
assert dev.is_on is False
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
@dimmer_iot
|
|
@@ -50,7 +50,7 @@ async def test_set_brightness_invalid(dev):
|
|
|
50
50
|
with pytest.raises(ValueError):
|
|
51
51
|
await dev.set_brightness(invalid_brightness)
|
|
52
52
|
|
|
53
|
-
for invalid_transition in [-1, 0
|
|
53
|
+
for invalid_transition in [-1, 0.5]:
|
|
54
54
|
with pytest.raises(ValueError):
|
|
55
55
|
await dev.set_brightness(1, transition=invalid_transition)
|
|
56
56
|
|
|
@@ -133,7 +133,7 @@ async def test_set_dimmer_transition_invalid(dev):
|
|
|
133
133
|
with pytest.raises(ValueError):
|
|
134
134
|
await dev.set_dimmer_transition(invalid_brightness, 1000)
|
|
135
135
|
|
|
136
|
-
for invalid_transition in [-1, 0
|
|
136
|
+
for invalid_transition in [-1, 0.5]:
|
|
137
137
|
with pytest.raises(ValueError):
|
|
138
138
|
await dev.set_dimmer_transition(1, invalid_transition)
|
|
139
139
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
kasa/__init__.py,sha256=
|
|
1
|
+
kasa/__init__.py,sha256=_jHneiy0TI69vHeJbYQsQ7W_7mkDu7NvJux3YLAll1Y,4176
|
|
2
2
|
kasa/aestransport.py,sha256=znkr9wTGcXMSbuVUEfeSAjTa8tblPHn262Roetd1uVo,16213
|
|
3
3
|
kasa/cli.py,sha256=TI2AwLKmMFIRYbCHIMuM8ZLkPoDobKMkNLeZbnrhPEY,37621
|
|
4
4
|
kasa/credentials.py,sha256=SU9O5QjkWsozC7oCMhc2abydmETNjLZrJwv_KJ6fnK4,357
|
|
5
|
-
kasa/device.py,sha256=
|
|
5
|
+
kasa/device.py,sha256=fSfURFQoaXu2Kck2nvi3CWxl-qaX6OY7IQgDvkstEzQ,13854
|
|
6
6
|
kasa/device_factory.py,sha256=ct22rdnDqXONBc5PMeY_hii84Jy8ncWfkyEq2ZzfheA,6996
|
|
7
7
|
kasa/device_type.py,sha256=MJW1bVoAcH_MILSW8IBpv3jKRbPWkxmvuWdU-7Ov_D0,744
|
|
8
8
|
kasa/deviceconfig.py,sha256=iE5nOyG5vP_wpMIGV4pNAV36LJS4YxYn-8gmS6wMSFY,6913
|
|
@@ -14,14 +14,14 @@ kasa/httpclient.py,sha256=wA6MmEkcnseKbjzDy8R5YeJJEDEhrRNc9tqgmCjQSNo,3960
|
|
|
14
14
|
kasa/interfaces/__init__.py,sha256=bDGedx_sD_wsr1nATAJHt2nv3ClVWsWLfWiyBICMSOk,290
|
|
15
15
|
kasa/interfaces/fan.py,sha256=cnT9HpiJrJ9JSrF4nRzb6Ff8OyC1-ZUzW6aIGXQObWc,411
|
|
16
16
|
kasa/interfaces/led.py,sha256=LJR2IiEhZdrskza9nDLAe5WWgr_JCd3B35jve7q0BI0,950
|
|
17
|
-
kasa/interfaces/light.py,sha256=
|
|
17
|
+
kasa/interfaces/light.py,sha256=nxMBWiR2hW6tflMyHEfhwU7nkr192do_goHUH6SdEUk,3487
|
|
18
18
|
kasa/interfaces/lighteffect.py,sha256=6in84ZCBli1ejHM7WuiG5AmnDQPDNRsZA3ER3t00sUw,2122
|
|
19
19
|
kasa/interfaces/lightpreset.py,sha256=d0oFmaC1METpQWxyBvSL8yPCjO1Z1-cOzNWa665ROyc,1887
|
|
20
20
|
kasa/iot/__init__.py,sha256=k0QlxHTzb_btqNIIpUd9ybDo-CjkQLa1DReyAkTfs4I,399
|
|
21
21
|
kasa/iot/effects.py,sha256=au35HDrHso7JRdv9bPSdkepdpR8NbSp-gFGHW2SKZUw,7506
|
|
22
|
-
kasa/iot/iotbulb.py,sha256=
|
|
23
|
-
kasa/iot/iotdevice.py,sha256=
|
|
24
|
-
kasa/iot/iotdimmer.py,sha256=
|
|
22
|
+
kasa/iot/iotbulb.py,sha256=CHu20vBDDeqZ7XcTSX8dcRDKa_wHu-9g1RNbrGnZzbk,17837
|
|
23
|
+
kasa/iot/iotdevice.py,sha256=EqJ2a5q1oVV4JY1B4monYamC0yjssXyjwmyBLVMtXl4,25097
|
|
24
|
+
kasa/iot/iotdimmer.py,sha256=CeECYa_k5ObIsiHw_cQHaP_7QFsrB5_8r3uBslrkty8,7760
|
|
25
25
|
kasa/iot/iotlightstrip.py,sha256=bVlRzA3TUJMS4Xdkrsje6LIum52rf_fTz7lhf_tLt7A,2061
|
|
26
26
|
kasa/iot/iotmodule.py,sha256=-pf1d91Va0pxfcgT0HsF5aO8xJYWyoYVMCrrADP2zWg,2091
|
|
27
27
|
kasa/iot/iotplug.py,sha256=LVYdP0mTH2EdkCZihgVNLh1bLAIlg_VlkBJb2my2RVw,2976
|
|
@@ -33,7 +33,7 @@ kasa/iot/modules/cloud.py,sha256=CWL54K3iC7VQ7NBdnX039fz6r-MjCwxdhOGqv2QCk7c,203
|
|
|
33
33
|
kasa/iot/modules/countdown.py,sha256=53PUMGv3L1zMTkx1PBRvMSGzqX6ZnbwmtXHMyBioT4o,159
|
|
34
34
|
kasa/iot/modules/emeter.py,sha256=6Ckz5coe8VtO34jIqWSvRG4c0lKVISKGHHBZwMe7rcA,6816
|
|
35
35
|
kasa/iot/modules/led.py,sha256=6iM2FTE7sxNJtxmqwLs2iFXBbTdF-4vmgIAqJTuXDAA,814
|
|
36
|
-
kasa/iot/modules/light.py,sha256=
|
|
36
|
+
kasa/iot/modules/light.py,sha256=a-Ypjg39SMsBRMgF9Bx78glObArZ1gTacTAy1CFcOWg,9551
|
|
37
37
|
kasa/iot/modules/lighteffect.py,sha256=UunL9zT3pkXBZA3irrv0a4HG9_YV57STfAt_0-0yrrk,3595
|
|
38
38
|
kasa/iot/modules/lightpreset.py,sha256=_tMCxMCX9VEjx1pwhkk8O7HMmU1PFWJL32pUhkzA6Lk,5282
|
|
39
39
|
kasa/iot/modules/motion.py,sha256=lfxM0CFGacjZrBh6UqN5Kyja4beXwrTNxZUU4lh0xZg,2264
|
|
@@ -68,7 +68,7 @@ kasa/smart/modules/firmware.py,sha256=2tk5KxXCd6234mENnyP7C8OqNqyMxemoUG6J9DdWu3
|
|
|
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
|
-
kasa/smart/modules/light.py,sha256=
|
|
71
|
+
kasa/smart/modules/light.py,sha256=3JQ3OUdknnb_hpM62O-2MUcgCR584VqkzI9amjaneIA,5668
|
|
72
72
|
kasa/smart/modules/lighteffect.py,sha256=cJg4pRYZrR6iHmIVGnBN-qoz9oTrtlhEtXQb2soL5Dk,3971
|
|
73
73
|
kasa/smart/modules/lightpreset.py,sha256=Xoy2sOVxq4z9bifwPIgo-jN99Xv9e8Gxs2BjMY2-N44,5327
|
|
74
74
|
kasa/smart/modules/lightstripeffect.py,sha256=Hdw_QZ7c8SDawDFpYhnMinAnukMAt62Yaql_HNvvBtE,4012
|
|
@@ -208,15 +208,15 @@ kasa/tests/smart/modules/test_temperature.py,sha256=MJy4T5HSKl0tzgLADvTS1P2V9-Kq
|
|
|
208
208
|
kasa/tests/smart/modules/test_temperaturecontrol.py,sha256=_g7WAp1dkXWWP_8g633Z_LzgEdYDr1xW_XHSg96Pe7k,4145
|
|
209
209
|
kasa/tests/smart/modules/test_waterleak.py,sha256=IeMts3JTj84npChuP3A0sjqt50ZwuhroZOgsYqtN4CU,1156
|
|
210
210
|
kasa/tests/test_aestransport.py,sha256=fbSz7lmya1X6oF0DC3D8Ptf9eNNWTFGTBCd7jqkUq2c,14157
|
|
211
|
-
kasa/tests/test_bulb.py,sha256=
|
|
211
|
+
kasa/tests/test_bulb.py,sha256=d6tkqkz9jsBtwfooL2CY9Ekm82b7IxOtItYaUDF0LYc,11555
|
|
212
212
|
kasa/tests/test_childdevice.py,sha256=FWCfvkk_87QEvIfmheHkIhMM6MnJIaLpBz3flp_uLBs,2648
|
|
213
213
|
kasa/tests/test_cli.py,sha256=iO7JnZvbdnaVYQ2XX_mUVKyCzcf6ZPvXPUY3Cpxxmtg,26215
|
|
214
|
-
kasa/tests/test_common_modules.py,sha256=
|
|
214
|
+
kasa/tests/test_common_modules.py,sha256=S14yXjIZ3Kr6P2G69-aGB_L7ylfT-1TgeDsEMXThFX8,7318
|
|
215
215
|
kasa/tests/test_device.py,sha256=ggOKejL5vP9nWmtFOtRJc3BdYnOiNKM1dl-EsUm1_NA,9012
|
|
216
216
|
kasa/tests/test_device_factory.py,sha256=YQ0gsoCXGx0Iy2dY2DvKApQ4rVfrnU4hjlTHVudicws,5646
|
|
217
217
|
kasa/tests/test_device_type.py,sha256=QiAHVsPbs1lR8mXXvq1IJ4n1OAIs0pmMekjVSTxfp1o,872
|
|
218
218
|
kasa/tests/test_deviceconfig.py,sha256=uhsZDe3lJhIoUdXEEBe0JYri1lNf8dbWHN7mJWHX4J0,2318
|
|
219
|
-
kasa/tests/test_dimmer.py,sha256=
|
|
219
|
+
kasa/tests/test_dimmer.py,sha256=q5cxLwy3072Aqe3GFqtqIVYvlwy4MZ2qDPoFXemyDNE,3859
|
|
220
220
|
kasa/tests/test_discovery.py,sha256=RqxicftylgUr_9dRdvYO5V9iGtEPiqTbk0kZnAUmaCQ,16719
|
|
221
221
|
kasa/tests/test_emeter.py,sha256=DEjU7CR8gMO0uF1fyB7jwmS38kiDtWiQ9fXAPrzyOU8,4718
|
|
222
222
|
kasa/tests/test_feature.py,sha256=hXIw9LgyyLOAHlOh8w2nYH3RM5NfKJbVAN-HJIIcVXY,6853
|
|
@@ -232,8 +232,8 @@ kasa/tests/test_smartprotocol.py,sha256=ZFc5HnQU--VN82S7IPiOO1K5iRUEqFfVPhtcnrSV
|
|
|
232
232
|
kasa/tests/test_strip.py,sha256=OnfPMX1gifWl1-LG_nMvnKheRJvjiRB7YpbjG53kdqs,4286
|
|
233
233
|
kasa/tests/test_usage.py,sha256=ypM6O_KEpmI3Mw9FRPf045S-FefOKqpM-BF0px6ca6M,2331
|
|
234
234
|
kasa/xortransport.py,sha256=W0wCWqMHUqkPQqj71JRUFzMxZIzkIxUdFqlXgYP_olc,8530
|
|
235
|
-
python_kasa-0.7.0.
|
|
236
|
-
python_kasa-0.7.0.
|
|
237
|
-
python_kasa-0.7.0.
|
|
238
|
-
python_kasa-0.7.0.
|
|
239
|
-
python_kasa-0.7.0.
|
|
235
|
+
python_kasa-0.7.0.dev1.dist-info/LICENSE,sha256=Klt9aEsei738epLgYqeikhpdBWwMvU1VAli14Bxlc5c,33218
|
|
236
|
+
python_kasa-0.7.0.dev1.dist-info/METADATA,sha256=_v86gFubEuxq9Qyj80W3lgdMvKtNDebEpppPNgRb8Ro,13203
|
|
237
|
+
python_kasa-0.7.0.dev1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
238
|
+
python_kasa-0.7.0.dev1.dist-info/entry_points.txt,sha256=RlTlZyXOxJ_r2Ap7lpuPAWyYUud9RfVBnOklBvUKPVA,37
|
|
239
|
+
python_kasa-0.7.0.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|