Fix Almond onboarding url when using cloud (#28908)

This commit is contained in:
Bram Kragten 2019-11-20 22:03:01 +01:00 committed by Paulus Schoutsen
parent 1c630738f7
commit ae3cf72fb2

View file

@ -263,8 +263,6 @@ class AlmondAgent(conversation.AbstractConversationAgent):
host = self.entry.data["host"]
if self.entry.data.get("is_hassio"):
host = "/core_almond"
elif self.entry.data["type"] != TYPE_LOCAL:
host = f"{host}/me"
return {
"text": "Would you like to opt-in to share your anonymized commands with Stanford to improve Almond's responses?",
"url": f"{host}/conversation",