summaryrefslogtreecommitdiff
path: root/ebus/__init__.py
diff options
context:
space:
mode:
authorYves <yvesf-git@xapek.org>2010-06-27 20:25:50 +0200
committerYves <yvesf-git@xapek.org>2010-06-27 20:25:50 +0200
commit7a57ef77a3093f480ab414400d44d546f283d81c (patch)
treebd1a42cf3b4366539ba44c5e70f451f77c05a758 /ebus/__init__.py
parent155abf125c0b40483d404bf7aa10b7800398ac66 (diff)
downloadebus-alt-7a57ef77a3093f480ab414400d44d546f283d81c.tar.gz
ebus-alt-7a57ef77a3093f480ab414400d44d546f283d81c.zip
Value class inheritanced by StringValue, IntValue FloatValue
Diffstat (limited to 'ebus/__init__.py')
-rw-r--r--ebus/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ebus/__init__.py b/ebus/__init__.py
index ad79846..23e6595 100644
--- a/ebus/__init__.py
+++ b/ebus/__init__.py
@@ -163,7 +163,7 @@ class EbusXMLMixin(object):
elif field.tag == "bcd":
yield fields.Bcd( name, int(offset) )
elif field.tag == "byteEnum":
- options = dict(map(lambda opt: ( int(opt.get("value"),16), opt.get("name")),
+ options = dict(map(lambda opt: ( int(opt.get("value")[2:],16), opt.get("name")),
field.xpath("./option")))
yield fields.ByteEnum( name, int(offset), options)
else: