diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-05-29 05:44:59 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-05-29 16:31:08 +0300 |
commit | 8b2088103a74e616ca82fe043de55cb7ed58e329 (patch) | |
tree | f8dad8b7bbe9cb6eb135e63cb3ece2338e035aba /src | |
parent | 6a64c97c799bd4919b46f8dc39d80799bb751ab3 (diff) |
platformio: split code into libraries
Diffstat (limited to 'src')
-rw-r--r-- | src/home/mqtt/payload/temphum.py | 3 |
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 |