mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Add T315 fixture, tests for humidity&temperature modules (#802)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user