Browse Source

Fix passing the wrong var to dialog for media player control

master
ketudb 1 year ago
parent
commit
21a4bd8593
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      __init__.py

+ 1
- 1
__init__.py View File

@@ -241,7 +241,7 @@ class HomeAssistantSkill(FallbackSkill):
dg_data = {'entity': ha_entity['dev_name'], 'action': action}
self.ha.execute_service("media_player", "media_%s" % action, ha_data)
self.speak_dialog("homeassistant.media.player.%s" % action, ha_data)
self.speak_dialog("homeassistant.media.player.%s" % action, dg_data)
def handle_media_stop(self, message):
entity = message.data["entity"]


Loading…
Cancel
Save