Allow configuration of min_gradient from UI to be negative in Trend (#107720)

Allow configuration of min_gradient to be negative from UI
This commit is contained in:
Jan-Philipp Benecke
2024-01-10 14:03:02 +01:00
committed by Franck Nijhof
parent 00b899ca3c
commit d89659f196

View File

@@ -67,7 +67,6 @@ async def get_extended_options_schema(handler: SchemaCommonFlowHandler) -> vol.S
CONF_MIN_GRADIENT, default=DEFAULT_MIN_GRADIENT CONF_MIN_GRADIENT, default=DEFAULT_MIN_GRADIENT
): selector.NumberSelector( ): selector.NumberSelector(
selector.NumberSelectorConfig( selector.NumberSelectorConfig(
min=0,
step="any", step="any",
mode=selector.NumberSelectorMode.BOX, mode=selector.NumberSelectorMode.BOX,
), ),