Extend dump_devinfo iot queries (#1278)

This commit is contained in:
Steven B.
2024-11-19 23:36:16 +00:00
committed by GitHub
parent 2683623997
commit bf23f73cce
3 changed files with 101 additions and 10 deletions

View File

@@ -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"]: