mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-11 01:48:03 +00:00
Enable dynamic hub child creation and deletion on update (#1454)
This commit is contained in:
@@ -19,7 +19,10 @@ class ChildDevice(SmartCamModule):
|
||||
|
||||
Default implementation uses the raw query getter w/o parameters.
|
||||
"""
|
||||
return {self.QUERY_GETTER_NAME: {"childControl": {"start_index": 0}}}
|
||||
q = {self.QUERY_GETTER_NAME: {"childControl": {"start_index": 0}}}
|
||||
if self._device.device_type is DeviceType.Hub:
|
||||
q["getChildDeviceComponentList"] = {"childControl": {"start_index": 0}}
|
||||
return q
|
||||
|
||||
async def _check_supported(self) -> bool:
|
||||
"""Additional check to see if the module is supported by the device."""
|
||||
|
Reference in New Issue
Block a user