From 6e0be2ea1f10854580ceb2f0c035d11335cf2bf0 Mon Sep 17 00:00:00 2001 From: "Steven B." <51370195+sdb9696@users.noreply.github.com> Date: Sat, 4 Jan 2025 13:20:06 +0000 Subject: [PATCH] Add support for Tapo hub-attached switch devices (#1421) Required for #1419 and #1418 --- kasa/smart/smartchilddevice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kasa/smart/smartchilddevice.py b/kasa/smart/smartchilddevice.py index 2ef0454f..5ed7feb6 100644 --- a/kasa/smart/smartchilddevice.py +++ b/kasa/smart/smartchilddevice.py @@ -24,6 +24,7 @@ class SmartChildDevice(SmartDevice): CHILD_DEVICE_TYPE_MAP = { "plug.powerstrip.sub-plug": DeviceType.Plug, + "subg.plugswitch.switch": DeviceType.WallSwitch, "subg.trigger.contact-sensor": DeviceType.Sensor, "subg.trigger.temp-hmdt-sensor": DeviceType.Sensor, "subg.trigger.water-leak-sensor": DeviceType.Sensor,