fix(hass): fix typos in timer sentences
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-18 20:38:44 -05:00
parent 61dc9826b9
commit f08d05c13c
2 changed files with 6 additions and 5 deletions

View file

@ -18,6 +18,7 @@
nativeBuildInputs = o.nativeBuildInputs ++ [pkgs.findutils]; nativeBuildInputs = o.nativeBuildInputs ++ [pkgs.findutils];
postPatch = '' postPatch = ''
find ./. -name "*Timer*" -delete find ./. -name "*Timer*" -delete
find ./. -name "*Start*" -delete
''; '';
}); });
}; };

View file

@ -62,7 +62,7 @@
TimerStart.data = [ TimerStart.data = [
{ {
sentences = [ sentences = [
"(start|set) [a] timer (for|with) {hours} hour[s] [and] {minutes} minute[s] [and] {seconds} seconde[s]" "(start|set) [a] timer (for|with) {hours} hour[s] [and] {minutes} minute[s] [and] {seconds} second[s]"
]; ];
} }
@ -90,7 +90,7 @@
{ {
sentences = [ sentences = [
"(start|set) [a] timer (for|with) {seconds} seconde[s]" "(start|set) [a] timer (for|with) {seconds} second[s]"
"(start|set) [(a|an)] {seconds} second[s] timer" "(start|set) [(a|an)] {seconds} second[s] timer"
]; ];
slots = { slots = {
@ -101,7 +101,7 @@
{ {
sentences = [ sentences = [
"(start|set) [a] timer (for|with) {minutes} minute[s] [and] {seconds} seconde[s]" "(start|set) [a] timer (for|with) {minutes} minute[s] [and] {seconds} second[s]"
]; ];
slots.hours = 0; slots.hours = 0;
} }
@ -191,7 +191,7 @@
{% endif %} {% endif %}
{% if seconds_remaining == 1 and hours_remaining == 0%} {% if seconds_remaining == 1 and hours_remaining == 0%}
1 seconde 1 second
{% endif %} {% endif %}
{% if seconds_remaining > 1 and hours_remaining == 0 %} {% if seconds_remaining > 1 and hours_remaining == 0 %}
@ -289,7 +289,7 @@
{% if (slots.seconds | int(default=0)) == 1 %} {% if (slots.seconds | int(default=0)) == 1 %}
1 second 1 second
{% elif (slots.seconds | int(default=0)) > 1 %} {% elif (slots.seconds | int(default=0)) > 1 %}
{{ (slots.seconds | int)}} secondes {{ (slots.seconds | int)}} seconds
{% endif %}. {% endif %}.
''; '';