From 0a34a8c89ee79f928e79715433eb1b2a76619413 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 26 Feb 2022 19:21:23 -0800 Subject: [PATCH] Add string encoding during bytes conversion. --- chime/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chime/sensor.py b/chime/sensor.py index 7b9c497..b74d668 100644 --- a/chime/sensor.py +++ b/chime/sensor.py @@ -65,7 +65,7 @@ class Reading: 'temperature': self.temp, 'pressure': self.press, 'relative_humidity': self.hum, - })) + }).encode('utf-8')) class SensorError(Exception):