mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-11-06 20:07:20 +00:00
Add KE100 EU/UK 2.6.0 fixtures and capture support (#1812)
This commit is contained in:
@@ -878,6 +878,13 @@ def scrub_child_device_ids(
|
||||
_LOGGER.error(
|
||||
"Cannot find device id in child get device info: %s", child_id
|
||||
)
|
||||
# Thermostats can reference another child as their temperature source
|
||||
if (correction := response.get("get_temperature_correction")) and (
|
||||
sensor_id := correction.get("temp_sensor_device_id")
|
||||
):
|
||||
correction["temp_sensor_device_id"] = scrubbed_child_id_map.get(
|
||||
sensor_id, "SCRUBBED_DEVICE_ID"
|
||||
)
|
||||
|
||||
# Scrub the device ids in the parent for smart protocol
|
||||
if gc := main_response.get("get_child_device_component_list"):
|
||||
|
||||
@@ -426,6 +426,17 @@ COMPONENT_REQUESTS = {
|
||||
)
|
||||
],
|
||||
"temp_humidity_record": [SmartRequest.get_raw_request("get_temp_humidity_records")],
|
||||
"temp_record": [SmartRequest.get_raw_request("get_temperature_records")],
|
||||
"temperature_correction": [
|
||||
SmartRequest.get_raw_request("get_temperature_correction")
|
||||
],
|
||||
"smart_control_schedule": [
|
||||
SmartRequest.get_raw_request("get_sc_schedule_info"),
|
||||
SmartRequest.get_raw_request(
|
||||
"get_sc_schedule_rules",
|
||||
SmartRequest.GetScheduleRulesParams(schedule_mode="everyday"),
|
||||
),
|
||||
],
|
||||
"double_click": [SmartRequest.get_raw_request("get_double_click_info")],
|
||||
"child_device": [
|
||||
SmartRequest.get_raw_request("get_child_device_list"),
|
||||
|
||||
Reference in New Issue
Block a user