mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Initial implementation for modularized smartdevice (#757)
The initial steps to modularize the smartdevice. Modules are initialized based on the component negotiation, and each module can indicate which features it supports and which queries should be run during the update cycle.
This commit is contained in:
@@ -24,9 +24,6 @@ class SmartChildDevice(SmartDevice):
|
||||
self._parent = parent
|
||||
self._id = child_id
|
||||
self.protocol = _ChildProtocolWrapper(child_id, parent.protocol)
|
||||
# TODO: remove the assignment after modularization is done,
|
||||
# currently required to allow accessing time-related properties
|
||||
self._time = parent._time
|
||||
self._device_type = DeviceType.StripSocket
|
||||
|
||||
async def update(self, update_children: bool = True):
|
||||
|
Reference in New Issue
Block a user