fix: fix reference to incorrect key

This commit is contained in:
Luke Bonaccorsi 2024-03-20 01:17:01 +00:00
parent b180896a9c
commit c687f111eb
1 changed files with 1 additions and 1 deletions

View File

@ -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"