Skip to content

Commit 2a3e473

Browse files
committed
Merge branch 'master' into main
# Conflicts: # tuya_iot/version.py
2 parents 66bb0a0 + 65f3979 commit 2a3e473

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tuya_iot/device.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def get_category_functions(self, categoryId: str) -> dict[str, Any]:
625625

626626
# https://developer.tuya.com/en/docs/cloud/device-control?id=K95zu01ksols7#title-27-Get%20the%20specifications%20and%20properties%20of%20the%20device%2C%20including%20the%20instruction%20set%20and%20status%20set
627627
def get_device_specification(self, device_id: str) -> dict[str, str]:
628-
return self.api.get(f"/v1.2/iot-03/devices/{device_id}/specification")
628+
return self.api.get(f"/v1.0/devices/{device_id}/specifications")
629629

630630
def get_device_stream_allocate(
631631
self, device_id: str, stream_type: Literal["flv", "hls", "rtmp", "rtsp"]
@@ -693,7 +693,7 @@ def get_category_functions(self, categoryId: str) -> dict[str, Any]:
693693

694694
# https://developer.tuya.com/en/docs/cloud/device-control?id=K95zu01ksols7#title-27-Get%20the%20specifications%20and%20properties%20of%20the%20device%2C%20including%20the%20instruction%20set%20and%20status%20set
695695
def get_device_specification(self, device_id: str) -> dict[str, str]:
696-
return self.api.get(f"/v1.2/iot-03/devices/{device_id}/specification")
696+
return self.api.get(f"/v1.0/iot-03/devices/{device_id}/specification")
697697

698698
def get_device_stream_allocate(
699699
self, device_id: str, stream_type: Literal["flv", "hls", "rtmp", "rtsp"]

tuya_iot/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""tuya_iot version."""
22

3-
VERSION = "0.6.5"
3+
VERSION = "0.6.6"
44

0 commit comments

Comments
 (0)