summaryrefslogtreecommitdiff
path: root/ebus/__init__.py
diff options
context:
space:
mode:
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: