From b3a379ee782e883a5ce925738c0753a8c4dc5a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=BE=E5=90=AF?= <18442047+tsutsuku@users.noreply.github.com> Date: Sat, 25 Dec 2021 11:18:38 +0800 Subject: [PATCH 1/3] [update] version to 0.6.5 --- tuya_iot/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuya_iot/version.py b/tuya_iot/version.py index df5fbdf..c803017 100644 --- a/tuya_iot/version.py +++ b/tuya_iot/version.py @@ -1,4 +1,4 @@ """tuya_iot version.""" -VERSION = "0.6.4" +VERSION = "0.6.5" From d008cd6e4035c9bfea433ebad8fd72cd95a0cc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=BE=E5=90=AF?= <18442047+tsutsuku@users.noreply.github.com> Date: Sat, 25 Dec 2021 16:28:20 +0800 Subject: [PATCH 2/3] [update] rebase device specifications api --- tuya_iot/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuya_iot/device.py b/tuya_iot/device.py index c38bffa..74d193c 100644 --- a/tuya_iot/device.py +++ b/tuya_iot/device.py @@ -625,7 +625,7 @@ def get_category_functions(self, categoryId: str) -> dict[str, Any]: # 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 def get_device_specification(self, device_id: str) -> dict[str, str]: - return self.api.get(f"/v1.2/iot-03/devices/{device_id}/specification") + return self.api.get(f"/v1.0/devices/{device_id}/specifications") def get_device_stream_allocate( 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]: # 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 def get_device_specification(self, device_id: str) -> dict[str, str]: - return self.api.get(f"/v1.2/iot-03/devices/{device_id}/specification") + return self.api.get(f"/v1.0/iot-03/devices/{device_id}/specification") def get_device_stream_allocate( self, device_id: str, stream_type: Literal["flv", "hls", "rtmp", "rtsp"] From 1a5eda5615bb91daed6c74b2506485da62e89e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=BE=E5=90=AF?= <18442047+tsutsuku@users.noreply.github.com> Date: Sat, 25 Dec 2021 16:29:22 +0800 Subject: [PATCH 3/3] [update] version to 0.6.6 --- tuya_iot/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuya_iot/version.py b/tuya_iot/version.py index c803017..ea08761 100644 --- a/tuya_iot/version.py +++ b/tuya_iot/version.py @@ -1,4 +1,4 @@ """tuya_iot version.""" -VERSION = "0.6.5" +VERSION = "0.6.6"