From 7a57ef77a3093f480ab414400d44d546f283d81c Mon Sep 17 00:00:00 2001 From: Yves Date: Sun, 27 Jun 2010 20:25:50 +0200 Subject: Value class inheritanced by StringValue, IntValue FloatValue --- ebus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ebus/__init__.py') 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: -- cgit v1.2.1