Skip to content

Commit

Permalink
[PT] Fix cover device_class translations
Browse files Browse the repository at this point in the history
  • Loading branch information
abmantis committed Mar 23, 2024
1 parent de90048 commit 100cb48
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 19 deletions.
10 changes: 6 additions & 4 deletions sentences/pt/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]|estore[s])
- in: persiana[s]
out: shutter
- in: janela[s]
out: window
- in: registo[s]
out: damper
lock_states:
values:
- in: "(trancad[a[s]|o[s]])"
Expand Down
19 changes: 13 additions & 6 deletions tests/pt/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,26 @@ entities:
attributes:
device_class: curtain

- name: "Cortina Quarto"
id: "cover.quarto_cortina"
area: "quarto"
state: "closed"
attributes:
device_class: curtain

- name: "Estores da Sala de Estar"
id: "shutter.sala"
id: "cover.sala"
area: "sala_de_estar"
state: "open"
attributes:
device_class: shutter
device_class: blind

- name: "Cortina Quarto"
id: "cover.quarto_cortina"
area: "quarto"
- name: "Persiana da Cozinha"
id: "cover.cozinha"
area: "cozinha"
state: "closed"
attributes:
device_class: curtain
device_class: shutter

- name: "Temperatura exterior"
id: "sensor.temperatura_exterior"
Expand Down
28 changes: 19 additions & 9 deletions tests/pt/cover_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,22 @@ tests:
state: "closed"
response: "2"

# - sentences:
# - "Quantos estores estão abertos?"
# intent:
# name: HassGetState
# slots:
# domain: cover
# device_class: shutter
# state: "open"
# response: "1"
- 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"

0 comments on commit 100cb48

Please sign in to comment.