Remove the greeting feature entirely
Drops the CONF_GREETING option, the first-contact greeting logic and its RuntimeData state, and all related strings/translations/README text. Any greeting value left in an existing entry's options is simply ignored. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,6 @@ from .const import (
|
||||
CONF_ASSIST_LANGUAGE,
|
||||
CONF_DISPLAY_NAME,
|
||||
CONF_ENABLE_ASSIST,
|
||||
CONF_GREETING,
|
||||
CONF_INTERFACE_NAME,
|
||||
CONF_LOGLEVEL,
|
||||
CONF_PROPAGATION_NODE,
|
||||
@@ -80,8 +79,6 @@ class RuntimeData:
|
||||
# Maps a peer address -> the HA conversation_id we opened for it, so
|
||||
# each remote user keeps its own Assist conversation context.
|
||||
self.conversation_ids: dict[str, str] = {}
|
||||
# Senders we've already greeted this session (first-contact greeting).
|
||||
self.greeted: set[str] = set()
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
@@ -238,12 +235,6 @@ def _make_incoming_handler(
|
||||
_LOGGER.debug("Ignoring message from non-allowed sender %s", source)
|
||||
return
|
||||
|
||||
# First-contact greeting: send the configured greeting once per sender.
|
||||
greeting = (options.get(CONF_GREETING) or "").strip()
|
||||
if greeting and source not in runtime.greeted:
|
||||
runtime.greeted.add(source)
|
||||
await _reply(runtime.manager, source, greeting, "Home Assistant")
|
||||
|
||||
if not options.get(CONF_ENABLE_ASSIST, True):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user