File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def read(filename, parent=None):
19
19
setup (
20
20
name = "vallox_websocket_api" ,
21
21
packages = ["vallox_websocket_api" ],
22
- version = "2.8.0 " ,
22
+ version = "2.8.1 " ,
23
23
python_requires = ">=3.6.0, <4" ,
24
24
description = "Vallox WebSocket API" ,
25
25
author = "Jevgeni Kiski" ,
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ async def testGetInfo(self):
21
21
'A_CYC_APPL_SW_VERSION_9' : 512 ,
22
22
'A_CYC_MACHINE_MODEL' : 3 ,
23
23
'A_CYC_UUID0' : 25432 ,
24
- 'A_CYC_UUID1' : 25432 ,
24
+ 'A_CYC_UUID1' : 3772 ,
25
25
'A_CYC_UUID2' : 25432 ,
26
- 'A_CYC_UUID3' : 25432 ,
26
+ 'A_CYC_UUID3' : 0 ,
27
27
'A_CYC_UUID4' : 25432 ,
28
28
'A_CYC_UUID5' : 25432 ,
29
29
'A_CYC_UUID6' : 25432 ,
@@ -35,6 +35,6 @@ async def testGetInfo(self):
35
35
36
36
self .assertEquals ("Vallox 145 MV" , info ["model" ])
37
37
self .assertEquals ("2.0.2" , info ["sw_version" ])
38
- self .assertEquals ("63586358 -6358-6358 -6358-635863586358" , str (info ["uuid" ]))
38
+ self .assertEquals ("63580ebc -6358-0000 -6358-635863586358" , str (info ["uuid" ]))
39
39
40
40
self .client .fetch_metrics .assert_called ()
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def get_sw_version(data):
88
88
89
89
def get_uuid (data ):
90
90
int_values = [data [m ] for m in UUID_METRICS ]
91
- hex_string = "" .join ([ hex (i )[ 2 :] for i in int_values ] )
91
+ hex_string = "" .join ("{0:04x}" . format (i ) for i in int_values )
92
92
return UUID (hex_string )
93
93
94
94
You can’t perform that action at this time.
0 commit comments