Skip to content

Commit 410a4cc

Browse files
rmaher001claude
andcommitted
Fix entity unique_id and display names for llmvision_enhanced
- Update hardcoded unique_id to use DOMAIN variable - Change all display names from "LLM Vision" to "LLM Vision Enhanced" - Ensure entities are clearly distinct from original integration - Timeline entity will be: llmvision_enhanced_timeline 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 75958cc commit 410a4cc

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

custom_components/llmvision_enhanced/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry) -> bool:
189189
new_data[CONF_PROVIDER] = "Timeline"
190190
hass.config_entries.async_update_entry(
191191
config_entry,
192-
title="LLM Vision Timeline",
192+
title="LLM Vision Enhanced Timeline",
193193
data=new_data,
194194
version=3,
195195
minor_version=0,
@@ -224,10 +224,10 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry) -> bool:
224224
if provider == "Memory":
225225
# Change the provider name to "Settings"
226226
new_data[CONF_PROVIDER] = "Settings"
227-
# Update the title to "LLM Vision Settings"
227+
# Update the title to "LLM Vision Enhanced Settings"
228228
hass.config_entries.async_update_entry(
229229
config_entry,
230-
title="LLM Vision Settings",
230+
title="LLM Vision Enhanced Settings",
231231
data=new_data,
232232
version=4,
233233
minor_version=0,
@@ -449,7 +449,7 @@ async def _remember(
449449

450450
if config_entry is None:
451451
raise ServiceValidationError(
452-
f"Settings config entry not found. Please set up LLM Vision first."
452+
f"Settings config entry not found. Please set up LLM Vision Enhanced first."
453453
)
454454

455455
timeline = Timeline(hass, config_entry)
@@ -621,7 +621,7 @@ def get_service_call_data(self):
621621

622622
def setup(hass, config):
623623
async def image_analyzer(data_call):
624-
"""Handle the service call to analyze an image with LLM Vision"""
624+
"""Handle the service call to analyze an image with LLM Vision Enhanced"""
625625
start = dt_util.now()
626626

627627
# Log the service call data

custom_components/llmvision_enhanced/calendar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class Timeline(CalendarEntity):
3030
def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry):
3131
"""Initialize the calendar"""
3232
self.hass = hass
33-
self._attr_name = "LLM Vision Timeline"
34-
self._attr_unique_id = "llm_vision_timeline"
33+
self._attr_name = "LLM Vision Enhanced Timeline"
34+
self._attr_unique_id = f"{DOMAIN}_timeline"
3535
self._events = []
3636
self._today_summary = ""
3737
self._retention_time = (

custom_components/llmvision_enhanced/config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ async def async_step_settings(self, user_input=None):
13971397
else:
13981398
# New config entry
13991399
return self.async_create_entry(
1400-
title="LLM Vision Settings", data=user_input
1400+
title="LLM Vision Enhanced Settings", data=user_input
14011401
)
14021402

14031403
return self.async_show_form(

0 commit comments

Comments
 (0)