Skip to content

Commit

Permalink
[NL] Fix HassGetWeather (#2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFes authored Jan 22, 2025
1 parent edda21e commit e0fbbbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
20 changes: 1 addition & 19 deletions responses/nl/HassGetWeather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,4 @@ responses:
intents:
HassGetWeather:
default: >
{% set weather_condition = {
'clear': 'en helder',
'clear-night': 'en helder',
'cloudy': 'en bewolkt',
'exceptional': 'en extreem',
'fog': 'met mist',
'hail': 'met hagel',
'lightning': 'met onweer',
'lightning-rainy': 'met onweer en regen',
'partlycloudy': 'en gedeeltelijk bewolkt',
'pouring': 'met stortregen',
'rainy': 'met regen',
'snowy': 'met sneeuw',
'snowy-rainy': 'met sneeuw en regen',
'sunny': 'en zonnig',
'windy': 'met wind',
'windy-variant': 'met wind en bewolking'
} %}
{{ state.attributes.get('temperature') }} graden {{ weather_condition.get((state.state | string).lower(), "") }}
{{ state.attributes.get('temperature') }} graden en {{ state.state | lower }}
4 changes: 2 additions & 2 deletions tests/nl/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -746,14 +746,14 @@ entities:

- name: "Tilburg"
id: "weather.tilburg"
state: "sunny"
state: "Zonnig"
attributes:
temperature: "20"
temperature_unit: "°C"

- name: "Amsterdam"
id: "weather.london"
state: "rainy"
state: "Regenachtig"
attributes:
temperature: "12"
temperature_unit: "°C"
Expand Down
2 changes: 1 addition & 1 deletion tests/nl/weather_HassGetWeather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ tests:
name: HassGetWeather
slots:
name: Amsterdam
response: 12 graden met regen
response: 12 graden en regenachtig

0 comments on commit e0fbbbf

Please sign in to comment.