From 0e989ca32702029a01e1e71e9e26d55c59c61039 Mon Sep 17 00:00:00 2001 From: "Jason A. Cox" Date: Mon, 31 Oct 2022 16:57:55 -0700 Subject: [PATCH] v1.7.2 - Fix Contrib Devices Bug --- RELEASE.md | 8 ++++++++ testcontrib.py | 5 ++++- tinytuya/core.py | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 9fd2b95f..52b6b381 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,5 +1,13 @@ # RELEASE NOTES +## v1.7.2 - Fix Contrib Devices Bug + +* PyPI 1.7.2 +* Restore reference to 'self' in __init__() functions by @uzlonewolf in https://github.com/jasonacox/tinytuya/pull/207 +* Misc updates to find_device(), wizard, and repr(device) by @uzlonewolf in https://github.com/jasonacox/tinytuya/pull/196 +* Added socketRetryDelay as parameter instead of fixed value = 5. by @erathaowl in https://github.com/jasonacox/tinytuya/pull/199 + + ## v1.7.1 - Auto-IP Detection Enhancement * PyPI 1.7.1 diff --git a/testcontrib.py b/testcontrib.py index ff415fa7..6fb30004 100644 --- a/testcontrib.py +++ b/testcontrib.py @@ -9,9 +9,12 @@ from tinytuya import Contrib print("TinyTuya (Contrib Import Test) [%s]\n" % tinytuya.__version__) -print(" Contrib Devices Loaded: ") +print(" Contrib Devices Loaded: ") for i in Contrib.DeviceTypes: print(" * %s" % i) +print(" Test ThermostatDevice init(): ") +d = Contrib.ThermostatDevice( 'abcdefghijklmnop123456', '172.28.321.475', '1234567890123abc' ) + exit() diff --git a/tinytuya/core.py b/tinytuya/core.py index 7ab245e3..f278ef0d 100644 --- a/tinytuya/core.py +++ b/tinytuya/core.py @@ -83,7 +83,7 @@ # Colorama terminal color capability for all platforms init() -version_tuple = (1, 7, 1) +version_tuple = (1, 7, 2) version = __version__ = "%d.%d.%d" % version_tuple __author__ = "jasonacox"