summaryrefslogtreecommitdiff
path: root/src/home
diff options
context:
space:
mode:
Diffstat (limited to 'src/home')
-rw-r--r--src/home/mqtt/payload/temphum.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/home/mqtt/payload/temphum.py b/src/home/mqtt/payload/temphum.py
index 5b45ecb..c0b744e 100644
--- a/src/home/mqtt/payload/temphum.py
+++ b/src/home/mqtt/payload/temphum.py
@@ -4,7 +4,7 @@ two_digits_precision = lambda x: round(x, 2)
class TempHumDataPayload(MqttPayload):
- FORMAT = '=dd'
+ FORMAT = '=ddb'
UNPACKER = {
'temp': two_digits_precision,
'rh': two_digits_precision
@@ -12,3 +12,4 @@ class TempHumDataPayload(MqttPayload):
temp: float
rh: float
+ error: int