From 517b1f11aeca3341c5600503be726eee66ca2485 Mon Sep 17 00:00:00 2001 From: SMKRV Date: Tue, 2 Sep 2025 01:22:20 +0300 Subject: [PATCH] fix: Remove invalid response schema from services.yaml Home Assistant's hassfest validation does not support 'response' section in services.yaml. The response_variable functionality still works through supports_response=True flag in service registration. Fixes hassfest validation error: extra keys not allowed @ data['ask_question']['response'] --- custom_components/ha_text_ai/services.yaml | 33 ---------------------- 1 file changed, 33 deletions(-) diff --git a/custom_components/ha_text_ai/services.yaml b/custom_components/ha_text_ai/services.yaml index 625047c..9bcd342 100644 --- a/custom_components/ha_text_ai/services.yaml +++ b/custom_components/ha_text_ai/services.yaml @@ -73,39 +73,6 @@ ask_question: max: 100000 step: 1 mode: box - response: - type: object - properties: - response_text: - type: string - description: The AI response text - tokens_used: - type: integer - description: Total number of tokens used - prompt_tokens: - type: integer - description: Number of tokens in the prompt - completion_tokens: - type: integer - description: Number of tokens in the completion - model_used: - type: string - description: The AI model that was used for the response - instance: - type: string - description: The instance name that was used - question: - type: string - description: The original question that was asked - timestamp: - type: string - description: ISO timestamp when the response was generated - success: - type: boolean - description: Whether the request was successful - error: - type: string - description: Error message if the request failed clear_history: name: Clear History