From 54654e5b834655ece2660019a4eea681dc463382 Mon Sep 17 00:00:00 2001 From: Sian Date: Sat, 8 Jul 2023 08:36:09 +0930 Subject: [PATCH] Version Bump --- custom_components/switch_manager/helpers.py | 3 ++- custom_components/switch_manager/manifest.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/switch_manager/helpers.py b/custom_components/switch_manager/helpers.py index 838af376..52f04aac 100644 --- a/custom_components/switch_manager/helpers.py +++ b/custom_components/switch_manager/helpers.py @@ -63,9 +63,10 @@ def format_mqtt_message( message: ReceiveMessage): except ValueError as e: data = message.payload + # Json.loads will parse int payloads so we make sure those are converted to payloads if not isinstance(data, dict): data = { - "payload": message.payload + "payload": data } data.update({ diff --git a/custom_components/switch_manager/manifest.json b/custom_components/switch_manager/manifest.json index 8e562ba1..9404f265 100644 --- a/custom_components/switch_manager/manifest.json +++ b/custom_components/switch_manager/manifest.json @@ -19,5 +19,5 @@ "iot_class": "local_push", "issue_tracker": "https://github.com/Sian-Lee-SA/Home-Assistant-Switch-Manager/issues", "requirements": [], - "version": "1.2.1" + "version": "1.2.2" }