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