1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Allow step size any for number selector in slider mode (#105978)

This commit is contained in:
Erik Montnemery
2023-12-18 15:30:59 +01:00
committed by GitHub
parent b671de8942
commit 2515e520c1
2 changed files with 1 additions and 9 deletions

View File

@@ -951,9 +951,6 @@ def validate_slider(data: Any) -> Any:
if "min" not in data or "max" not in data:
raise vol.Invalid("min and max are required in slider mode")
if "step" in data and data["step"] == "any":
raise vol.Invalid("step 'any' is not allowed in slider mode")
return data