From b95890e85744cc1c010c82f4137237222ad16c16 Mon Sep 17 00:00:00 2001 From: Geert Meersman Date: Thu, 14 Sep 2023 11:53:20 +0200 Subject: [PATCH] fix: using | instead of () --- custom_components/nexxtmove/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/nexxtmove/client.py b/custom_components/nexxtmove/client.py index c89073c..e620114 100644 --- a/custom_components/nexxtmove/client.py +++ b/custom_components/nexxtmove/client.py @@ -196,7 +196,7 @@ def fetch_data(self): if charge.get("cleared") is False: non_invoiced_charges.append(charge) cost = charge.get("costVat") - if isinstance(cost, (int, float)): + if isinstance(cost, int | float): non_invoiced_amount += cost key = format_entity_name(f"{self.username} non invoiced")