Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
try conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar committed Feb 11, 2021
1 parent 22ae2fc commit 5953bb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/plex_assistant/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ def ifttt_webhook_callback(event):
hass.services.call(DOMAIN, "command", {"command": event.data["command"]})

listener = hass.bus.async_listen("ifttt_webhook_received", ifttt_webhook_callback)
await hass.services.async_call("conversation", "process", {"text": "tell plex to initialize_plex_intent"})

try:
await hass.services.async_call("conversation", "process", {"text": "tell plex to initialize_plex_intent"})
except:
pass

return listener


Expand Down

0 comments on commit 5953bb4

Please sign in to comment.