JaccoR / hass-entso-e

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform
Apache License 2.0
173 stars 28 forks source link

VAT tariff, unable to enter a single digit % #48

Open TsaneTips opened 1 year ago

TsaneTips commented 1 year ago

I re-added the new version and want to opt for the added VAT tariff. For Belgium this is marked as the standard 21%, but as already mentioned it is temporarily lowered to 6%.

When changing the tariff form 0.21 to 0.06 it seems impossible to enter the 0.06 value. When entering a 0 behind the decimal (0.0), the decimal disappears and just takes the 6 as the vat-value (600%)

Workaround is to enter 0.21, change to 0.26 and then change to 0.06, but there must be another solution :D

JaccoR commented 1 year ago

I see, that's annoying. It seems to be the way HA handles float values. I'll have to find a workaround i guess. (asking for a string and converting that to floats maybe?)

ikke-zelf commented 1 year ago

for the time being I succeeded in entering a 9% tarief in the following way: enter: 9009 move cursor between zero and zero and enter a dot . => 90.09 move cursor between 9 and zero and press

that's it for me.