summaryrefslogtreecommitdiff
path: root/src/home/mqtt
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-29 05:44:59 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-29 16:31:08 +0300
commit8b2088103a74e616ca82fe043de55cb7ed58e329 (patch)
treef8dad8b7bbe9cb6eb135e63cb3ece2338e035aba /src/home/mqtt
parent6a64c97c799bd4919b46f8dc39d80799bb751ab3 (diff)
platformio: split code into libraries
Diffstat (limited to 'src/home/mqtt')
-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