Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Adjust missing operation mode #198

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
STATE_ECO,
STATE_HEAT_PUMP,
STATE_HIGH_DEMAND,
SUPPORT_OPERATION_MODE,
WaterHeaterEntity,
WaterHeaterEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import STATE_OFF, UnitOfTemperature
Expand Down Expand Up @@ -109,7 +109,7 @@ def __init__(self, system: NibeSystem, hwsys: HotWaterSystem):
hwsys.hot_water_charging,
hwsys.hot_water_production,
)
self._attr_supported_features = SUPPORT_OPERATION_MODE
self._attr_supported_features = WaterHeaterEntityFeature.OPERATION_MODE
self._attr_operation_list = list(NIBE_BOOST_TO_OPERATION.values())
self._current_state = STATE_OFF
self._hwsys = hwsys
Expand Down