Skip to content

Commit

Permalink
API allow to set "centi"-cent
Browse files Browse the repository at this point in the history
  • Loading branch information
marq24 committed Jan 16, 2025
1 parent edf3ead commit 69100a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/goecharger_api2/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ class ExtSwitchEntityDescription(SwitchEntityDescription, frozen_or_thawed=True)
icon="mdi:timer-outline",
entity_registry_enabled_default=True
),
# awp -> this is in €-CENT! - so also an INT!
# awp -> this is in €-CENT! - but api allow to specify 0.01 cent steps
ExtNumberEntityDescription(
key=Tag.AWP.key,
native_max_value=1000,
native_min_value=-100,
native_step=1,
native_step=0.01,
# mode=NumberMode.SLIDER,
entity_category=EntityCategory.CONFIG,
native_unit_of_measurement=CURRENCY_CENT,
Expand Down

0 comments on commit 69100a8

Please sign in to comment.