Skip to content

Commit 69100a8

Browse files
author
marq24
committed
API allow to set "centi"-cent
1 parent edf3ead commit 69100a8

File tree

1 file changed

+2
-2
lines changed
  • custom_components/goecharger_api2

1 file changed

+2
-2
lines changed

custom_components/goecharger_api2/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ class ExtSwitchEntityDescription(SwitchEntityDescription, frozen_or_thawed=True)
257257
icon="mdi:timer-outline",
258258
entity_registry_enabled_default=True
259259
),
260-
# awp -> this is in €-CENT! - so also an INT!
260+
# awp -> this is in €-CENT! - but api allow to specify 0.01 cent steps
261261
ExtNumberEntityDescription(
262262
key=Tag.AWP.key,
263263
native_max_value=1000,
264264
native_min_value=-100,
265-
native_step=1,
265+
native_step=0.01,
266266
# mode=NumberMode.SLIDER,
267267
entity_category=EntityCategory.CONFIG,
268268
native_unit_of_measurement=CURRENCY_CENT,

0 commit comments

Comments
 (0)