mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Bump hassil to 2.2.0 (#136787)
This commit is contained in:
parent
68dbe34b89
commit
eb4a05e365
@ -6,5 +6,5 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/conversation",
|
||||
"integration_type": "system",
|
||||
"quality_scale": "internal",
|
||||
"requirements": ["hassil==2.1.0", "home-assistant-intents==2025.1.1"]
|
||||
"requirements": ["hassil==2.2.0", "home-assistant-intents==2025.1.1"]
|
||||
}
|
||||
|
@ -5,7 +5,12 @@ from __future__ import annotations
|
||||
from typing import Any
|
||||
|
||||
from hassil.recognize import RecognizeResult
|
||||
from hassil.util import PUNCTUATION_ALL
|
||||
from hassil.util import (
|
||||
PUNCTUATION_END,
|
||||
PUNCTUATION_END_WORD,
|
||||
PUNCTUATION_START,
|
||||
PUNCTUATION_START_WORD,
|
||||
)
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import CONF_COMMAND, CONF_PLATFORM
|
||||
@ -22,7 +27,12 @@ from .models import ConversationInput
|
||||
def has_no_punctuation(value: list[str]) -> list[str]:
|
||||
"""Validate result does not contain punctuation."""
|
||||
for sentence in value:
|
||||
if PUNCTUATION_ALL.search(sentence):
|
||||
if (
|
||||
PUNCTUATION_START.search(sentence)
|
||||
or PUNCTUATION_END.search(sentence)
|
||||
or PUNCTUATION_START_WORD.search(sentence)
|
||||
or PUNCTUATION_END_WORD.search(sentence)
|
||||
):
|
||||
raise vol.Invalid("sentence should not contain punctuation")
|
||||
|
||||
return value
|
||||
|
@ -35,7 +35,7 @@ go2rtc-client==0.1.2
|
||||
ha-ffmpeg==3.2.2
|
||||
habluetooth==3.13.0
|
||||
hass-nabucasa==0.88.1
|
||||
hassil==2.1.0
|
||||
hassil==2.2.0
|
||||
home-assistant-bluetooth==1.13.0
|
||||
home-assistant-frontend==20250109.2
|
||||
home-assistant-intents==2025.1.1
|
||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1109,7 +1109,7 @@ hass-nabucasa==0.88.1
|
||||
hass-splunk==0.1.1
|
||||
|
||||
# homeassistant.components.conversation
|
||||
hassil==2.1.0
|
||||
hassil==2.2.0
|
||||
|
||||
# homeassistant.components.jewish_calendar
|
||||
hdate==0.11.1
|
||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -947,7 +947,7 @@ habluetooth==3.13.0
|
||||
hass-nabucasa==0.88.1
|
||||
|
||||
# homeassistant.components.conversation
|
||||
hassil==2.1.0
|
||||
hassil==2.2.0
|
||||
|
||||
# homeassistant.components.jewish_calendar
|
||||
hdate==0.11.1
|
||||
|
2
script/hassfest/docker/Dockerfile
generated
2
script/hassfest/docker/Dockerfile
generated
@ -25,7 +25,7 @@ RUN --mount=from=ghcr.io/astral-sh/uv:0.5.21,source=/uv,target=/bin/uv \
|
||||
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
|
||||
-r /usr/src/homeassistant/requirements.txt \
|
||||
stdlib-list==0.10.0 pipdeptree==2.23.4 tqdm==4.66.5 ruff==0.9.1 \
|
||||
PyTurboJPEG==1.7.5 go2rtc-client==0.1.2 ha-ffmpeg==3.2.2 hassil==2.1.0 home-assistant-intents==2025.1.1 mutagen==1.47.0 pymicro-vad==1.0.1 pyspeex-noise==1.0.2
|
||||
PyTurboJPEG==1.7.5 go2rtc-client==0.1.2 ha-ffmpeg==3.2.2 hassil==2.2.0 home-assistant-intents==2025.1.1 mutagen==1.47.0 pymicro-vad==1.0.1 pyspeex-noise==1.0.2
|
||||
|
||||
LABEL "name"="hassfest"
|
||||
LABEL "maintainer"="Home Assistant <hello@home-assistant.io>"
|
||||
|
@ -638,7 +638,7 @@
|
||||
'brightness': dict({
|
||||
'name': 'brightness',
|
||||
'text': '100',
|
||||
'value': 100,
|
||||
'value': 100.0,
|
||||
}),
|
||||
'name': dict({
|
||||
'name': 'name',
|
||||
@ -690,7 +690,7 @@
|
||||
'targets': dict({
|
||||
}),
|
||||
'unmatched_slots': dict({
|
||||
'brightness': 1001,
|
||||
'brightness': 1001.0,
|
||||
}),
|
||||
}),
|
||||
]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user