Skip to content
Snippets Groups Projects
Commit 6979b994 authored by jkerdreu's avatar jkerdreu
Browse files

Cleanup

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2167 b32b6428-25c9-4566-ad07-03861ab6144f
parent 09ebfa88
No related branches found
No related tags found
No related merge requests found
......@@ -68,10 +68,7 @@ class Device:
self.next_alive = self.last_alive + value
def get_kv(self,key):
try:
return self.db[key]
except KeyError:
return None
return self.db.get(key,None)
def dump(self):
print("*** %s %s **" % (self.address,self.devtype))
......@@ -218,6 +215,8 @@ class Monitor:
r = dev.update_attributes(msg.body)
if r:
self.notify(Notification.attribute_change,dev)
else:
logger.warning("FAKE UPDATE")
elif msg.is_get_description_reply():
dev.update_description(msg.body)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment