mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-29 13:30:26 -07:00
Docstrings & spacing for refrigerators (#65)
This commit is contained in:
parent
c273a26889
commit
fc169e90e3
@ -6,7 +6,6 @@ from .util import lookup_enum
|
|||||||
|
|
||||||
|
|
||||||
class IcePlus(enum.Enum):
|
class IcePlus(enum.Enum):
|
||||||
|
|
||||||
OFF = "@CP_OFF_EN_W"
|
OFF = "@CP_OFF_EN_W"
|
||||||
ON = "@CP_ON_EN_W"
|
ON = "@CP_ON_EN_W"
|
||||||
ICE_PLUS = "@RE_TERM_ICE_PLUS_W"
|
ICE_PLUS = "@RE_TERM_ICE_PLUS_W"
|
||||||
@ -15,7 +14,6 @@ class IcePlus(enum.Enum):
|
|||||||
|
|
||||||
|
|
||||||
class FreshAirFilter(enum.Enum):
|
class FreshAirFilter(enum.Enum):
|
||||||
|
|
||||||
OFF = "@CP_TERM_OFF_KO_W"
|
OFF = "@CP_TERM_OFF_KO_W"
|
||||||
AUTO = "@RE_STATE_FRESH_AIR_FILTER_MODE_AUTO_W"
|
AUTO = "@RE_STATE_FRESH_AIR_FILTER_MODE_AUTO_W"
|
||||||
POWER = "@RE_STATE_FRESH_AIR_FILTER_MODE_POWER_W"
|
POWER = "@RE_STATE_FRESH_AIR_FILTER_MODE_POWER_W"
|
||||||
@ -27,7 +25,6 @@ class FreshAirFilter(enum.Enum):
|
|||||||
|
|
||||||
|
|
||||||
class SmartSavingMode(enum.Enum):
|
class SmartSavingMode(enum.Enum):
|
||||||
|
|
||||||
OFF = "@CP_TERM_USE_NOT_W"
|
OFF = "@CP_TERM_USE_NOT_W"
|
||||||
NIGHT = "@RE_SMARTSAVING_MODE_NIGHT_W"
|
NIGHT = "@RE_SMARTSAVING_MODE_NIGHT_W"
|
||||||
CUSTOM = "@RE_SMARTSAVING_MODE_CUSTOM_W"
|
CUSTOM = "@RE_SMARTSAVING_MODE_CUSTOM_W"
|
||||||
@ -35,26 +32,22 @@ class SmartSavingMode(enum.Enum):
|
|||||||
|
|
||||||
|
|
||||||
class SmartSavingModeStatus(enum.Enum):
|
class SmartSavingModeStatus(enum.Enum):
|
||||||
|
|
||||||
OFF = "OFF"
|
OFF = "OFF"
|
||||||
ON = "ON"
|
ON = "ON"
|
||||||
EMPTY = ""
|
EMPTY = ""
|
||||||
|
|
||||||
|
|
||||||
class EcoFriendly(enum.Enum):
|
class EcoFriendly(enum.Enum):
|
||||||
|
|
||||||
OFF = "@CP_OFF_EN_W"
|
OFF = "@CP_OFF_EN_W"
|
||||||
ON = "@CP_ON_EN_W"
|
ON = "@CP_ON_EN_W"
|
||||||
|
|
||||||
|
|
||||||
class LockingStatus(enum.Enum):
|
class LockingStatus(enum.Enum):
|
||||||
|
|
||||||
UNLOCK = "UNLOCK"
|
UNLOCK = "UNLOCK"
|
||||||
LOCK = "LOCK"
|
LOCK = "LOCK"
|
||||||
|
|
||||||
|
|
||||||
class DoorOpenState(enum.Enum):
|
class DoorOpenState(enum.Enum):
|
||||||
|
|
||||||
OPEN = "OPEN"
|
OPEN = "OPEN"
|
||||||
CLOSE = "CLOSE"
|
CLOSE = "CLOSE"
|
||||||
EMPTY = ""
|
EMPTY = ""
|
||||||
@ -65,18 +58,14 @@ class RefrigeratorDevice(Device):
|
|||||||
"""A higher-level interface for a refrigerator."""
|
"""A higher-level interface for a refrigerator."""
|
||||||
|
|
||||||
def set_temp_refrigerator_c(self, temp):
|
def set_temp_refrigerator_c(self, temp):
|
||||||
|
"""Set the refrigerator temperature in Celsius.
|
||||||
|
"""
|
||||||
value = self.model.enum_value('TempRefrigerator', str(temp))
|
value = self.model.enum_value('TempRefrigerator', str(temp))
|
||||||
# {
|
|
||||||
# "RETM":"{{TempRefrigerator}}",
|
|
||||||
# "REFT":"{{TempFreezer}}",
|
|
||||||
# "REIP":"{{IcePlus}}",
|
|
||||||
# "REEF":"{{EcoFriendly}}"
|
|
||||||
# }
|
|
||||||
self._set_control('RETM', value)
|
self._set_control('RETM', value)
|
||||||
|
|
||||||
def set_temp_freezer_c(self, temp):
|
def set_temp_freezer_c(self, temp):
|
||||||
|
"""Set the freezer temperature in Celsius.
|
||||||
|
"""
|
||||||
value = self.model.enum_value('TempFreezer', str(temp))
|
value = self.model.enum_value('TempFreezer', str(temp))
|
||||||
self._set_control('REFT', value)
|
self._set_control('REFT', value)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user