Skip to content

Commit

Permalink
[bug] fixed a bug when tts was not playing when there was no goal hor…
Browse files Browse the repository at this point in the history
…n audio passed in the goal payload
  • Loading branch information
glaliberte committed Dec 14, 2024
1 parent 9a34532 commit bba6b0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion custom_components/connectedroom/connectedroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion custom_components/connectedroom/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
WSS_HOST = "ws.connectedroom.io"
WSS_KEY = "RiWn4MQFEc3yEEdbWYRFu8mV7HvkBW"

VERSION = "0.3.2"
VERSION = "0.3.3"
2 changes: 1 addition & 1 deletion custom_components/connectedroom/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit bba6b0d

Please sign in to comment.