Skip to content

Commit

Permalink
LydosHybrid: add anti cooling temperature (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
fustom authored Feb 5, 2024
1 parent c3e3ac6 commit e9215d6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/ariston/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,19 @@ class AristonSelectEntityDescription(
value: entity.device.async_set_water_heater_number_of_showers(int(value)),
whe_types=[WheType.Evo],
),
AristonNumberEntityDescription(
key=SeDeviceSettings.SE_ANTI_COOLING_TEMPERATURE,
name=f"{NAME} anti cooling temperature",
icon="mdi:shower-head",
entity_category=EntityCategory.CONFIG,
get_native_min_value=lambda entity: entity.device.anti_cooling_temperature_minimum,
get_native_max_value=lambda entity: entity.device.anti_cooling_temperature_maximum,
native_step=1,
get_native_value=lambda entity: entity.device.anti_cooling_temperature_value,
set_native_value=lambda entity,
value: entity.device.async_set_cooling_temperature_value(int(value)),
whe_types=[WheType.LydosHybrid],
),
)

ARISTON_SELECT_TYPES: list[AristonSelectEntityDescription] = (
Expand Down

0 comments on commit e9215d6

Please sign in to comment.