From bba6b0de2af5b1f56961f8c967a65472dd64728c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Lalibert=C3=A9?= Date: Sat, 14 Dec 2024 13:43:46 -0500 Subject: [PATCH] [bug] fixed a bug when tts was not playing when there was no goal horn audio passed in the goal payload --- custom_components/connectedroom/connectedroom.py | 4 +++- custom_components/connectedroom/const.py | 2 +- custom_components/connectedroom/manifest.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/connectedroom/connectedroom.py b/custom_components/connectedroom/connectedroom.py index 9a61bb3..dd9494f 100644 --- a/custom_components/connectedroom/connectedroom.py +++ b/custom_components/connectedroom/connectedroom.py @@ -244,8 +244,10 @@ async def on_goal(self, data): tts_after_goal_horn = None + self.connected_room.tts_after_goal_horn = None + if data["natural_text"] is not None: - if goal_horn is False: + if goal_horn is None: await self.connected_room.tts(data["natural_text"]) else: tts_after_goal_horn = data["natural_text"] diff --git a/custom_components/connectedroom/const.py b/custom_components/connectedroom/const.py index 74ff357..6013d88 100644 --- a/custom_components/connectedroom/const.py +++ b/custom_components/connectedroom/const.py @@ -8,4 +8,4 @@ WSS_HOST = "ws.connectedroom.io" WSS_KEY = "RiWn4MQFEc3yEEdbWYRFu8mV7HvkBW" -VERSION = "0.3.2" +VERSION = "0.3.3" diff --git a/custom_components/connectedroom/manifest.json b/custom_components/connectedroom/manifest.json index 58a9e5c..667cd9d 100644 --- a/custom_components/connectedroom/manifest.json +++ b/custom_components/connectedroom/manifest.json @@ -10,5 +10,5 @@ "iot_class": "cloud_push", "issue_tracker": "https://github.com/glaliberte/connected-room-hass/issues", "requirements": ["pysher==1.0.8"], - "version": "0.3.2" + "version": "0.3.3" }