python-kasa 0.10.1__py3-none-any.whl → 0.10.2__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/cli/device.py +1 -1
- kasa/device.py +1 -1
- kasa/iot/iotdevice.py +4 -1
- kasa/smart/smartdevice.py +4 -1
- kasa/smartcam/smartcamchild.py +4 -1
- kasa/smartcam/smartcamdevice.py +4 -1
- {python_kasa-0.10.1.dist-info → python_kasa-0.10.2.dist-info}/METADATA +3 -3
- {python_kasa-0.10.1.dist-info → python_kasa-0.10.2.dist-info}/RECORD +11 -11
- {python_kasa-0.10.1.dist-info → python_kasa-0.10.2.dist-info}/WHEEL +0 -0
- {python_kasa-0.10.1.dist-info → python_kasa-0.10.2.dist-info}/entry_points.txt +0 -0
- {python_kasa-0.10.1.dist-info → python_kasa-0.10.2.dist-info}/licenses/LICENSE +0 -0
kasa/cli/device.py
CHANGED
|
@@ -48,7 +48,7 @@ async def state(ctx, dev: Device):
|
|
|
48
48
|
)
|
|
49
49
|
echo(
|
|
50
50
|
f"Firmware: {dev.device_info.firmware_version}"
|
|
51
|
-
f"
|
|
51
|
+
f"{' ' + build if (build := dev.device_info.firmware_build) else ''}"
|
|
52
52
|
)
|
|
53
53
|
echo(f"MAC (rssi): {dev.mac} ({dev.rssi})")
|
|
54
54
|
if verbose:
|
kasa/device.py
CHANGED
kasa/iot/iotdevice.py
CHANGED
|
@@ -760,7 +760,10 @@ class IotDevice(Device):
|
|
|
760
760
|
device_family = sys_info.get("type", sys_info.get("mic_type"))
|
|
761
761
|
device_type = IotDevice._get_device_type_from_sys_info(info)
|
|
762
762
|
fw_version_full = sys_info["sw_ver"]
|
|
763
|
-
|
|
763
|
+
if " " in fw_version_full:
|
|
764
|
+
firmware_version, firmware_build = fw_version_full.split(" ", maxsplit=1)
|
|
765
|
+
else:
|
|
766
|
+
firmware_version, firmware_build = fw_version_full, None
|
|
764
767
|
auth = bool(discovery_info and ("mgt_encrypt_schm" in discovery_info))
|
|
765
768
|
|
|
766
769
|
return DeviceInfo(
|
kasa/smart/smartdevice.py
CHANGED
|
@@ -913,7 +913,10 @@ class SmartDevice(Device):
|
|
|
913
913
|
components, device_family
|
|
914
914
|
)
|
|
915
915
|
fw_version_full = di["fw_ver"]
|
|
916
|
-
|
|
916
|
+
if " " in fw_version_full:
|
|
917
|
+
firmware_version, firmware_build = fw_version_full.split(" ", maxsplit=1)
|
|
918
|
+
else:
|
|
919
|
+
firmware_version, firmware_build = fw_version_full, None
|
|
917
920
|
_protocol, devicetype = device_family.split(".")
|
|
918
921
|
# Brand inferred from SMART.KASAPLUG/SMART.TAPOPLUG etc.
|
|
919
922
|
brand = devicetype[:4].lower()
|
kasa/smartcam/smartcamchild.py
CHANGED
|
@@ -103,7 +103,10 @@ class SmartCamChild(SmartChildDevice, SmartCamDevice):
|
|
|
103
103
|
model = cifp["device_model"]
|
|
104
104
|
device_type = SmartCamDevice._get_device_type_from_sysinfo(cifp)
|
|
105
105
|
fw_version_full = cifp["sw_ver"]
|
|
106
|
-
|
|
106
|
+
if " " in fw_version_full:
|
|
107
|
+
firmware_version, firmware_build = fw_version_full.split(" ", maxsplit=1)
|
|
108
|
+
else:
|
|
109
|
+
firmware_version, firmware_build = fw_version_full, None
|
|
107
110
|
return DeviceInfo(
|
|
108
111
|
short_name=model,
|
|
109
112
|
long_name=model,
|
kasa/smartcam/smartcamdevice.py
CHANGED
|
@@ -47,7 +47,10 @@ class SmartCamDevice(SmartDevice):
|
|
|
47
47
|
long_name = discovery_info["device_model"] if discovery_info else short_name
|
|
48
48
|
device_type = SmartCamDevice._get_device_type_from_sysinfo(basic_info)
|
|
49
49
|
fw_version_full = basic_info["sw_version"]
|
|
50
|
-
|
|
50
|
+
if " " in fw_version_full:
|
|
51
|
+
firmware_version, firmware_build = fw_version_full.split(" ", maxsplit=1)
|
|
52
|
+
else:
|
|
53
|
+
firmware_version, firmware_build = fw_version_full, None
|
|
51
54
|
return DeviceInfo(
|
|
52
55
|
short_name=basic_info["device_model"],
|
|
53
56
|
long_name=long_name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.2
|
|
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
|
|
@@ -236,9 +236,9 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
236
236
|
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP15
|
|
237
237
|
- **Power Strips**: P210M, P300, P304M, P306, TP25
|
|
238
238
|
- **Wall Switches**: S210, S220, S500D, S505, S505D
|
|
239
|
-
- **Bulbs**: L510B, L510E, L530E, L630
|
|
239
|
+
- **Bulbs**: L510B, L510E, L530B, L530E, L630
|
|
240
240
|
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
|
|
241
|
-
- **Cameras**: C100, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70
|
|
241
|
+
- **Cameras**: C100, C110, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70
|
|
242
242
|
- **Doorbells and chimes**: D100C, D130, D230
|
|
243
243
|
- **Vacuums**: RV20 Max Plus, RV30 Max
|
|
244
244
|
- **Hubs**: H100, H200
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
kasa/__init__.py,sha256=Bpu9H0z_6vNEIZqtejXSiXU4X_-CdqW841aOG7wJ-6o,4868
|
|
2
2
|
kasa/cachedzoneinfo.py,sha256=wrttrnBRqbjKDpYeuGkdNSASHABQxHVFzi1811-IkyE,777
|
|
3
3
|
kasa/credentials.py,sha256=DnNJjcc0KNwTKPklko37yUcOqiLMs78-mheNljDjxaU,926
|
|
4
|
-
kasa/device.py,sha256=
|
|
4
|
+
kasa/device.py,sha256=Wh5yGqi5q3uvF82CUX3U_nO8iiH5uMN9tV_h5beTTag,20482
|
|
5
5
|
kasa/device_factory.py,sha256=Cu87oiMIuVMcwLBc8BYB4QXijB9NgzQwf0N7wuWaJDc,8395
|
|
6
6
|
kasa/device_type.py,sha256=1PMELn2IuMEfuNrHn8rjTiC5AShYCvQf3x8gYvoMLlA,834
|
|
7
7
|
kasa/deviceconfig.py,sha256=2rd9Qjwe--SMYqf9Itgg5hx5vpTBMaQeFBJyX7IaC4o,6595
|
|
@@ -18,7 +18,7 @@ kasa/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
18
18
|
kasa/cli/__init__.py,sha256=S8z6xs4EPXXtF2wLwuvDLjcuy46c0jWaG0wiqqU5FiY,27
|
|
19
19
|
kasa/cli/__main__.py,sha256=B5nsKIZhYL1upQHrrKXnqE3t261v8nthD52e8m3DAgY,88
|
|
20
20
|
kasa/cli/common.py,sha256=3ctHgSAU5RnAujWJtfPc6uPlB9QB5AeseCPHxOsJxJU,9399
|
|
21
|
-
kasa/cli/device.py,sha256=
|
|
21
|
+
kasa/cli/device.py,sha256=wAAENY8Z7Xcb35aKrGKrJspeOyNBCauuTO50nVHRJ5k,5861
|
|
22
22
|
kasa/cli/discover.py,sha256=SUQ396O-Jr0Gp0jP8yafpS2AsLrtClRn7pTrspr_F18,12598
|
|
23
23
|
kasa/cli/feature.py,sha256=ThQj-Tg_lauA2l58HVLUvr5WJ8sXHUz2ivTGkg8c-dk,4328
|
|
24
24
|
kasa/cli/hub.py,sha256=PjzK9DtGE74k30DRv07vulC1tASnpIs-OMh3fHq8PVo,2437
|
|
@@ -45,7 +45,7 @@ kasa/iot/__init__.py,sha256=Ib0O2S13k2_JaOlmDe4x16HZCDIK39n3hgdEeton00I,449
|
|
|
45
45
|
kasa/iot/effects.py,sha256=au35HDrHso7JRdv9bPSdkepdpR8NbSp-gFGHW2SKZUw,7506
|
|
46
46
|
kasa/iot/iotbulb.py,sha256=LdeRYOX3gE008nIaE0_bYkVMbhQZW178lKYj4hG-7xI,18541
|
|
47
47
|
kasa/iot/iotcamera.py,sha256=TmALKJCAqaDz4OxmkWD8lJdTzBf_TLPP8zGESvivKjI,1064
|
|
48
|
-
kasa/iot/iotdevice.py,sha256=
|
|
48
|
+
kasa/iot/iotdevice.py,sha256=eWeaJCKiSHEJscQk25866FLjd09K05aFlKWJkBQWV4U,27480
|
|
49
49
|
kasa/iot/iotdimmer.py,sha256=aNKksfI5SW8UdwCpXNAwklqP3hAvJDLH7xSTAUpP7F4,7949
|
|
50
50
|
kasa/iot/iotlightstrip.py,sha256=tvJua0IcQKgWy1MsrY5PgeXZHIUMJqbdhpVlEJykrw8,2113
|
|
51
51
|
kasa/iot/iotmodule.py,sha256=CnH0Vy8dSVohSF5c8ikuJapdLZOz6LdINvSjSPAf3u8,2342
|
|
@@ -76,7 +76,7 @@ kasa/protocols/smartprotocol.py,sha256=NzpKYkYmme19p2iQAJuCB2qXbTbwDWvjDByZLuIR8
|
|
|
76
76
|
kasa/smart/__init__.py,sha256=gdmi-Doe7dnv7e8ab_892lr9IdOXeFa3XlU3u_CePCk,198
|
|
77
77
|
kasa/smart/effects.py,sha256=J_mkX2L-7IJSaL5K4CpBaOdk-humx3cVxg7yioGhtF4,11498
|
|
78
78
|
kasa/smart/smartchilddevice.py,sha256=nnFbbKES57loQLEFOhABYrmV9a9OzndTCBk6AoAsPhc,5989
|
|
79
|
-
kasa/smart/smartdevice.py,sha256=
|
|
79
|
+
kasa/smart/smartdevice.py,sha256=DYPZW7vLkTN8Z5_Lnmq8QTUCWgCtX0h6S74vKG82D7Y,34142
|
|
80
80
|
kasa/smart/smartmodule.py,sha256=8PAh6KCiO4NWCJuevSgxA6CIwZFliDzD2t8CwaYs_Uc,8986
|
|
81
81
|
kasa/smart/modules/__init__.py,sha256=MHX7SNBL0wc0DyBaSHszA3PB47JLlk--m4ErejzNZR8,2356
|
|
82
82
|
kasa/smart/modules/alarm.py,sha256=LpeHbgZdG4uTxebNvd0gE_Y5iEJQW9jWQdi5in1QvX4,8556
|
|
@@ -122,8 +122,8 @@ kasa/smart/modules/time.py,sha256=g7wEYeYBqX5RPshwzzcr-6GsrxzOx2klQ-Tslma6f-k,31
|
|
|
122
122
|
kasa/smart/modules/triggerlogs.py,sha256=_8-138YuVNDbXsNmbmRn4_a_efE2N4OR_nKCYSRk-zk,897
|
|
123
123
|
kasa/smart/modules/waterleaksensor.py,sha256=866GzJxGq1NzDPzRMOXdVQx5dW-cc6fQWbufR4-bmfI,2691
|
|
124
124
|
kasa/smartcam/__init__.py,sha256=4WlKyA-Jvm1WaI28hwDBUkh4YgHiy2rtqKzCTgqEHSE,183
|
|
125
|
-
kasa/smartcam/smartcamchild.py,sha256=
|
|
126
|
-
kasa/smartcam/smartcamdevice.py,sha256=
|
|
125
|
+
kasa/smartcam/smartcamchild.py,sha256=WNU8_bRMhVUcRzsojxhADxyL79ovfNT7cBa0NrWShHI,4222
|
|
126
|
+
kasa/smartcam/smartcamdevice.py,sha256=6DLEs4N6AbPC7QPLlVU-S59zWABM0Irg0vq5Nl9JBT8,10555
|
|
127
127
|
kasa/smartcam/smartcammodule.py,sha256=eqY6xkwO5XzYj2vuLFwr-vA_g1DQl1GHhdAJA1bSvyw,3724
|
|
128
128
|
kasa/smartcam/modules/__init__.py,sha256=tw3XQUsDNvSBkaHFExVOmw-ThbYZXwxDUJ5-9TStOdo,914
|
|
129
129
|
kasa/smartcam/modules/alarm.py,sha256=dvpok39Yq-UVFWHJboFwRRYLi2aNCWiphXZLXr3nfLE,6926
|
|
@@ -151,8 +151,8 @@ kasa/transports/linkietransport.py,sha256=KUGnYdmDV9g6FIt06Lk3y-AsLfWqAsMuo_f7m_
|
|
|
151
151
|
kasa/transports/sslaestransport.py,sha256=MzJ7sExaLwUsgcXE3Sy_jVo_1nEnD7lgap9Mv4tMU8U,24276
|
|
152
152
|
kasa/transports/ssltransport.py,sha256=3F9wZ5eQUWED3rSNh6m5zMFC94DL0JXKR_yj5XLlhmo,7861
|
|
153
153
|
kasa/transports/xortransport.py,sha256=t2ImPcZIM2MV9EEzeS3RnJxicdEAv009HP0KN3k3oRw,8870
|
|
154
|
-
python_kasa-0.10.
|
|
155
|
-
python_kasa-0.10.
|
|
156
|
-
python_kasa-0.10.
|
|
157
|
-
python_kasa-0.10.
|
|
158
|
-
python_kasa-0.10.
|
|
154
|
+
python_kasa-0.10.2.dist-info/METADATA,sha256=xm-4TSSSb6fYWe99gd23r5m7MdzmZGRnjed-AIUWWic,12181
|
|
155
|
+
python_kasa-0.10.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
156
|
+
python_kasa-0.10.2.dist-info/entry_points.txt,sha256=gTVS_oUcmt4q77WSkppQofMelqufh0zeXvvUkmBPRJA,47
|
|
157
|
+
python_kasa-0.10.2.dist-info/licenses/LICENSE,sha256=Klt9aEsei738epLgYqeikhpdBWwMvU1VAli14Bxlc5c,33218
|
|
158
|
+
python_kasa-0.10.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|