-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,6 +238,7 @@ class WheType(Enum): | |
NuosSplit = 4 | ||
Andris2 = 5 | ||
Evo2 = 6 | ||
Lux2 = 7 | ||
Lux = 8 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Lux2 device class for Ariston module.""" | ||
from __future__ import annotations | ||
|
||
import logging | ||
|
||
from .const import EvoDeviceProperties | ||
from .evo_device import AristonEvoDevice | ||
|
||
_LOGGER = logging.getLogger(__name__) | ||
|
||
class AristonLux2Device(AristonEvoDevice): | ||
"""Class representing a physical device, it's state and properties.""" | ||
|
||
def set_water_heater_power_option(self, power_option: bool): | ||
"""Set water heater power option""" | ||
self.api.set_lux_power_option(self.gw, power_option) | ||
self.data[EvoDeviceProperties.PWR_OPT] = power_option | ||
|
||
async def async_set_water_heater_power_option(self, power_option: bool): | ||
"""Async set water heater power option""" | ||
await self.api.async_set_lux_power_option(self.gw, power_option) | ||
self.data[EvoDeviceProperties.PWR_OPT] = power_option |