core: fixed presence cache error
This commit is contained in:
parent
2555fdf014
commit
ead8ac7ebd
1 changed files with 2 additions and 2 deletions
|
|
@ -711,8 +711,8 @@ class Memory:
|
|||
return {}
|
||||
entities_presence = {}
|
||||
for entity in self.entitiesCache[profile]:
|
||||
# if entity exists, "presence" key must exist
|
||||
entities_presence[entity] = self.entitiesCache[profile][entity]["presence"]
|
||||
if "presence" in self.entitiesCache[profile][entity]:
|
||||
entities_presence[entity] = self.entitiesCache[profile][entity]["presence"]
|
||||
|
||||
debug ("Memory getPresenceStatus (%s)", entities_presence)
|
||||
return entities_presence
|
||||
|
|
|
|||
Loading…
Reference in a new issue