diff --git a/sentences/pt/_common.yaml b/sentences/pt/_common.yaml index 54c84530de..f20da36ac9 100644 --- a/sentences/pt/_common.yaml +++ b/sentences/pt/_common.yaml @@ -79,9 +79,9 @@ lists: out: switch cover_states: values: - - in: "(aberto|aberta|abertas)" + - in: "(aberto|aberta|abertos|abertas)" out: "open" - - in: "(fechado|fechada|fechadas)" + - in: "(fechado|fechada|fechados|fechadas)" out: "closed" - in: "a abrir" out: "opening" @@ -91,22 +91,24 @@ lists: values: - in: (toldo[s]|tolde[s]) out: awning - - in: persiana[s] + - in: estore[s] out: blind - in: cortina[s] out: curtain - in: porta[s] out: door - - in: (porta[s] da garagem|portão|portões) + - in: (porta[s]|portão|portões) da garagem out: garage - in: (portão|portões) out: gate - - in: (toldo[s]|tolde[s]) + - in: sombra[s] out: shade - in: persiana[s] out: shutter - in: janela[s] out: window + - in: registo[s] + out: damper lock_states: values: - in: "(trancad[a[s]|o[s]])" diff --git a/sentences/pt/cover_HassGetState.yaml b/sentences/pt/cover_HassGetState.yaml index 100ae2aaaf..bf5cce683f 100644 --- a/sentences/pt/cover_HassGetState.yaml +++ b/sentences/pt/cover_HassGetState.yaml @@ -29,7 +29,7 @@ intents: domain: cover - sentences: - - "quantas {cover_classes:device_class} estão {cover_states:state} []" + - "(quantas|quantos) {cover_classes:device_class} estão {cover_states:state} []" response: how_many slots: domain: cover diff --git a/tests/pt/_fixtures.yaml b/tests/pt/_fixtures.yaml index 484decc364..4353c363bd 100644 --- a/tests/pt/_fixtures.yaml +++ b/tests/pt/_fixtures.yaml @@ -70,6 +70,20 @@ entities: attributes: device_class: curtain + - name: "Estores da Sala de Estar" + id: "cover.sala" + area: "sala_de_estar" + state: "open" + attributes: + device_class: blind + + - name: "Persiana da Cozinha" + id: "cover.cozinha" + area: "cozinha" + state: "closed" + attributes: + device_class: shutter + - name: "Temperatura exterior" id: "sensor.temperatura_exterior" area: "garagem" diff --git a/tests/pt/cover_HassGetState.yaml b/tests/pt/cover_HassGetState.yaml index 9870cb3074..afa39eb85a 100644 --- a/tests/pt/cover_HassGetState.yaml +++ b/tests/pt/cover_HassGetState.yaml @@ -51,3 +51,23 @@ tests: device_class: curtain state: "closed" response: "2" + + - sentences: + - "Quantos estores estão abertos?" + intent: + name: HassGetState + slots: + domain: cover + device_class: blind + state: "open" + response: "1" + + - sentences: + - "Quantas persianas estão fechadas?" + intent: + name: HassGetState + slots: + domain: cover + device_class: shutter + state: "closed" + response: "1"