Fix currency presentation and update resilience
Validate / syntax (push) Canceled after 0s

This commit is contained in:
git
2026-09-27 17:56:08 +10:00
parent 264a7dd42f
commit 4dcf2f04c5
5 changed files with 21 additions and 8 deletions
+4 -1
View File
@@ -59,7 +59,10 @@ class UpCoordinator(DataUpdateCoordinator[dict[str, dict[str, Any]]]):
for tx_id, saved in list(self._seen.items()):
if saved["status"] != "HELD":
continue
current = await self.api.transaction(tx_id)
try:
current = await self.api.transaction(tx_id)
except UpApiError as err:
raise UpdateFailed(str(err)) from err
if current is None:
# A held item that no longer exists was deleted by Up.
payload = dict(saved["event"])