From d671d7fc1fce4f6c41222dd66fb04ce59a543a41 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 16 Mar 2023 19:13:42 -1000 Subject: [PATCH] Add native_step to baf (#89780) --- homeassistant/components/baf/number.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/baf/number.py b/homeassistant/components/baf/number.py index ca4b591cf9e..91fe110d388 100644 --- a/homeassistant/components/baf/number.py +++ b/homeassistant/components/baf/number.py @@ -39,6 +39,7 @@ AUTO_COMFORT_NUMBER_DESCRIPTIONS = ( BAFNumberDescription( key="comfort_min_speed", name="Auto Comfort Minimum Speed", + native_step=1, native_min_value=0, native_max_value=SPEED_RANGE[1] - 1, entity_category=EntityCategory.CONFIG, @@ -48,6 +49,7 @@ AUTO_COMFORT_NUMBER_DESCRIPTIONS = ( BAFNumberDescription( key="comfort_max_speed", name="Auto Comfort Maximum Speed", + native_step=1, native_min_value=1, native_max_value=SPEED_RANGE[1], entity_category=EntityCategory.CONFIG, @@ -57,6 +59,7 @@ AUTO_COMFORT_NUMBER_DESCRIPTIONS = ( BAFNumberDescription( key="comfort_heat_assist_speed", name="Auto Comfort Heat Assist Speed", + native_step=1, native_min_value=SPEED_RANGE[0], native_max_value=SPEED_RANGE[1], entity_category=EntityCategory.CONFIG, @@ -69,6 +72,7 @@ FAN_NUMBER_DESCRIPTIONS = ( BAFNumberDescription( key="return_to_auto_timeout", name="Return to Auto Timeout", + native_step=1, native_min_value=ONE_MIN_SECS, native_max_value=HALF_DAY_SECS, entity_category=EntityCategory.CONFIG, @@ -79,6 +83,7 @@ FAN_NUMBER_DESCRIPTIONS = ( BAFNumberDescription( key="motion_sense_timeout", name="Motion Sense Timeout", + native_step=1, native_min_value=ONE_MIN_SECS, native_max_value=ONE_DAY_SECS, entity_category=EntityCategory.CONFIG, @@ -92,6 +97,7 @@ LIGHT_NUMBER_DESCRIPTIONS = ( BAFNumberDescription( key="light_return_to_auto_timeout", name="Light Return to Auto Timeout", + native_step=1, native_min_value=ONE_MIN_SECS, native_max_value=HALF_DAY_SECS, entity_category=EntityCategory.CONFIG, @@ -102,6 +108,7 @@ LIGHT_NUMBER_DESCRIPTIONS = ( BAFNumberDescription( key="light_auto_motion_timeout", name="Light Motion Sense Timeout", + native_step=1, native_min_value=ONE_MIN_SECS, native_max_value=ONE_DAY_SECS, entity_category=EntityCategory.CONFIG,