Add default title to migrated Claude entry (#147598)

This commit is contained in:
Joost Lekkerkerker 2025-06-26 17:11:13 +02:00 committed by GitHub
parent 69f0b6244a
commit e7cc03c1d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,13 @@ from homeassistant.helpers import (
)
from homeassistant.helpers.typing import ConfigType
from .const import CONF_CHAT_MODEL, DOMAIN, LOGGER, RECOMMENDED_CHAT_MODEL
from .const import (
CONF_CHAT_MODEL,
DEFAULT_CONVERSATION_NAME,
DOMAIN,
LOGGER,
RECOMMENDED_CHAT_MODEL,
)
PLATFORMS = (Platform.CONVERSATION,)
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
@ -123,6 +129,7 @@ async def async_migrate_integration(hass: HomeAssistant) -> None:
else:
hass.config_entries.async_update_entry(
entry,
title=DEFAULT_CONVERSATION_NAME,
options={},
version=2,
)