Skip to content

Commit f73886f

Browse files
committed
testing fix for temp unit not coming through properly.
1 parent 05f9554 commit f73886f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opensensor/collections.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class Temperature(TimestampModel):
2020
temp: Decimal
2121
unit: str | None = None
2222

23+
@classmethod
24+
def collection_name(cls):
25+
return "temp"
26+
2327

2428
class Humidity(TimestampModel):
2529
rh: Decimal

0 commit comments

Comments
 (0)