summaryrefslogtreecommitdiff
path: root/src/home/mqtt/payload/temphum.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-31 09:22:00 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-31 09:22:00 +0300
commitc976495222858c4921454c9294ff73794ae56277 (patch)
treeea605604f2e8fb2108e01074a1bfb9de93f1e93f /src/home/mqtt/payload/temphum.py
parentb02a9c5473267da88a9182a5b06753f62b689042 (diff)
wip
Diffstat (limited to 'src/home/mqtt/payload/temphum.py')
-rw-r--r--src/home/mqtt/payload/temphum.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/home/mqtt/payload/temphum.py b/src/home/mqtt/payload/temphum.py
deleted file mode 100644
index c0b744e..0000000
--- a/src/home/mqtt/payload/temphum.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from .base_payload import MqttPayload
-
-two_digits_precision = lambda x: round(x, 2)
-
-
-class TempHumDataPayload(MqttPayload):
- FORMAT = '=ddb'
- UNPACKER = {
- 'temp': two_digits_precision,
- 'rh': two_digits_precision
- }
-
- temp: float
- rh: float
- error: int