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 GitHub
parent 053ff33ef9
commit 05288dad51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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