Add T315 fixture, tests for humidity&temperature modules (#802)

This commit is contained in:
Teemu R
2024-03-06 19:04:09 +01:00
committed by GitHub
parent adce92a761
commit 3495bd83df
11 changed files with 613 additions and 22 deletions

View File

@@ -11,7 +11,7 @@ if TYPE_CHECKING:
class TemperatureSensor(SmartModule):
"""Implementation of temperature module."""
REQUIRED_COMPONENT = "humidity"
REQUIRED_COMPONENT = "temperature"
QUERY_GETTER_NAME = "get_comfort_temp_config"
def __init__(self, device: "SmartDevice", module: str):
@@ -53,7 +53,7 @@ class TemperatureSensor(SmartModule):
@property
def temperature_warning(self) -> bool:
"""Return True if humidity is outside of the wanted range."""
"""Return True if temperature is outside of the wanted range."""
return self._device.sys_info["current_temp_exception"] != 0
@property