I changed the min and max attributes of an input_number helper from a script but when I want to change the value in the front-end I get an out of range error. The range the script has set is from -0.2 to 1.2 and I changed the slider from 0.5 to 0.3 and I get below error:
The min and max values in the script are floats. The range in the error message is not the range I see and not the range that I have set.Reloading the frond-end does not help.
Maybe I cannot use this, or I should do something extra, as according to states the range is set correctly:
initial: null
editable: true
min: -0.2
max: 1.2
step: 0.05
mode: slider
unit_of_measurement: NOK/kWh
icon: mdi:cash
friendly_name: ChargeBelowPrice
Anyone an idea why this does not work?