From 5f29225f181a850113d27338f1c85dca5f9d1181 Mon Sep 17 00:00:00 2001 From: Aruna Tennakoon Date: Fri, 19 Dec 2025 14:06:34 +0700 Subject: [PATCH 1/2] feat: deprecate restoreDeviceStates --- changelog.md | 4 ++++ library.json | 2 +- library.properties | 2 +- src/SinricPro.h | 2 +- src/SinricProVersion.h | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index bd00074e..4b3b4a4c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +## Version 3.5.3 + New: + - `restoreDeviceStates` method has been deprecated. You can use Portal > Edit Device > Other > 'Restore Device State When Connect' instead + ## Version 3.5.2 Fixed: - Fix: Force OTA update does not work [#430](https://github.com/sinricpro/esp8266-esp32-sdk/issues/430) diff --git a/library.json b/library.json index 7b37bf01..e5c8162b 100644 --- a/library.json +++ b/library.json @@ -18,7 +18,7 @@ } ], "homepage": "https://sinric.pro", - "version": "3.5.2", + "version": "3.5.3", "frameworks": "arduino", "platforms": ["espressif8266", "espressif32", "raspberrypi"], "dependencies": [ diff --git a/library.properties b/library.properties index 6c84d321..cc4d0758 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=SinricPro -version=3.5.2 +version=3.5.3 author=Boris Jaeger maintainer=Boris Jaeger sentence=Library for https://sinric.pro - simple way to connect your device to alexa diff --git a/src/SinricPro.h b/src/SinricPro.h index a6375a52..5c1041d5 100644 --- a/src/SinricPro.h +++ b/src/SinricPro.h @@ -648,7 +648,7 @@ void SinricProClass::sendMessage(JsonDocument& jsonMessage) { * * @param flag `true` = enabled \n `false`= disabled **/ -void SinricProClass::restoreDeviceStates(bool flag) { +__attribute__((deprecated("Use SinricPro Portal: Edit Device > Other > 'Restore Device State When Connect' instead"))) void SinricProClass::restoreDeviceStates(bool flag) { _websocketListener.setRestoreDeviceStates(flag); } diff --git a/src/SinricProVersion.h b/src/SinricProVersion.h index a339ad25..cbdd0bd5 100644 --- a/src/SinricProVersion.h +++ b/src/SinricProVersion.h @@ -6,7 +6,7 @@ // Version Configuration #define SINRICPRO_VERSION_MAJOR 3 #define SINRICPRO_VERSION_MINOR 5 -#define SINRICPRO_VERSION_REVISION 2 +#define SINRICPRO_VERSION_REVISION 3 #define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION) #define SINRICPRO_VERSION_STR "SinricPro (v" SINRICPRO_VERSION ")" #define SINRICPRO_VERISON_INT SINRICPRO_VERSION_MAJOR * 1000000 + SINRICPRO_VERSION_MINOR * 1000 + SINRICPRO_VERSION_REVISION \ No newline at end of file From 0b7619b308ffd865db08d65dcf0a60ff14f393d9 Mon Sep 17 00:00:00 2001 From: Aruna Tennakoon Date: Fri, 19 Dec 2025 17:13:42 +0700 Subject: [PATCH 2/2] fix: @deprecated added --- src/SinricPro.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SinricPro.h b/src/SinricPro.h index 5c1041d5..36c48b33 100644 --- a/src/SinricPro.h +++ b/src/SinricPro.h @@ -646,6 +646,8 @@ void SinricProClass::sendMessage(JsonDocument& jsonMessage) { * For every state the corresponding callback (like `onPowerState`) will be called \n * This is useful after a power failure / reboot of your device. * + * @deprecated Device state restoration is now configured exclusively via the SinricPro Portal. Please go to **Portal → Edit Device → Other → Enable "Restore Device State When Connect"** instead. + * * @param flag `true` = enabled \n `false`= disabled **/ __attribute__((deprecated("Use SinricPro Portal: Edit Device > Other > 'Restore Device State When Connect' instead"))) void SinricProClass::restoreDeviceStates(bool flag) {