Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Sep 10, 2024
1 parent 7831ffd commit 1af0a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sfrbox_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def _empty_to_none(
v: Union[float, int, str, None]
) -> Optional[Union[float, int, str, None]]:
) -> Union[float, int, str, None]:
return None if v == "" else v


Expand Down Expand Up @@ -135,7 +135,7 @@ class SystemInfo:
"""Tension de l'alimentation exprimé en mV.
(firmware >= 3.5.0)"""
temperature: Optional[Union[float, int]] = None
temperature: Union[float, int, None] = None
"""Température de la BOX exprimé en m°C.
(firmware >= 3.5.0)
Expand Down

0 comments on commit 1af0a0c

Please sign in to comment.