Skip to content

Commit

Permalink
Prevent blocking call in translit
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Aug 27, 2024
1 parent 5017d89 commit 178c3fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions custom_components/nova_poshta/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import httpx
from novaposhta.client import NovaPoshtaApi, InvalidAPIKeyError, APIRequestError
from transliterate import translit
from translitua import translit, UkrainianSimple

from .const import (
API_KEY,
Expand Down Expand Up @@ -94,8 +94,7 @@ def warehouses(self) -> list[dict]:
x["SettlmentAddressData"][
"RecipientSettlementDescription"
],
"uk",
reversed=True,
UkrainianSimple,
).replace("Kyyiv", "Kyiv"),
}.items()
),
Expand Down
2 changes: 1 addition & 1 deletion custom_components/nova_poshta/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"integration_type": "service",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/krasnoukhov/homeassistant-nova-poshta/issues",
"requirements": ["stringcase>=1.2.0", "transliterate==1.10.2", "novaposhta-python-client==0.1.3"],
"requirements": ["stringcase>=1.2.0", "translitua==1.3.2", "novaposhta-python-client==0.1.3"],
"version": "1.1.0"
}

0 comments on commit 178c3fa

Please sign in to comment.