Add test and exceptions for V2_2 implementation.

This commit is contained in:
Johan Bloemberg
2016-11-07 20:00:10 +01:00
parent 4a82066144
commit 447f2a24fb
5 changed files with 92 additions and 7 deletions

View File

@@ -19,6 +19,21 @@ class MBusObject(DSMRObject):
return self.values[1]['unit']
class MBusObjectV2_2(DSMRObject):
@property
def datetime(self):
return self.values[0]['value']
@property
def value(self):
return self.values[5]['value']
@property
def unit(self):
return self.values[4]['unit']
class CosemObject(DSMRObject):
@property