Skip to content

Commit

Permalink
pass required data
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed Jan 24, 2025
1 parent a6a56c3 commit 2d44499
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion neon_homeassistant_skill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,13 @@ def disable_ha_intents(self):

@intent_handler("get.all.devices.intent") # pragma: no cover
def handle_rebuild_device_list(self, message: Message):
self.bus.emit(message.forward("ovos.phal.plugin.homeassistant.setup.instance", None))
ha_config = self.config_core.get("PHAL", {}).get("ovos-PHAL-plugin-homeassistant", {})
self.bus.emit(
message.forward(
"ovos.phal.plugin.homeassistant.setup.instance",
{"url": ha_config.get("host", {}), "api_key": ha_config.get("api_key")},
)
)
self.speak_dialog("acknowledge")

@intent_handler("enable.intent") # pragma: no cover
Expand Down

0 comments on commit 2d44499

Please sign in to comment.