diff --git a/homeassistant/components/overkiz/number.py b/homeassistant/components/overkiz/number.py index 1861f264daf1..37e805c02aca 100644 --- a/homeassistant/components/overkiz/number.py +++ b/homeassistant/components/overkiz/number.py @@ -103,6 +103,7 @@ NUMBER_DESCRIPTIONS: list[OverkizNumberDescription] = [ command=OverkizCommand.SET_TARGET_DHW_TEMPERATURE, native_min_value=50, native_max_value=65, + native_unit_of_measurement=UnitOfTemperature.CELSIUS, min_value_state_name=OverkizState.CORE_MINIMAL_TEMPERATURE_MANUAL_MODE, max_value_state_name=OverkizState.CORE_MAXIMAL_TEMPERATURE_MANUAL_MODE, entity_category=EntityCategory.CONFIG, @@ -114,6 +115,7 @@ NUMBER_DESCRIPTIONS: list[OverkizNumberDescription] = [ command=OverkizCommand.SET_WATER_TARGET_TEMPERATURE, native_min_value=50, native_max_value=65, + native_unit_of_measurement=UnitOfTemperature.CELSIUS, min_value_state_name=OverkizState.CORE_MINIMAL_TEMPERATURE_MANUAL_MODE, max_value_state_name=OverkizState.CORE_MAXIMAL_TEMPERATURE_MANUAL_MODE, entity_category=EntityCategory.CONFIG, diff --git a/tests/components/overkiz/snapshots/test_number.ambr b/tests/components/overkiz/snapshots/test_number.ambr index 349781147262..9fdeb205b9d2 100644 --- a/tests/components/overkiz/snapshots/test_number.ambr +++ b/tests/components/overkiz/snapshots/test_number.ambr @@ -594,7 +594,7 @@ 'supported_features': 0, 'translation_key': None, 'unique_id': 'io://1234-5678-5643/109286#1-core:TargetDHWTemperatureState', - 'unit_of_measurement': None, + 'unit_of_measurement': , }) # --- # name: test_number_entities_snapshot[cloud_atlantic_cozytouch.json][number.my_home_patio_water_heating_target_temperature-state] @@ -606,6 +606,7 @@ : 50.0, : , : 1.0, + : , }), 'context': , 'entity_id': 'number.my_home_patio_water_heating_target_temperature', @@ -654,7 +655,7 @@ 'supported_features': 0, 'translation_key': None, 'unique_id': 'io://1234-5678-5643/109286#1-core:WaterTargetTemperatureState', - 'unit_of_measurement': None, + 'unit_of_measurement': , }) # --- # name: test_number_entities_snapshot[cloud_atlantic_cozytouch.json][number.my_home_patio_water_heating_water_target_temperature-state] @@ -666,6 +667,7 @@ : 50.0, : , : 1.0, + : , }), 'context': , 'entity_id': 'number.my_home_patio_water_heating_water_target_temperature',