From d78e9e6aa8929aab3a5d6c600072f99dac831cd9 Mon Sep 17 00:00:00 2001 From: RoboMagus <68224306+RoboMagus@users.noreply.github.com> Date: Mon, 3 Apr 2023 21:31:11 +0200 Subject: [PATCH] Number step not optional (#4649) * Number step not optional * Update __init__.py * Update __init__.py --------- Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/number/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/esphome/components/number/__init__.py b/esphome/components/number/__init__.py index 7dce625389..f532f4e405 100644 --- a/esphome/components/number/__init__.py +++ b/esphome/components/number/__init__.py @@ -1,4 +1,3 @@ -from typing import Optional import esphome.codegen as cg import esphome.config_validation as cv from esphome import automation @@ -252,9 +251,7 @@ async def register_number( ) -async def new_number( - config, *, min_value: float, max_value: float, step: Optional[float] = None -): +async def new_number(config, *, min_value: float, max_value: float, step: float): var = cg.new_Pvariable(config[CONF_ID]) await register_number( var, config, min_value=min_value, max_value=max_value, step=step