diff --git a/configurations/homie/modules/home-assistant/assist.nix b/configurations/homie/modules/home-assistant/assist.nix index 83db6fa9..e30c9c3b 100644 --- a/configurations/homie/modules/home-assistant/assist.nix +++ b/configurations/homie/modules/home-assistant/assist.nix @@ -18,6 +18,7 @@ nativeBuildInputs = o.nativeBuildInputs ++ [pkgs.findutils]; postPatch = '' find ./. -name "*Timer*" -delete + find ./. -name "*Start*" -delete ''; }); }; diff --git a/configurations/homie/modules/home-assistant/timer/sentences.nix b/configurations/homie/modules/home-assistant/timer/sentences.nix index b9d06a04..ce95bcbd 100644 --- a/configurations/homie/modules/home-assistant/timer/sentences.nix +++ b/configurations/homie/modules/home-assistant/timer/sentences.nix @@ -62,7 +62,7 @@ TimerStart.data = [ { 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 = [ - "(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" ]; slots = { @@ -101,7 +101,7 @@ { 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; } @@ -191,7 +191,7 @@ {% endif %} {% if seconds_remaining == 1 and hours_remaining == 0%} - 1 seconde + 1 second {% endif %} {% if seconds_remaining > 1 and hours_remaining == 0 %} @@ -289,7 +289,7 @@ {% if (slots.seconds | int(default=0)) == 1 %} 1 second {% elif (slots.seconds | int(default=0)) > 1 %} - {{ (slots.seconds | int)}} secondes + {{ (slots.seconds | int)}} seconds {% endif %}. '';