From 7e3daf611b224673a2bd3b15b6c85ed54e43b207 Mon Sep 17 00:00:00 2001 From: SMKRV Date: Mon, 1 Sep 2025 23:40:26 +0300 Subject: [PATCH] fix: Remove target requirements from services to fix mandatory device/area/entity selection issue - Removed target blocks from all services in services.yaml - Services now work as global services without requiring device/area/entity selection - Users can call services directly with only required parameters - Fixes issue #2 where services incorrectly required target selection after v2.1.8 update --- custom_components/ha_text_ai/services.yaml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/custom_components/ha_text_ai/services.yaml b/custom_components/ha_text_ai/services.yaml index cf7f7d9..9bcd342 100644 --- a/custom_components/ha_text_ai/services.yaml +++ b/custom_components/ha_text_ai/services.yaml @@ -4,10 +4,6 @@ ask_question: Send a question to the AI model and receive a detailed response. The response will be stored in the conversation history and can be retrieved later. This service now returns response data directly, eliminating the need to read from sensors. - target: - entity: - integration: ha_text_ai - domain: sensor fields: instance: name: Instance @@ -82,10 +78,6 @@ clear_history: name: Clear History description: >- Delete all stored questions and responses from the conversation history - target: - entity: - integration: ha_text_ai - domain: sensor fields: instance: name: Instance @@ -99,10 +91,6 @@ clear_history: get_history: name: Get History description: Retrieve conversation history with optional filtering and sorting - target: - entity: - integration: ha_text_ai - domain: sensor fields: instance: name: Instance @@ -163,10 +151,6 @@ get_history: set_system_prompt: name: Set System Prompt description: Set default system behavior instructions for all future conversations - target: - entity: - integration: ha_text_ai - domain: sensor fields: instance: name: Instance