Skip to content

Commit

Permalink
Merge pull request #92 from thomasddn/fix/units
Browse files Browse the repository at this point in the history
Fix/units
  • Loading branch information
leeyuentuen authored Jan 12, 2024
2 parents 6460176 + 47dd1ad commit 774042a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ data:

> After reverse engineering the API myself I found out that there is already a Python libary wrapping the Alfen API.
> https://gitlab.com/LordGaav/alfen-eve/-/tree/develop/alfeneve
>
> https://github.com/leeyuentuen/alfen_wallbox/wiki/API-paramID
## Installation

Expand Down
8 changes: 4 additions & 4 deletions custom_components/alfen_wallbox/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi
native_max_value=30,
native_step=1,
custom_mode=None,
unit_of_measurement=UnitOfElectricCurrent.AMPERE,
unit_of_measurement=UnitOfTime.SECONDS,
api_param="21B9_0",
round_digits=None,
),
Expand Down Expand Up @@ -381,7 +381,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi
native_max_value=30,
native_step=1,
custom_mode=None,
unit_of_measurement=CURRENCY_EURO,
unit_of_measurement=UnitOfTime.SECONDS,
api_param="2136_0",
round_digits=None
),
Expand All @@ -397,7 +397,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi
native_max_value=30,
native_step=1,
custom_mode=None,
unit_of_measurement=CURRENCY_EURO,
unit_of_measurement=UnitOfTime.SECONDS,
api_param="2184_0",
round_digits=None
),
Expand All @@ -413,7 +413,7 @@ class AlfenNumberDescription(NumberEntityDescription, AlfenNumberDescriptionMixi
native_max_value=30,
native_step=1,
custom_mode=None,
unit_of_measurement=CURRENCY_EURO,
unit_of_measurement=UnitOfTime.SECONDS,
api_param="2168_0",
round_digits=None
),
Expand Down

0 comments on commit 774042a

Please sign in to comment.