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

Fix version, that sometimes isn't a string, Python voodoo

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1571 b32b6428-25c9-4566-ad07-03861ab6144f
parent 6b971c3d
Branches
No related tags found
No related merge requests found
......@@ -99,6 +99,18 @@ class Device(object):
raise DeviceError("The devtype %s is not valid" % value)
self.__devtype = value
@property
def version(self):
return self.__version
@version.setter
def version(self, value):
# version must be a string
if value:
self.__version = "%s" % value
else:
self.__version = value
@property
def address(self):
return self.__address
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment