mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 02:18:02 +00:00
Enable dynamic hub child creation and deletion on update (#1454)
This commit is contained in:
@@ -109,6 +109,11 @@ class SmartChildDevice(SmartDevice):
|
||||
)
|
||||
self._last_update_time = now
|
||||
|
||||
# We can first initialize the features after the first update.
|
||||
# We make here an assumption that every device has at least a single feature.
|
||||
if not self._features:
|
||||
await self._initialize_features()
|
||||
|
||||
@classmethod
|
||||
async def create(
|
||||
cls,
|
||||
|
Reference in New Issue
Block a user