mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-11-07 12:27:19 +00:00
Add TemperatureRecords module (#1814)
Adds the temp_record module, exposing thermostat temperature history oldest first, converting missing readings to None, and refreshing every 15 minutes. Includes registration, exports, its missing-fixture fallback, and module tests.
This commit is contained in:
@@ -96,6 +96,10 @@ class FakeSmartTransport(BaseTransport):
|
||||
return self._credentials.username + self._credentials.password + "hash"
|
||||
|
||||
FIXTURE_MISSING_MAP = {
|
||||
"get_temperature_records": (
|
||||
"temp_record",
|
||||
{"temp_data": [-1000] * 88 + [253, 254, 256, 255, 252, 249, 247, 245]},
|
||||
),
|
||||
"get_wireless_scan_info": ("wireless", {"ap_list": [], "wep_supported": False}),
|
||||
"get_auto_off_config": ("auto_off", {"delay_min": 10, "enable": False}),
|
||||
"get_led_info": (
|
||||
|
||||
Reference in New Issue
Block a user