From 99243bd33a63c076d16bd08914bd1808d4a4112c Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Wed, 4 Dec 2024 15:22:10 +0100 Subject: response manager and libnotify response handler --- __main__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '__main__.py') diff --git a/__main__.py b/__main__.py index 5196760..7d6f84b 100644 --- a/__main__.py +++ b/__main__.py @@ -9,12 +9,10 @@ from .modules.hassil.recognize import recognize from .modules.hassil.util import merge_dict from .modules.hassil.intents import Intents, TextSlotList -from .modules.responses.response_handler import ResponseHandler +from .modules.responses.response_manager import ResponseManager from .modules.input_handlers.stdin_input import StdinInput from .modules.input_handlers.pipewire_record import PipeWireRecord -from .modules.responses.libnotify import respond - from .modules.intents import * @@ -44,7 +42,7 @@ def main(): } input_handler = PipeWireRecord() if config.input_mode == Config.INPUT_PW else StdinInput() - response_handler = ResponseHandler(config) + response_manager = ResponseManager(config) try: for input_text in input_handler.get_input(): @@ -56,7 +54,7 @@ def main(): } print(result_dict) - response_handler.respond(result.response, result.intent.name) + response_manager.respond(result.response, result.intent.name) handler = getattr(globals()[result_dict["domain"]], result_dict["intent"]) handler(result_dict, config) -- cgit v1.2.3-70-g09d2