mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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",
|
"documentation": "https://www.home-assistant.io/integrations/conversation",
|
||||||
"integration_type": "system",
|
"integration_type": "system",
|
||||||
"quality_scale": "internal",
|
"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 typing import Any
|
||||||
|
|
||||||
from hassil.recognize import RecognizeResult
|
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
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_COMMAND, CONF_PLATFORM
|
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]:
|
def has_no_punctuation(value: list[str]) -> list[str]:
|
||||||
"""Validate result does not contain punctuation."""
|
"""Validate result does not contain punctuation."""
|
||||||
for sentence in value:
|
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")
|
raise vol.Invalid("sentence should not contain punctuation")
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
@ -35,7 +35,7 @@ go2rtc-client==0.1.2
|
|||||||
ha-ffmpeg==3.2.2
|
ha-ffmpeg==3.2.2
|
||||||
habluetooth==3.13.0
|
habluetooth==3.13.0
|
||||||
hass-nabucasa==0.88.1
|
hass-nabucasa==0.88.1
|
||||||
hassil==2.1.0
|
hassil==2.2.0
|
||||||
home-assistant-bluetooth==1.13.0
|
home-assistant-bluetooth==1.13.0
|
||||||
home-assistant-frontend==20250109.2
|
home-assistant-frontend==20250109.2
|
||||||
home-assistant-intents==2025.1.1
|
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
|
hass-splunk==0.1.1
|
||||||
|
|
||||||
# homeassistant.components.conversation
|
# homeassistant.components.conversation
|
||||||
hassil==2.1.0
|
hassil==2.2.0
|
||||||
|
|
||||||
# homeassistant.components.jewish_calendar
|
# homeassistant.components.jewish_calendar
|
||||||
hdate==0.11.1
|
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
|
hass-nabucasa==0.88.1
|
||||||
|
|
||||||
# homeassistant.components.conversation
|
# homeassistant.components.conversation
|
||||||
hassil==2.1.0
|
hassil==2.2.0
|
||||||
|
|
||||||
# homeassistant.components.jewish_calendar
|
# homeassistant.components.jewish_calendar
|
||||||
hdate==0.11.1
|
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 \
|
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
|
||||||
-r /usr/src/homeassistant/requirements.txt \
|
-r /usr/src/homeassistant/requirements.txt \
|
||||||
stdlib-list==0.10.0 pipdeptree==2.23.4 tqdm==4.66.5 ruff==0.9.1 \
|
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 "name"="hassfest"
|
||||||
LABEL "maintainer"="Home Assistant <hello@home-assistant.io>"
|
LABEL "maintainer"="Home Assistant <hello@home-assistant.io>"
|
||||||
|
@ -638,7 +638,7 @@
|
|||||||
'brightness': dict({
|
'brightness': dict({
|
||||||
'name': 'brightness',
|
'name': 'brightness',
|
||||||
'text': '100',
|
'text': '100',
|
||||||
'value': 100,
|
'value': 100.0,
|
||||||
}),
|
}),
|
||||||
'name': dict({
|
'name': dict({
|
||||||
'name': 'name',
|
'name': 'name',
|
||||||
@ -690,7 +690,7 @@
|
|||||||
'targets': dict({
|
'targets': dict({
|
||||||
}),
|
}),
|
||||||
'unmatched_slots': dict({
|
'unmatched_slots': dict({
|
||||||
'brightness': 1001,
|
'brightness': 1001.0,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user