Skip to content

Commit

Permalink
fix: fix reference to incorrect key
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFoodPixels committed Mar 20, 2024
1 parent b180896 commit c687f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/robovac/countries.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def get_region_by_phone_code(phone_code):


def get_phone_code_by_region(region):
country = next((item for item in COUNTRIES if item["region"] == region), None)
country = next((item for item in COUNTRIES if item["tuya_region"] == region), None)

if country is None:
return "44"
Expand Down

0 comments on commit c687f11

Please sign in to comment.