diff --git a/homeassistant/components/vicare/number.py b/homeassistant/components/vicare/number.py index c0564170274..25ecf414ffa 100644 --- a/homeassistant/components/vicare/number.py +++ b/homeassistant/components/vicare/number.py @@ -63,9 +63,20 @@ DEVICE_ENTITY_DESCRIPTIONS: tuple[ViCareNumberEntityDescription, ...] = ( native_max_value=60, native_step=1, ), + ViCareNumberEntityDescription( + key="dhw_hysteresis", + translation_key="dhw_hysteresis", + entity_category=EntityCategory.CONFIG, + device_class=NumberDeviceClass.TEMPERATURE, + native_unit_of_measurement=UnitOfTemperature.KELVIN, + value_getter=lambda api: api.getDomesticHotWaterHysteresis(), + value_setter=lambda api, value: api.setDomesticHotWaterHysteresis(value), + min_value_getter=lambda api: api.getDomesticHotWaterHysteresisMin(), + max_value_getter=lambda api: api.getDomesticHotWaterHysteresisMax(), + stepping_getter=lambda api: api.getDomesticHotWaterHysteresisStepping(), + ), ) - CIRCUIT_ENTITY_DESCRIPTIONS: tuple[ViCareNumberEntityDescription, ...] = ( ViCareNumberEntityDescription( key="heating curve shift", diff --git a/homeassistant/components/vicare/strings.json b/homeassistant/components/vicare/strings.json index 0452a560cb8..d8a657424bf 100644 --- a/homeassistant/components/vicare/strings.json +++ b/homeassistant/components/vicare/strings.json @@ -107,6 +107,9 @@ }, "dhw_secondary_temperature": { "name": "DHW secondary temperature" + }, + "dhw_hysteresis": { + "name": "DHW hysteresis" } }, "sensor": {