mirror of https://github.com/nymea/nymea.git
some minor fixes
parent
240c5e36d6
commit
b0202e928a
|
|
@ -326,7 +326,8 @@
|
|||
"ruleId": "Uuid"
|
||||
},
|
||||
"returns": {
|
||||
"rule": "$ref:Rule"
|
||||
"o:rule": "$ref:Rule",
|
||||
"ruleError": "$ref:RuleError"
|
||||
}
|
||||
},
|
||||
"Rules.GetRules": {
|
||||
|
|
|
|||
|
|
@ -809,6 +809,7 @@ def list_logEntries():
|
|||
value = "inactive"
|
||||
|
||||
if entry['source'] == "LoggingSourceStates":
|
||||
print "have state change"
|
||||
typeId = entry['typeId']
|
||||
sourceType = "State Changed"
|
||||
symbolString = "->"
|
||||
|
|
@ -828,9 +829,10 @@ def list_logEntries():
|
|||
device = get_device(entry['deviceId'])
|
||||
if device is not None:
|
||||
deviceName = device['name']
|
||||
deviceIdCache[entry['deviceId']] = deviceName
|
||||
else:
|
||||
deviceName = typeId
|
||||
deviceName = entry['deviceId']
|
||||
deviceIdCache[entry['deviceId']] = deviceName
|
||||
print "added entryp to devicechace 1", deviceName, entry['deviceId']
|
||||
|
||||
|
||||
if entry['source'] == "LoggingSourceActions":
|
||||
|
|
@ -856,6 +858,7 @@ def list_logEntries():
|
|||
else:
|
||||
deviceName = entry['deviceId']
|
||||
deviceIdCache[entry['deviceId']] = deviceName
|
||||
print "added entryp to devicechace 2", deviceName
|
||||
|
||||
if entry['source'] == "LoggingSourceEvents":
|
||||
typeId = entry['typeId']
|
||||
|
|
@ -869,14 +872,16 @@ def list_logEntries():
|
|||
eventTypeIdCache[typeId] = sourceName
|
||||
value = entry['value']
|
||||
if entry['deviceId'] in deviceIdCache:
|
||||
print "entry is in devicecache"
|
||||
deviceName = deviceIdCache[entry['deviceId']]
|
||||
else:
|
||||
device = get_device(entry['deviceId'])
|
||||
if device is not None:
|
||||
deviceName = device['name']
|
||||
else:
|
||||
devieName = entry['deviceId']
|
||||
deviceName = entry['deviceId']
|
||||
deviceIdCache[entry['deviceId']] = deviceName
|
||||
print "added entryp to devicechace 3", deviceName
|
||||
|
||||
|
||||
if entry['source'] == "LoggingSourceRules":
|
||||
|
|
|
|||
Loading…
Reference in New Issue