Skip to content

Commit

Permalink
fix: using | instead of ()
Browse files Browse the repository at this point in the history
  • Loading branch information
geertmeersman committed Sep 14, 2023
1 parent 6ee52ea commit b95890e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nexxtmove/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b95890e

Please sign in to comment.