mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 10:28:01 +00:00
Extend dump_devinfo iot queries (#1278)
This commit is contained in:
@@ -213,8 +213,9 @@ class FakeIotTransport(BaseTransport):
|
||||
for target in info:
|
||||
if target != "discovery_result":
|
||||
for cmd in info[target]:
|
||||
# print("initializing tgt %s cmd %s" % (target, cmd))
|
||||
proto[target][cmd] = info[target][cmd]
|
||||
# Use setdefault in case the fixture has modules not yet
|
||||
# part of the baseproto.
|
||||
proto.setdefault(target, {})[cmd] = info[target][cmd]
|
||||
|
||||
# if we have emeter support, we need to add the missing pieces
|
||||
for module in ["emeter", "smartlife.iot.common.emeter"]:
|
||||
|
Reference in New Issue
Block a user