diff --git a/changelog.md b/changelog.md index bd00074..4b3b4a4 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 7b37bf0..e5c8162 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 6c84d32..cc4d075 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 a6375a5..36c48b3 100644 --- a/src/SinricPro.h +++ b/src/SinricPro.h @@ -646,9 +646,11 @@ 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 **/ -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 a339ad2..cbdd0bd 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