mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add common Thermostat module (#977)
This commit is contained in:
@@ -24,6 +24,7 @@ from .modules import (
|
||||
DeviceModule,
|
||||
Firmware,
|
||||
Light,
|
||||
Thermostat,
|
||||
Time,
|
||||
)
|
||||
from .smartmodule import SmartModule
|
||||
@@ -361,6 +362,11 @@ class SmartDevice(Device):
|
||||
or Module.ColorTemperature in self._modules
|
||||
):
|
||||
self._modules[Light.__name__] = Light(self, "light")
|
||||
if (
|
||||
Module.TemperatureControl in self._modules
|
||||
and Module.TemperatureSensor in self._modules
|
||||
):
|
||||
self._modules[Thermostat.__name__] = Thermostat(self, "thermostat")
|
||||
|
||||
async def _initialize_features(self) -> None:
|
||||
"""Initialize device features."""
|
||||
|
Reference in New Issue
Block a user