Skip to content

Commit 90ae1f9

Browse files
committed
Allow classifier config on sensors
1 parent 50b0e23 commit 90ae1f9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mudpi/extensions/gpio/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def state(self):
5959
@property
6060
def classifier(self):
6161
""" Classification further describing it, effects the data formatting """
62-
return 'general'
62+
return self.config.get('classifier', 'general')
6363

6464

6565
""" Methods """

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
redis
22
paho-mqtt
33
pyyaml
4-
adafruit-circuitpython-mcp3xxx

0 commit comments

Comments
 (0)