From e12e5b83324e5e01f713014439926830223bfa62 Mon Sep 17 00:00:00 2001 From: soloam Date: Tue, 21 May 2024 17:37:03 +0100 Subject: [PATCH] fix: empty budget limits --- .../fireflyiii_integration/integrations/fireflyiii.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/fireflyiii_integration/integrations/fireflyiii.py b/custom_components/fireflyiii_integration/integrations/fireflyiii.py index c9702fa..e2ce254 100644 --- a/custom_components/fireflyiii_integration/integrations/fireflyiii.py +++ b/custom_components/fireflyiii_integration/integrations/fireflyiii.py @@ -624,8 +624,8 @@ async def budgets(self, ids=None, currency=None) -> FireflyiiiObjectBaseList: limit_attributes = budget_limit.get("attributes", {}) try: - start_limit = datetime.fromisoformat(limit_attributes.get("start")) - end_limit = datetime.fromisoformat(limit_attributes.get("end")) + start_limit = datetime.fromisoformat(limit_attributes.get("start","")) + end_limit = datetime.fromisoformat(limit_attributes.get("end","")) except (ValueError, TypeError): start_limit = None end_limit = None