From 69100a8f10cd071e83b2c1d93824620d5b5408e3 Mon Sep 17 00:00:00 2001 From: marq24 Date: Thu, 16 Jan 2025 14:46:45 +0100 Subject: [PATCH] API allow to set "centi"-cent --- custom_components/goecharger_api2/const.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/goecharger_api2/const.py b/custom_components/goecharger_api2/const.py index 9953bfc..7a16549 100644 --- a/custom_components/goecharger_api2/const.py +++ b/custom_components/goecharger_api2/const.py @@ -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,