Allow negative calibration factor in mold_indicator (#127133)

This commit is contained in:
G Johansson 2024-09-30 20:50:32 +02:00 committed by Franck Nijhof
parent abd351e326
commit 1ce2b18aaf
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -44,7 +44,7 @@ async def validate_duplicate(
DATA_SCHEMA_OPTIONS = vol.Schema( DATA_SCHEMA_OPTIONS = vol.Schema(
{ {
vol.Required(CONF_CALIBRATION_FACTOR): NumberSelector( vol.Required(CONF_CALIBRATION_FACTOR): NumberSelector(
NumberSelectorConfig(min=0, step="any", mode=NumberSelectorMode.BOX) NumberSelectorConfig(step=0.1, mode=NumberSelectorMode.BOX)
) )
} }
) )