mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-13 02:48:07 +00:00
Add device_id property, rename context to child_id (#15)
For regular devices, device_id is the mac address and for child devices it is a combination of the mac address and the child_id.
This commit is contained in:
@@ -79,7 +79,7 @@ class SmartStrip(SmartPlug):
|
||||
SmartPlug(
|
||||
self.host,
|
||||
self.protocol,
|
||||
context=child["id"],
|
||||
child_id=child["id"],
|
||||
cache_ttl=self.cache_ttl.total_seconds(),
|
||||
ioloop=self.ioloop,
|
||||
)
|
||||
|
Reference in New Issue
Block a user