Add string encoding during bytes conversion.
This commit is contained in:
parent
fec91e2d82
commit
0a34a8c89e
|
@ -65,7 +65,7 @@ class Reading:
|
|||
'temperature': self.temp,
|
||||
'pressure': self.press,
|
||||
'relative_humidity': self.hum,
|
||||
}))
|
||||
}).encode('utf-8'))
|
||||
|
||||
|
||||
class SensorError(Exception):
|
||||
|
|
Loading…
Reference in New Issue