Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
elcajon authored Aug 19, 2024
2 parents 16f4ab0 + d38a005 commit ea29535
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/midea_ac_lan/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
"name": "Filter3 Lebensdauer Level"
},
"in_tds": {
"name": "In TDS"
"name": "TDS-Wert rein"
},
"out_tds": {
"name": "Out TDS"
"name": "TDS-Wert raus"
},
"water_consumption": {
"name": "Wasserverbrauch"
Expand Down
8 changes: 8 additions & 0 deletions custom_components/midea_ac_lan/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from midealocal.devices.c3 import MideaC3Device
from midealocal.devices.cd import DeviceAttributes as CDAttributes
from midealocal.devices.cd import MideaCDDevice
from midealocal.devices.e2 import DeviceAttributes as E2Attributes
from midealocal.devices.e2 import MideaE2Device
from midealocal.devices.e3 import MideaE3Device
from midealocal.devices.e6 import DeviceAttributes as E6Attributes
Expand Down Expand Up @@ -214,6 +215,13 @@ def __init__(self, device: MideaE2Device, entity_key: str) -> None:
"""Midea E2 Water Heater entity init."""
super().__init__(device, entity_key)

@property
def current_operation(self) -> str:
"""Midea E2 Water Heater current operation."""
return str(
STATE_ON if self._device.get_attribute(E2Attributes.power) else STATE_OFF,
)

@property
def min_temp(self) -> float:
"""Midea E2 Water Heater min temperature."""
Expand Down

0 comments on commit ea29535

Please sign in to comment.