Commit d08e7556 authored by 方开's avatar 方开 🍔
Browse files

修复一些bug

parent c9ed5344
......@@ -33,10 +33,10 @@ class GetCmds(object):
return self.houseData[types]
# 通过子模块编号来获取子模块的所有命令
def getCmdsBySubId(self, subId, types=None):
def getCmdsBySubId(self, subId,types=None):
# 对于通风状态区别开来
cmds = self.houseData["cmds"]
if types == "wind" and self.houseData["wind"] != 0:
if types == "wind" and len(self.houseData["wind"]) != 0:
for subData in cmds:
if subId in subData:
windStatusCmd = subData[subId][0].get("status")
......@@ -68,7 +68,7 @@ class GetCmds(object):
if subId in subData.keys():
return subData
else:
return None
pass
def getExterCmd(self):
exterCmd = specialCmdData.get("extertemphumi")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment