python-kasa 0.7.6__py3-none-any.whl → 0.7.7__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 +5 -4
- kasa/cli/device.py +10 -0
- kasa/cli/discover.py +11 -2
- kasa/device.py +2 -2
- kasa/device_factory.py +5 -3
- kasa/discover.py +38 -8
- kasa/interfaces/energy.py +1 -1
- kasa/iot/iotdevice.py +2 -2
- kasa/iot/iotplug.py +10 -1
- kasa/iot/modules/ambientlight.py +28 -10
- kasa/iot/modules/motion.py +36 -8
- kasa/module.py +4 -0
- kasa/smart/modules/__init__.py +4 -0
- kasa/smart/modules/childprotection.py +41 -0
- kasa/smart/modules/triggerlogs.py +34 -0
- kasa/smart/smartchilddevice.py +3 -4
- {python_kasa-0.7.6.dist-info → python_kasa-0.7.7.dist-info}/METADATA +1 -1
- {python_kasa-0.7.6.dist-info → python_kasa-0.7.7.dist-info}/RECORD +21 -19
- {python_kasa-0.7.6.dist-info → python_kasa-0.7.7.dist-info}/WHEEL +0 -0
- {python_kasa-0.7.6.dist-info → python_kasa-0.7.7.dist-info}/entry_points.txt +0 -0
- {python_kasa-0.7.6.dist-info → python_kasa-0.7.7.dist-info}/licenses/LICENSE +0 -0
kasa/__init__.py
CHANGED
|
@@ -41,7 +41,7 @@ from kasa.iotprotocol import (
|
|
|
41
41
|
_deprecated_TPLinkSmartHomeProtocol, # noqa: F401
|
|
42
42
|
)
|
|
43
43
|
from kasa.module import Module
|
|
44
|
-
from kasa.protocol import BaseProtocol
|
|
44
|
+
from kasa.protocol import BaseProtocol, BaseTransport
|
|
45
45
|
from kasa.smartprotocol import SmartProtocol
|
|
46
46
|
|
|
47
47
|
__version__ = version("python-kasa")
|
|
@@ -50,6 +50,7 @@ __version__ = version("python-kasa")
|
|
|
50
50
|
__all__ = [
|
|
51
51
|
"Discover",
|
|
52
52
|
"BaseProtocol",
|
|
53
|
+
"BaseTransport",
|
|
53
54
|
"IotProtocol",
|
|
54
55
|
"SmartProtocol",
|
|
55
56
|
"LightState",
|
|
@@ -102,7 +103,7 @@ deprecated_classes = {
|
|
|
102
103
|
|
|
103
104
|
def __getattr__(name):
|
|
104
105
|
if name in deprecated_names:
|
|
105
|
-
warn(f"{name} is deprecated", DeprecationWarning, stacklevel=
|
|
106
|
+
warn(f"{name} is deprecated", DeprecationWarning, stacklevel=2)
|
|
106
107
|
return globals()[f"_deprecated_{name}"]
|
|
107
108
|
if name in deprecated_smart_devices:
|
|
108
109
|
new_class = deprecated_smart_devices[name]
|
|
@@ -112,13 +113,13 @@ def __getattr__(name):
|
|
|
112
113
|
+ f"from package {package_name} instead or use Discover.discover_single()"
|
|
113
114
|
+ " and Device.connect() to support new protocols",
|
|
114
115
|
DeprecationWarning,
|
|
115
|
-
stacklevel=
|
|
116
|
+
stacklevel=2,
|
|
116
117
|
)
|
|
117
118
|
return new_class
|
|
118
119
|
if name in deprecated_classes:
|
|
119
120
|
new_class = deprecated_classes[name]
|
|
120
121
|
msg = f"{name} is deprecated, use {new_class.__name__} instead"
|
|
121
|
-
warn(msg, DeprecationWarning, stacklevel=
|
|
122
|
+
warn(msg, DeprecationWarning, stacklevel=2)
|
|
122
123
|
return new_class
|
|
123
124
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
124
125
|
|
kasa/cli/device.py
CHANGED
|
@@ -193,3 +193,13 @@ async def update_credentials(dev, username, password):
|
|
|
193
193
|
click.confirm("Do you really want to replace the existing credentials?", abort=True)
|
|
194
194
|
|
|
195
195
|
return await dev.update_credentials(username, password)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
@device.command(name="logs")
|
|
199
|
+
@pass_dev_or_child
|
|
200
|
+
async def child_logs(dev):
|
|
201
|
+
"""Print child device trigger logs."""
|
|
202
|
+
if logs := dev.modules.get(Module.TriggerLogs):
|
|
203
|
+
await dev.update(update_children=True)
|
|
204
|
+
for entry in logs.logs:
|
|
205
|
+
print(entry)
|
kasa/cli/discover.py
CHANGED
|
@@ -15,7 +15,7 @@ from kasa import (
|
|
|
15
15
|
Discover,
|
|
16
16
|
UnsupportedDeviceError,
|
|
17
17
|
)
|
|
18
|
-
from kasa.discover import DiscoveryResult
|
|
18
|
+
from kasa.discover import ConnectAttempt, DiscoveryResult
|
|
19
19
|
|
|
20
20
|
from .common import echo, error
|
|
21
21
|
|
|
@@ -165,8 +165,17 @@ async def config(ctx):
|
|
|
165
165
|
|
|
166
166
|
credentials = Credentials(username, password) if username and password else None
|
|
167
167
|
|
|
168
|
+
host_port = host + (f":{port}" if port else "")
|
|
169
|
+
|
|
170
|
+
def on_attempt(connect_attempt: ConnectAttempt, success: bool) -> None:
|
|
171
|
+
prot, tran, dev = connect_attempt
|
|
172
|
+
key_str = f"{prot.__name__} + {tran.__name__} + {dev.__name__}"
|
|
173
|
+
result = "succeeded" if success else "failed"
|
|
174
|
+
msg = f"Attempt to connect to {host_port} with {key_str} {result}"
|
|
175
|
+
echo(msg)
|
|
176
|
+
|
|
168
177
|
dev = await Discover.try_connect_all(
|
|
169
|
-
host, credentials=credentials, timeout=timeout, port=port
|
|
178
|
+
host, credentials=credentials, timeout=timeout, port=port, on_attempt=on_attempt
|
|
170
179
|
)
|
|
171
180
|
if dev:
|
|
172
181
|
cparams = dev.config.connection_type
|
kasa/device.py
CHANGED
|
@@ -545,7 +545,7 @@ class Device(ABC):
|
|
|
545
545
|
msg = f"{name} is deprecated"
|
|
546
546
|
if module:
|
|
547
547
|
msg += f", use: {module} in device.modules instead"
|
|
548
|
-
warn(msg, DeprecationWarning, stacklevel=
|
|
548
|
+
warn(msg, DeprecationWarning, stacklevel=2)
|
|
549
549
|
return self.device_type == dep_device_type_attr[1]
|
|
550
550
|
# Other deprecated attributes
|
|
551
551
|
if (dep_attr := self._deprecated_other_attributes.get(name)) and (
|
|
@@ -556,6 +556,6 @@ class Device(ABC):
|
|
|
556
556
|
dev_or_mod = self.modules[mod] if mod else self
|
|
557
557
|
replacing = f"Module.{mod} in device.modules" if mod else replacing_attr
|
|
558
558
|
msg = f"{name} is deprecated, use: {replacing} instead"
|
|
559
|
-
warn(msg, DeprecationWarning, stacklevel=
|
|
559
|
+
warn(msg, DeprecationWarning, stacklevel=2)
|
|
560
560
|
return getattr(dev_or_mod, replacing_attr)
|
|
561
561
|
raise AttributeError(f"Device has no attribute {name!r}")
|
kasa/device_factory.py
CHANGED
|
@@ -167,7 +167,7 @@ def get_device_class_from_sys_info(sysinfo: dict[str, Any]) -> type[IotDevice]:
|
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
def get_device_class_from_family(
|
|
170
|
-
device_type: str, *, https: bool
|
|
170
|
+
device_type: str, *, https: bool, require_exact: bool = False
|
|
171
171
|
) -> type[Device] | None:
|
|
172
172
|
"""Return the device class from the type name."""
|
|
173
173
|
supported_device_types: dict[str, type[Device]] = {
|
|
@@ -185,8 +185,10 @@ def get_device_class_from_family(
|
|
|
185
185
|
}
|
|
186
186
|
lookup_key = f"{device_type}{'.HTTPS' if https else ''}"
|
|
187
187
|
if (
|
|
188
|
-
cls := supported_device_types.get(lookup_key)
|
|
189
|
-
|
|
188
|
+
(cls := supported_device_types.get(lookup_key)) is None
|
|
189
|
+
and device_type.startswith("SMART.")
|
|
190
|
+
and not require_exact
|
|
191
|
+
):
|
|
190
192
|
_LOGGER.warning("Unknown SMART device with %s, using SmartDevice", device_type)
|
|
191
193
|
cls = SmartDevice
|
|
192
194
|
|
kasa/discover.py
CHANGED
|
@@ -91,7 +91,7 @@ import socket
|
|
|
91
91
|
import struct
|
|
92
92
|
from collections.abc import Awaitable
|
|
93
93
|
from pprint import pformat as pf
|
|
94
|
-
from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Type, cast
|
|
94
|
+
from typing import TYPE_CHECKING, Any, Callable, Dict, NamedTuple, Optional, Type, cast
|
|
95
95
|
|
|
96
96
|
from aiohttp import ClientSession
|
|
97
97
|
|
|
@@ -118,6 +118,7 @@ from kasa.exceptions import (
|
|
|
118
118
|
TimeoutError,
|
|
119
119
|
UnsupportedDeviceError,
|
|
120
120
|
)
|
|
121
|
+
from kasa.experimental import Experimental
|
|
121
122
|
from kasa.iot.iotdevice import IotDevice
|
|
122
123
|
from kasa.iotprotocol import REDACTORS as IOT_REDACTORS
|
|
123
124
|
from kasa.json import dumps as json_dumps
|
|
@@ -127,9 +128,21 @@ from kasa.xortransport import XorEncryption
|
|
|
127
128
|
|
|
128
129
|
_LOGGER = logging.getLogger(__name__)
|
|
129
130
|
|
|
131
|
+
if TYPE_CHECKING:
|
|
132
|
+
from kasa import BaseProtocol, BaseTransport
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class ConnectAttempt(NamedTuple):
|
|
136
|
+
"""Try to connect attempt."""
|
|
137
|
+
|
|
138
|
+
protocol: type
|
|
139
|
+
transport: type
|
|
140
|
+
device: type
|
|
141
|
+
|
|
130
142
|
|
|
131
143
|
OnDiscoveredCallable = Callable[[Device], Awaitable[None]]
|
|
132
144
|
OnUnsupportedCallable = Callable[[UnsupportedDeviceError], Awaitable[None]]
|
|
145
|
+
OnConnectAttemptCallable = Callable[[ConnectAttempt, bool], None]
|
|
133
146
|
DeviceDict = Dict[str, Device]
|
|
134
147
|
|
|
135
148
|
NEW_DISCOVERY_REDACTORS: dict[str, Callable[[Any], Any] | None] = {
|
|
@@ -535,6 +548,7 @@ class Discover:
|
|
|
535
548
|
timeout: int | None = None,
|
|
536
549
|
credentials: Credentials | None = None,
|
|
537
550
|
http_client: ClientSession | None = None,
|
|
551
|
+
on_attempt: OnConnectAttemptCallable | None = None,
|
|
538
552
|
) -> Device | None:
|
|
539
553
|
"""Try to connect directly to a device with all possible parameters.
|
|
540
554
|
|
|
@@ -551,13 +565,22 @@ class Discover:
|
|
|
551
565
|
"""
|
|
552
566
|
from .device_factory import _connect
|
|
553
567
|
|
|
554
|
-
|
|
568
|
+
main_device_families = {
|
|
569
|
+
Device.Family.SmartTapoPlug,
|
|
570
|
+
Device.Family.IotSmartPlugSwitch,
|
|
571
|
+
}
|
|
572
|
+
if Experimental.enabled():
|
|
573
|
+
main_device_families.add(Device.Family.SmartIpCamera)
|
|
574
|
+
candidates: dict[
|
|
575
|
+
tuple[type[BaseProtocol], type[BaseTransport], type[Device]],
|
|
576
|
+
tuple[BaseProtocol, DeviceConfig],
|
|
577
|
+
] = {
|
|
555
578
|
(type(protocol), type(protocol._transport), device_class): (
|
|
556
579
|
protocol,
|
|
557
580
|
config,
|
|
558
581
|
)
|
|
559
582
|
for encrypt in Device.EncryptionType
|
|
560
|
-
for device_family in
|
|
583
|
+
for device_family in main_device_families
|
|
561
584
|
for https in (True, False)
|
|
562
585
|
if (
|
|
563
586
|
conn_params := DeviceConnectionParameters(
|
|
@@ -580,19 +603,26 @@ class Discover:
|
|
|
580
603
|
and (protocol := get_protocol(config))
|
|
581
604
|
and (
|
|
582
605
|
device_class := get_device_class_from_family(
|
|
583
|
-
device_family.value, https=https
|
|
606
|
+
device_family.value, https=https, require_exact=True
|
|
584
607
|
)
|
|
585
608
|
)
|
|
586
609
|
}
|
|
587
|
-
for
|
|
610
|
+
for key, val in candidates.items():
|
|
588
611
|
try:
|
|
589
|
-
|
|
612
|
+
prot, config = val
|
|
613
|
+
dev = await _connect(config, prot)
|
|
590
614
|
except Exception:
|
|
591
|
-
_LOGGER.debug("Unable to connect with %s",
|
|
615
|
+
_LOGGER.debug("Unable to connect with %s", prot)
|
|
616
|
+
if on_attempt:
|
|
617
|
+
ca = tuple.__new__(ConnectAttempt, key)
|
|
618
|
+
on_attempt(ca, False)
|
|
592
619
|
else:
|
|
620
|
+
if on_attempt:
|
|
621
|
+
ca = tuple.__new__(ConnectAttempt, key)
|
|
622
|
+
on_attempt(ca, True)
|
|
593
623
|
return dev
|
|
594
624
|
finally:
|
|
595
|
-
await
|
|
625
|
+
await prot.close()
|
|
596
626
|
return None
|
|
597
627
|
|
|
598
628
|
@staticmethod
|
kasa/interfaces/energy.py
CHANGED
|
@@ -182,6 +182,6 @@ class Energy(Module, ABC):
|
|
|
182
182
|
def __getattr__(self, name):
|
|
183
183
|
if attr := self._deprecated_attributes.get(name):
|
|
184
184
|
msg = f"{name} is deprecated, use {attr} instead"
|
|
185
|
-
warn(msg, DeprecationWarning, stacklevel=
|
|
185
|
+
warn(msg, DeprecationWarning, stacklevel=2)
|
|
186
186
|
return getattr(self, attr)
|
|
187
187
|
raise AttributeError(f"Energy module has no attribute {name!r}")
|
kasa/iot/iotdevice.py
CHANGED
|
@@ -472,7 +472,7 @@ class IotDevice(Device):
|
|
|
472
472
|
async def get_time(self) -> datetime:
|
|
473
473
|
"""Return current time from the device, if available."""
|
|
474
474
|
msg = "Use `time` property instead, this call will be removed in the future."
|
|
475
|
-
warn(msg, DeprecationWarning, stacklevel=
|
|
475
|
+
warn(msg, DeprecationWarning, stacklevel=2)
|
|
476
476
|
return self.time
|
|
477
477
|
|
|
478
478
|
async def get_timezone(self) -> tzinfo:
|
|
@@ -480,7 +480,7 @@ class IotDevice(Device):
|
|
|
480
480
|
msg = (
|
|
481
481
|
"Use `timezone` property instead, this call will be removed in the future."
|
|
482
482
|
)
|
|
483
|
-
warn(msg, DeprecationWarning, stacklevel=
|
|
483
|
+
warn(msg, DeprecationWarning, stacklevel=2)
|
|
484
484
|
return self.timezone
|
|
485
485
|
|
|
486
486
|
@property # type: ignore
|
kasa/iot/iotplug.py
CHANGED
|
@@ -9,7 +9,7 @@ from ..deviceconfig import DeviceConfig
|
|
|
9
9
|
from ..module import Module
|
|
10
10
|
from ..protocol import BaseProtocol
|
|
11
11
|
from .iotdevice import IotDevice, requires_update
|
|
12
|
-
from .modules import Antitheft, Cloud, Led, Schedule, Time, Usage
|
|
12
|
+
from .modules import AmbientLight, Antitheft, Cloud, Led, Motion, Schedule, Time, Usage
|
|
13
13
|
|
|
14
14
|
_LOGGER = logging.getLogger(__name__)
|
|
15
15
|
|
|
@@ -92,3 +92,12 @@ class IotWallSwitch(IotPlug):
|
|
|
92
92
|
) -> None:
|
|
93
93
|
super().__init__(host=host, config=config, protocol=protocol)
|
|
94
94
|
self._device_type = DeviceType.WallSwitch
|
|
95
|
+
|
|
96
|
+
async def _initialize_modules(self) -> None:
|
|
97
|
+
"""Initialize modules."""
|
|
98
|
+
await super()._initialize_modules()
|
|
99
|
+
if (dev_name := self.sys_info["dev_name"]) and "PIR" in dev_name:
|
|
100
|
+
self.add_module(Module.IotMotion, Motion(self, "smartlife.iot.PIR"))
|
|
101
|
+
self.add_module(
|
|
102
|
+
Module.IotAmbientLight, AmbientLight(self, "smartlife.iot.LAS")
|
|
103
|
+
)
|
kasa/iot/modules/ambientlight.py
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
"""Implementation of the ambient light (LAS) module found in some dimmers."""
|
|
2
2
|
|
|
3
|
+
import logging
|
|
4
|
+
|
|
3
5
|
from ...feature import Feature
|
|
4
6
|
from ..iotmodule import IotModule, merge
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
# [{"hw_id":0,"enable":0,"dark_index":1,"min_adc":0,"max_adc":2450,
|
|
8
|
-
# "level_array":[{"name":"cloudy","adc":490,"value":20},
|
|
9
|
-
# {"name":"overcast","adc":294,"value":12},
|
|
10
|
-
# {"name":"dawn","adc":222,"value":9},
|
|
11
|
-
# {"name":"twilight","adc":222,"value":9},
|
|
12
|
-
# {"name":"total darkness","adc":111,"value":4},
|
|
13
|
-
# {"name":"custom","adc":2400,"value":97}]}]
|
|
8
|
+
_LOGGER = logging.getLogger(__name__)
|
|
14
9
|
|
|
15
10
|
|
|
16
11
|
class AmbientLight(IotModule):
|
|
@@ -18,6 +13,19 @@ class AmbientLight(IotModule):
|
|
|
18
13
|
|
|
19
14
|
def _initialize_features(self):
|
|
20
15
|
"""Initialize features after the initial update."""
|
|
16
|
+
self._add_feature(
|
|
17
|
+
Feature(
|
|
18
|
+
device=self._device,
|
|
19
|
+
container=self,
|
|
20
|
+
id="ambient_light_enabled",
|
|
21
|
+
name="Ambient light enabled",
|
|
22
|
+
icon="mdi:brightness-percent",
|
|
23
|
+
attribute_getter="enabled",
|
|
24
|
+
attribute_setter="set_enabled",
|
|
25
|
+
type=Feature.Type.Switch,
|
|
26
|
+
category=Feature.Category.Config,
|
|
27
|
+
)
|
|
28
|
+
)
|
|
21
29
|
self._add_feature(
|
|
22
30
|
Feature(
|
|
23
31
|
device=self._device,
|
|
@@ -41,15 +49,25 @@ class AmbientLight(IotModule):
|
|
|
41
49
|
|
|
42
50
|
return req
|
|
43
51
|
|
|
52
|
+
@property
|
|
53
|
+
def config(self) -> dict:
|
|
54
|
+
"""Return current ambient light config."""
|
|
55
|
+
config = self.data["get_config"]
|
|
56
|
+
devs = config["devs"]
|
|
57
|
+
if len(devs) != 1:
|
|
58
|
+
_LOGGER.error("Unexpected number of devs in config: %s", config)
|
|
59
|
+
|
|
60
|
+
return devs[0]
|
|
61
|
+
|
|
44
62
|
@property
|
|
45
63
|
def presets(self) -> dict:
|
|
46
64
|
"""Return device-defined presets for brightness setting."""
|
|
47
|
-
return self.
|
|
65
|
+
return self.config["level_array"]
|
|
48
66
|
|
|
49
67
|
@property
|
|
50
68
|
def enabled(self) -> bool:
|
|
51
69
|
"""Return True if the module is enabled."""
|
|
52
|
-
return bool(self.
|
|
70
|
+
return bool(self.config["enable"])
|
|
53
71
|
|
|
54
72
|
@property
|
|
55
73
|
def ambientlight_brightness(self) -> int:
|
kasa/iot/modules/motion.py
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import logging
|
|
5
6
|
from enum import Enum
|
|
6
7
|
|
|
7
8
|
from ...exceptions import KasaException
|
|
9
|
+
from ...feature import Feature
|
|
8
10
|
from ..iotmodule import IotModule
|
|
9
11
|
|
|
12
|
+
_LOGGER = logging.getLogger(__name__)
|
|
13
|
+
|
|
10
14
|
|
|
11
15
|
class Range(Enum):
|
|
12
16
|
"""Range for motion detection."""
|
|
@@ -17,27 +21,51 @@ class Range(Enum):
|
|
|
17
21
|
Custom = 3
|
|
18
22
|
|
|
19
23
|
|
|
20
|
-
# TODO: use the config reply in tests
|
|
21
|
-
# {"enable":0,"version":"1.0","trigger_index":2,"cold_time":60000,
|
|
22
|
-
# "min_adc":0,"max_adc":4095,"array":[80,50,20,0],"err_code":0}}}
|
|
23
|
-
|
|
24
|
-
|
|
25
24
|
class Motion(IotModule):
|
|
26
25
|
"""Implements the motion detection (PIR) module."""
|
|
27
26
|
|
|
27
|
+
def _initialize_features(self):
|
|
28
|
+
"""Initialize features after the initial update."""
|
|
29
|
+
# Only add features if the device supports the module
|
|
30
|
+
if "get_config" not in self.data:
|
|
31
|
+
return
|
|
32
|
+
|
|
33
|
+
if "enable" not in self.config:
|
|
34
|
+
_LOGGER.warning("%r initialized, but no enable in response")
|
|
35
|
+
return
|
|
36
|
+
|
|
37
|
+
self._add_feature(
|
|
38
|
+
Feature(
|
|
39
|
+
device=self._device,
|
|
40
|
+
container=self,
|
|
41
|
+
id="pir_enabled",
|
|
42
|
+
name="PIR enabled",
|
|
43
|
+
icon="mdi:motion-sensor",
|
|
44
|
+
attribute_getter="enabled",
|
|
45
|
+
attribute_setter="set_enabled",
|
|
46
|
+
type=Feature.Type.Switch,
|
|
47
|
+
category=Feature.Category.Config,
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
|
|
28
51
|
def query(self):
|
|
29
52
|
"""Request PIR configuration."""
|
|
30
53
|
return self.query_for_command("get_config")
|
|
31
54
|
|
|
55
|
+
@property
|
|
56
|
+
def config(self) -> dict:
|
|
57
|
+
"""Return current configuration."""
|
|
58
|
+
return self.data["get_config"]
|
|
59
|
+
|
|
32
60
|
@property
|
|
33
61
|
def range(self) -> Range:
|
|
34
62
|
"""Return motion detection range."""
|
|
35
|
-
return Range(self.
|
|
63
|
+
return Range(self.config["trigger_index"])
|
|
36
64
|
|
|
37
65
|
@property
|
|
38
66
|
def enabled(self) -> bool:
|
|
39
67
|
"""Return True if module is enabled."""
|
|
40
|
-
return bool(self.
|
|
68
|
+
return bool(self.config["enable"])
|
|
41
69
|
|
|
42
70
|
async def set_enabled(self, state: bool):
|
|
43
71
|
"""Enable/disable PIR."""
|
|
@@ -63,7 +91,7 @@ class Motion(IotModule):
|
|
|
63
91
|
@property
|
|
64
92
|
def inactivity_timeout(self) -> int:
|
|
65
93
|
"""Return inactivity timeout in milliseconds."""
|
|
66
|
-
return self.
|
|
94
|
+
return self.config["cold_time"]
|
|
67
95
|
|
|
68
96
|
async def set_inactivity_timeout(self, timeout: int):
|
|
69
97
|
"""Set inactivity timeout in milliseconds.
|
kasa/module.py
CHANGED
|
@@ -127,6 +127,10 @@ class Module(ABC):
|
|
|
127
127
|
WaterleakSensor: Final[ModuleName[smart.WaterleakSensor]] = ModuleName(
|
|
128
128
|
"WaterleakSensor"
|
|
129
129
|
)
|
|
130
|
+
ChildProtection: Final[ModuleName[smart.ChildProtection]] = ModuleName(
|
|
131
|
+
"ChildProtection"
|
|
132
|
+
)
|
|
133
|
+
TriggerLogs: Final[ModuleName[smart.TriggerLogs]] = ModuleName("TriggerLogs")
|
|
130
134
|
|
|
131
135
|
# SMARTCAMERA only modules
|
|
132
136
|
Camera: Final[ModuleName[experimental.Camera]] = ModuleName("Camera")
|
kasa/smart/modules/__init__.py
CHANGED
|
@@ -6,6 +6,7 @@ from .autooff import AutoOff
|
|
|
6
6
|
from .batterysensor import BatterySensor
|
|
7
7
|
from .brightness import Brightness
|
|
8
8
|
from .childdevice import ChildDevice
|
|
9
|
+
from .childprotection import ChildProtection
|
|
9
10
|
from .cloud import Cloud
|
|
10
11
|
from .color import Color
|
|
11
12
|
from .colortemperature import ColorTemperature
|
|
@@ -27,6 +28,7 @@ from .reportmode import ReportMode
|
|
|
27
28
|
from .temperaturecontrol import TemperatureControl
|
|
28
29
|
from .temperaturesensor import TemperatureSensor
|
|
29
30
|
from .time import Time
|
|
31
|
+
from .triggerlogs import TriggerLogs
|
|
30
32
|
from .waterleaksensor import WaterleakSensor
|
|
31
33
|
|
|
32
34
|
__all__ = [
|
|
@@ -39,6 +41,7 @@ __all__ = [
|
|
|
39
41
|
"HumiditySensor",
|
|
40
42
|
"TemperatureSensor",
|
|
41
43
|
"TemperatureControl",
|
|
44
|
+
"ChildProtection",
|
|
42
45
|
"ReportMode",
|
|
43
46
|
"AutoOff",
|
|
44
47
|
"Led",
|
|
@@ -56,6 +59,7 @@ __all__ = [
|
|
|
56
59
|
"WaterleakSensor",
|
|
57
60
|
"ContactSensor",
|
|
58
61
|
"MotionSensor",
|
|
62
|
+
"TriggerLogs",
|
|
59
63
|
"FrostProtection",
|
|
60
64
|
"SmartLightEffect",
|
|
61
65
|
]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Child lock module."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from ...feature import Feature
|
|
6
|
+
from ..smartmodule import SmartModule
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChildProtection(SmartModule):
|
|
10
|
+
"""Implementation for child_protection."""
|
|
11
|
+
|
|
12
|
+
REQUIRED_COMPONENT = "child_protection"
|
|
13
|
+
QUERY_GETTER_NAME = "get_child_protection"
|
|
14
|
+
|
|
15
|
+
def _initialize_features(self):
|
|
16
|
+
"""Initialize features after the initial update."""
|
|
17
|
+
self._add_feature(
|
|
18
|
+
Feature(
|
|
19
|
+
device=self._device,
|
|
20
|
+
id="child_lock",
|
|
21
|
+
name="Child lock",
|
|
22
|
+
container=self,
|
|
23
|
+
attribute_getter="enabled",
|
|
24
|
+
attribute_setter="set_enabled",
|
|
25
|
+
type=Feature.Type.Switch,
|
|
26
|
+
category=Feature.Category.Config,
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
def query(self) -> dict:
|
|
31
|
+
"""Query to execute during the update cycle."""
|
|
32
|
+
return {}
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def enabled(self) -> bool:
|
|
36
|
+
"""Return True if child protection is enabled."""
|
|
37
|
+
return self.data["child_protection"]
|
|
38
|
+
|
|
39
|
+
async def set_enabled(self, enabled: bool) -> dict:
|
|
40
|
+
"""Set child protection."""
|
|
41
|
+
return await self.call("set_child_protection", {"enable": enabled})
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Implementation of trigger logs module."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
|
|
7
|
+
from pydantic.v1 import BaseModel, Field, parse_obj_as
|
|
8
|
+
|
|
9
|
+
from ..smartmodule import SmartModule
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class LogEntry(BaseModel):
|
|
13
|
+
"""Presentation of a single log entry."""
|
|
14
|
+
|
|
15
|
+
id: int
|
|
16
|
+
event_id: str = Field(alias="eventId")
|
|
17
|
+
timestamp: datetime
|
|
18
|
+
event: str
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TriggerLogs(SmartModule):
|
|
22
|
+
"""Implementation of trigger logs."""
|
|
23
|
+
|
|
24
|
+
REQUIRED_COMPONENT = "trigger_log"
|
|
25
|
+
MINIMUM_UPDATE_INTERVAL_SECS = 60 * 60
|
|
26
|
+
|
|
27
|
+
def query(self) -> dict:
|
|
28
|
+
"""Query to execute during the update cycle."""
|
|
29
|
+
return {"get_trigger_logs": {"start_id": 0}}
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def logs(self) -> list[LogEntry]:
|
|
33
|
+
"""Return logs."""
|
|
34
|
+
return parse_obj_as(list[LogEntry], self.data["logs"])
|
kasa/smart/smartchilddevice.py
CHANGED
|
@@ -42,13 +42,12 @@ class SmartChildDevice(SmartDevice):
|
|
|
42
42
|
config: DeviceConfig | None = None,
|
|
43
43
|
protocol: SmartProtocol | None = None,
|
|
44
44
|
) -> None:
|
|
45
|
-
|
|
45
|
+
self._id = info["device_id"]
|
|
46
|
+
_protocol = protocol or _ChildProtocolWrapper(self._id, parent.protocol)
|
|
47
|
+
super().__init__(parent.host, config=parent.config, protocol=_protocol)
|
|
46
48
|
self._parent = parent
|
|
47
49
|
self._update_internal_state(info)
|
|
48
50
|
self._components = component_info
|
|
49
|
-
self._id = info["device_id"]
|
|
50
|
-
# wrap device protocol if no protocol is given
|
|
51
|
-
self.protocol = protocol or _ChildProtocolWrapper(self._id, parent.protocol)
|
|
52
51
|
|
|
53
52
|
async def update(self, update_children: bool = True):
|
|
54
53
|
"""Update child module info.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.7
|
|
4
4
|
Summary: Python API for TP-Link Kasa and Tapo devices
|
|
5
5
|
Project-URL: Homepage, https://github.com/python-kasa/python-kasa
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/python-kasa/python-kasa/issues
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
kasa/__init__.py,sha256=
|
|
1
|
+
kasa/__init__.py,sha256=xwIRLtS5AS7KgFhOgeVzlRVanC_GnpptqFfNxPl4R9k,4490
|
|
2
2
|
kasa/aestransport.py,sha256=EW0bCXTMXju-4d-bPceOA2yEJrdiLseKtWCN7bSRt8I,18303
|
|
3
3
|
kasa/cachedzoneinfo.py,sha256=PLFn9f52E9WdKG3Zhvul3QlrSznmzWPT4fpX5iBuzok,778
|
|
4
4
|
kasa/credentials.py,sha256=SU9O5QjkWsozC7oCMhc2abydmETNjLZrJwv_KJ6fnK4,357
|
|
5
|
-
kasa/device.py,sha256=
|
|
6
|
-
kasa/device_factory.py,sha256=
|
|
5
|
+
kasa/device.py,sha256=QsDzyFQZpAaYmzFFXvb_v3zo3agVI2fypWMegr5KNEM,18019
|
|
6
|
+
kasa/device_factory.py,sha256=Ut6qrV9Ttmm4egjgvtYY8C3ZU-V52TksGh6rhKh30gE,7775
|
|
7
7
|
kasa/device_type.py,sha256=pGYddljQtBRI_pByrI1FxCPlpjvk0RcTJ1vmapFZrMU,766
|
|
8
8
|
kasa/deviceconfig.py,sha256=aW6oUDJcSOVh0tjgRAL2ONnO59kcb1BEWKc6GEnRqlI,8496
|
|
9
|
-
kasa/discover.py,sha256=
|
|
9
|
+
kasa/discover.py,sha256=EgM2GxEJ1wg4Lp9AuU7OwR-4xYplLAwNNJW-RV77ceI,31354
|
|
10
10
|
kasa/emeterstatus.py,sha256=0EF5XwicsKPKTu6NV80Bs904yOGrCij_3SxsmjpVQrk,2530
|
|
11
11
|
kasa/exceptions.py,sha256=MGVDJxn21_Cgt_9O_MaLqnrwWJp_zT6xiSkTKzNlUN4,5759
|
|
12
12
|
kasa/feature.py,sha256=ejhoowq4oPIKC29VRoQYhUZwGqUuJro8Bi7GuLl9WMw,10549
|
|
@@ -14,7 +14,7 @@ kasa/httpclient.py,sha256=4hqw5YlWFoOtsSDuqNAbVu473bl0aT4YROzQgV2ejTM,5752
|
|
|
14
14
|
kasa/iotprotocol.py,sha256=uj5chjjbPYAVFn3gNSHYIG74qxqzsovsmkRYEHunczY,5566
|
|
15
15
|
kasa/json.py,sha256=cPLAwsWD1yCp3_dHe4CjgrM29FaICHbqUL37QYoiipk,415
|
|
16
16
|
kasa/klaptransport.py,sha256=BR5WplpdrSrz3z1OSXytrQP1ir05KFe-vezi8A2VUOU,18508
|
|
17
|
-
kasa/module.py,sha256=
|
|
17
|
+
kasa/module.py,sha256=MrL6P5n0J7t-Or0DIsdAUPs0uDiH7KGsnPrnCcg6-yk,7057
|
|
18
18
|
kasa/modulemapping.py,sha256=79mtaewNYvhFjn1Jo39xE57aid5gn08A-45bOS0vgMs,499
|
|
19
19
|
kasa/modulemapping.pyi,sha256=dP-zCo8FiFOC68TtpBlxDcJASDwUur1gFyC9Ei9aaMU,3853
|
|
20
20
|
kasa/protocol.py,sha256=OMv4ZPY5IUoLd2GkeicIfNMuWCo5hju03i_Kw7NW1BQ,4764
|
|
@@ -24,8 +24,8 @@ kasa/xortransport.py,sha256=sXZ6AhCsvmahSIszzDEuv2KXUoPAYBTLQ60e43cSg7k,8428
|
|
|
24
24
|
kasa/cli/__init__.py,sha256=S8z6xs4EPXXtF2wLwuvDLjcuy46c0jWaG0wiqqU5FiY,27
|
|
25
25
|
kasa/cli/__main__.py,sha256=B5nsKIZhYL1upQHrrKXnqE3t261v8nthD52e8m3DAgY,88
|
|
26
26
|
kasa/cli/common.py,sha256=ZrPOf1Yy50DPf2t4H0Ct5bjyhGZevcdISu5G-vC_0bs,7436
|
|
27
|
-
kasa/cli/device.py,sha256=
|
|
28
|
-
kasa/cli/discover.py,sha256=
|
|
27
|
+
kasa/cli/device.py,sha256=29zpmSGcjYakV5N_oBswuF8TMnQ4vQbgMZyRShYGl8U,5568
|
|
28
|
+
kasa/cli/discover.py,sha256=XlAq4Ww5xPXWFvyiiANbF6Kl3h-yZHWDcsf888CwbfI,8553
|
|
29
29
|
kasa/cli/feature.py,sha256=3cm33EuTHDwGX4AX9rZHCIp0J2YHowWeE6O3Rg9EQ0w,3486
|
|
30
30
|
kasa/cli/lazygroup.py,sha256=KBm-21HwxiOnO8houCTBGkPjQiW3cwoCm4DlvJyGzI0,2486
|
|
31
31
|
kasa/cli/light.py,sha256=7Xqid5SfsKg0kK2OCd9winnynt1umw5xgx8Z6ey-s2s,6391
|
|
@@ -45,7 +45,7 @@ kasa/experimental/modules/childdevice.py,sha256=u_1-9UAeDRu1S-tl0jKc7WyLsBRE5Z6Z
|
|
|
45
45
|
kasa/experimental/modules/device.py,sha256=i4nWpucpMzObbHPhDhdqnJr88WckmC3yCgk3UJ_wjEE,1179
|
|
46
46
|
kasa/experimental/modules/time.py,sha256=PB9s43qxhWZ97jFO74x6Ji9F7lFYE8mA1ebnoaYIIsE,3129
|
|
47
47
|
kasa/interfaces/__init__.py,sha256=0efmmBOyHlF_C9xUhpJpW3v4aLCHiisCeHWo4HCuhCw,366
|
|
48
|
-
kasa/interfaces/energy.py,sha256=
|
|
48
|
+
kasa/interfaces/energy.py,sha256=Ue3SFO0bQq9eXD8Rl8bvKZTekTgZBgn_ToReBbixgxw,6089
|
|
49
49
|
kasa/interfaces/fan.py,sha256=cnT9HpiJrJ9JSrF4nRzb6Ff8OyC1-ZUzW6aIGXQObWc,411
|
|
50
50
|
kasa/interfaces/led.py,sha256=LJR2IiEhZdrskza9nDLAe5WWgr_JCd3B35jve7q0BI0,950
|
|
51
51
|
kasa/interfaces/light.py,sha256=Jk5ELfLF4DegGRwuUVPevx_EqbfNwvGkoRevR3UlYwo,4712
|
|
@@ -55,15 +55,15 @@ kasa/interfaces/time.py,sha256=MTrhDdzMc4Cad9AB3CC0yhHCif7tIipK4dgcJ-Lt7GA,585
|
|
|
55
55
|
kasa/iot/__init__.py,sha256=k0QlxHTzb_btqNIIpUd9ybDo-CjkQLa1DReyAkTfs4I,399
|
|
56
56
|
kasa/iot/effects.py,sha256=au35HDrHso7JRdv9bPSdkepdpR8NbSp-gFGHW2SKZUw,7506
|
|
57
57
|
kasa/iot/iotbulb.py,sha256=iqDXVLkgAxiAEjla4iHwdVlb7J4TqE8hp6ES_DzEYs0,18607
|
|
58
|
-
kasa/iot/iotdevice.py,sha256=
|
|
58
|
+
kasa/iot/iotdevice.py,sha256=2xgeRIDmQbMk0DePKptTSURAcZ8XeLt-UakRaH44Ybo,23270
|
|
59
59
|
kasa/iot/iotdimmer.py,sha256=aWHgpw7B8XF_t5s3fOPoAJilV8vpFl2H6kUQIH0Qc4g,7780
|
|
60
60
|
kasa/iot/iotlightstrip.py,sha256=uJ9EeN1qiyTcOKhc2Hwso3_1TQMKg1cv4yIUFYpgX5U,2104
|
|
61
61
|
kasa/iot/iotmodule.py,sha256=M3OHij6gq4J49Ybsd1QUhEn8W-VXxoF6FMkn2IcSyDo,2095
|
|
62
|
-
kasa/iot/iotplug.py,sha256=
|
|
62
|
+
kasa/iot/iotplug.py,sha256=0KRjKdkazHBb-xbW9HJXkTioxKZstKWYzmdwg1DAHTs,3411
|
|
63
63
|
kasa/iot/iotstrip.py,sha256=ewCdGqpmEDs6Yj_Byr1prfuD5MKgmkKuYiQAZa73UDg,16136
|
|
64
64
|
kasa/iot/iottimezone.py,sha256=v3nbntDwVRZSmGAWbYD6xO4nu5pCELkORgMMxEMCGSM,5094
|
|
65
65
|
kasa/iot/modules/__init__.py,sha256=Nq49DvOol1DcURsL3ZmXRLOmQRAgA7s3yFA9aiKQkss,751
|
|
66
|
-
kasa/iot/modules/ambientlight.py,sha256=
|
|
66
|
+
kasa/iot/modules/ambientlight.py,sha256=lo9MPsY6tUUVI6ekEPMi5OdNs7Z7SEGChnGv6cYlRjY,2913
|
|
67
67
|
kasa/iot/modules/antitheft.py,sha256=XV5NM_zMLMU50KpR-MCFGx-1S4TxB61jcuOh3KZ-9Zc,235
|
|
68
68
|
kasa/iot/modules/cloud.py,sha256=8dR34gu2Xm5bjJH9wrNFN8ze4qmmtK5ErJ7_AeJcxCE,2058
|
|
69
69
|
kasa/iot/modules/countdown.py,sha256=53PUMGv3L1zMTkx1PBRvMSGzqX6ZnbwmtXHMyBioT4o,159
|
|
@@ -72,22 +72,23 @@ kasa/iot/modules/led.py,sha256=J0utBGM7kttH6Llv9TN-W264ttAGp2dx3duJRNSVejc,971
|
|
|
72
72
|
kasa/iot/modules/light.py,sha256=RUYJ9mPRJQMpvURf8MZbVNp5dS63IEjk6SDOGctX0co,9625
|
|
73
73
|
kasa/iot/modules/lighteffect.py,sha256=nz4fUnJ_4j2hrzF5r8ZP0gOwYgSry2g283Y1IXEs2kU,4199
|
|
74
74
|
kasa/iot/modules/lightpreset.py,sha256=QuLodJzfK-zfusYDJKv88NLPXTaLzkM1X4H-c4cd87o,5565
|
|
75
|
-
kasa/iot/modules/motion.py,sha256=
|
|
75
|
+
kasa/iot/modules/motion.py,sha256=mD1k7AGaR_ub5QjPvQ9zbjgCzRcamrG0my1BNTTQxgU,3101
|
|
76
76
|
kasa/iot/modules/rulemodule.py,sha256=_QgsgMRvnh2M2xLx0ACvPdhn_3LZ9zwTbhpT5oQqxvE,2040
|
|
77
77
|
kasa/iot/modules/schedule.py,sha256=r9MbXp4CRV8qKPlSXWY5RpHqkT6ULdLGLg8P857sEqI,151
|
|
78
78
|
kasa/iot/modules/time.py,sha256=giSTojPX7vUxVkui3Lo6hRlQzpt_I7AVlid61NYdFpg,2744
|
|
79
79
|
kasa/iot/modules/usage.py,sha256=YeeUdVJ6Koj2eSQ0U9qETdqhBrUVd0j7cnY1XOhVSlc,3819
|
|
80
80
|
kasa/smart/__init__.py,sha256=gdmi-Doe7dnv7e8ab_892lr9IdOXeFa3XlU3u_CePCk,198
|
|
81
81
|
kasa/smart/effects.py,sha256=E3oPHeWlc4lzThBbYV_UC2q-3EpdRiWf8eZiENMfb4k,11476
|
|
82
|
-
kasa/smart/smartchilddevice.py,sha256=
|
|
82
|
+
kasa/smart/smartchilddevice.py,sha256=J95QS6D-5F1lGfcAixpnFbyYuC5lxL7GhBXOU2m0pKE,4145
|
|
83
83
|
kasa/smart/smartdevice.py,sha256=DQaaNYULR85Svu5nnYGCchOqJaVgyI986acEh-6cwRo,27721
|
|
84
84
|
kasa/smart/smartmodule.py,sha256=hjjhG_gRvIFzbRxXBgmGBJv4GUcy4vDdZd44pkGYUyY,7309
|
|
85
|
-
kasa/smart/modules/__init__.py,sha256=
|
|
85
|
+
kasa/smart/modules/__init__.py,sha256=_tLL_xSHj9djKZXkPfSmflcR0uNL7-wHQW9EQSkgVHA,1697
|
|
86
86
|
kasa/smart/modules/alarm.py,sha256=y0ebu-fuVELE-lmVNInr24CvI1TtE9289-BZU8blHBc,4387
|
|
87
87
|
kasa/smart/modules/autooff.py,sha256=PksBuMJ-MGeqsiI0ZSQ-192DToKwC86Pu8fI_b6o1nA,3253
|
|
88
88
|
kasa/smart/modules/batterysensor.py,sha256=E0GZM067J_BHd6K8AO4DrUO8ZLZKubiiDZKL2taNNjY,1753
|
|
89
89
|
kasa/smart/modules/brightness.py,sha256=aP6i-y812eQ4MP-r5LegY1mM1HwYD_37oYJ-ZWQeVZk,2621
|
|
90
90
|
kasa/smart/modules/childdevice.py,sha256=oxzSEk0uDcxtsTfT0TPPb0otPb9fwKpFObihNVheL64,991
|
|
91
|
+
kasa/smart/modules/childprotection.py,sha256=0ZuSsnytT-gHxnkOmOnD6W62Mk41DSc3ungUcF0FC7I,1220
|
|
91
92
|
kasa/smart/modules/cloud.py,sha256=9GLz0Z69Ebv0Bv5Npjb0N91VCD9TbOy85zL_0BTDotE,1040
|
|
92
93
|
kasa/smart/modules/color.py,sha256=1w5toZxsB9DV4w8nqI-WMCkU9E7iTe5BTDH26g5Vp9Q,3161
|
|
93
94
|
kasa/smart/modules/colortemperature.py,sha256=qeX9Pf3jydNp1-6KiDAEa-YPXdbrTt22_Rpoz3wMOkw,2506
|
|
@@ -109,9 +110,10 @@ kasa/smart/modules/reportmode.py,sha256=PT7TpWp7nHYjBqHxehHUz8cpkrMZMv5-krntySvT
|
|
|
109
110
|
kasa/smart/modules/temperaturecontrol.py,sha256=yE8Y3r2eJAXfPhBzDxvKpr-O7hWUD00L9_rP162VhAg,5801
|
|
110
111
|
kasa/smart/modules/temperaturesensor.py,sha256=ZgcJalOKRPcuO1-Manzq9DpmC06t9MaU49eEi051elM,2679
|
|
111
112
|
kasa/smart/modules/time.py,sha256=z7bu1VAaezG-MUCFLZIpgLO9ebvykedLZ1TsAOfxnYw,3171
|
|
113
|
+
kasa/smart/modules/triggerlogs.py,sha256=uxm8eAnDMw03_jPJU1s_nVV8qnlvD1lNE-K7fQq5SQA,818
|
|
112
114
|
kasa/smart/modules/waterleaksensor.py,sha256=yJdb_yaxWo_NBo1nGBTWwSsUeXeuBftmQCIkH-CJ3rs,2683
|
|
113
|
-
python_kasa-0.7.
|
|
114
|
-
python_kasa-0.7.
|
|
115
|
-
python_kasa-0.7.
|
|
116
|
-
python_kasa-0.7.
|
|
117
|
-
python_kasa-0.7.
|
|
115
|
+
python_kasa-0.7.7.dist-info/METADATA,sha256=KHoAKUYVB_dZTCVhja8E1ry1RTNWeAR8WvR7iUGpnr8,11884
|
|
116
|
+
python_kasa-0.7.7.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
117
|
+
python_kasa-0.7.7.dist-info/entry_points.txt,sha256=gTVS_oUcmt4q77WSkppQofMelqufh0zeXvvUkmBPRJA,47
|
|
118
|
+
python_kasa-0.7.7.dist-info/licenses/LICENSE,sha256=Klt9aEsei738epLgYqeikhpdBWwMvU1VAli14Bxlc5c,33218
|
|
119
|
+
python_kasa-0.7.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|