Skip to content

Commit

Permalink
Add wet road condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed May 17, 2024
1 parent 7216531 commit 9870fc2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions custom_components/gismeteo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ def road_condition(self, src=None) -> str | None:
"Нет данных": None,
"Сухая дорога": "dry",
"Вода": "water",
"Влажная дорога": "wet",
}
try:
return rcs[rc]
Expand Down
6 changes: 4 additions & 2 deletions custom_components/gismeteo/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"state": {
"none": "No data",
"dry": "Dry",
"water": "Water"
"water": "Water",
"wet": "Wet"
}
},
"condition_forecast": {
Expand Down Expand Up @@ -190,7 +191,8 @@
"state": {
"none": "No data",
"dry": "Dry",
"water": "Water"
"water": "Water",
"wet": "Wet"
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions custom_components/gismeteo/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"state": {
"none": "Нет данных",
"dry": "Сухие",
"water": "Вода"
"water": "Вода",
"wet": "Влажные"
}
},
"condition_forecast": {
Expand Down Expand Up @@ -190,7 +191,8 @@
"state": {
"none": "Нет данных",
"dry": "Сухие",
"water": "Вода"
"water": "Вода",
"wet": "Влажные"
}
}
}
Expand Down

0 comments on commit 9870fc2

Please sign in to comment.