From cfb7cec88fea2c4ed0c81fea4b19ed2bd88c2e88 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 9 Mar 2023 19:02:02 +0000 Subject: [PATCH] Fix doubled balances --- core/clients/aggregators/nordigen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/clients/aggregators/nordigen.py b/core/clients/aggregators/nordigen.py index 0f03dfa..f1a1a86 100644 --- a/core/clients/aggregators/nordigen.py +++ b/core/clients/aggregators/nordigen.py @@ -190,6 +190,8 @@ class NordigenClient(BaseClient, AggregatorClient): if currency: if not currency == entry["balanceAmount"]["currency"]: return (False, False) + if not entry["balanceType"] == "interimAvailable": + continue total += float(entry["balanceAmount"]["amount"]) currency = entry["balanceAmount"]["currency"] return (currency, total)