Skip to content
Snippets Groups Projects
Commit 92a353f4 authored by jkerdreu's avatar jkerdreu
Browse files

Fix bug causing refresh

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2146 b32b6428-25c9-4566-ad07-03861ab6144f
parent 9409f623
No related branches found
No related tags found
No related merge requests found
......@@ -34,11 +34,11 @@ class Device:
def update_attributes(self, data):
""" rude update attributes. Return true if updated"""
self.refresh_attributes = now()
# really no the best comparaison, but we just need a flag
if self.attributes == data:
return False
self.attributes.update(data)
self.refresh_attributes = now()
return True
def update_description(self, data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment