Skip to content

Commit

Permalink
Make COUNTRIES_TO_CONTINENTS public (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored Jan 16, 2024
1 parent b985aca commit 658c679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deebot_client/util/continents.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

def get_continent(country: str) -> str:
"""Return the continent for the given country or ww."""
return _COUNTRIES_TO_CONTINENTS.get(country, "WW")
return COUNTRIES_TO_CONTINENTS.get(country, "WW")


# Co pied from https://github.com/mrbungle64/ecovacs-deebot.js/blob/master/countries.json on 11.01.2024
_COUNTRIES_TO_CONTINENTS = {
# Copied from https://github.com/mrbungle64/ecovacs-deebot.js/blob/master/countries.json on 11.01.2024
COUNTRIES_TO_CONTINENTS = {
"AD": "EU",
"AE": "AS",
"AF": "AS",
Expand Down

0 comments on commit 658c679

Please sign in to comment.