Skip to content

Commit

Permalink
testing fix for temp unit not coming through properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Oct 2, 2024
1 parent 05f9554 commit f73886f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opensensor/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class Temperature(TimestampModel):
temp: Decimal
unit: str | None = None

@classmethod
def collection_name(cls):
return "temp"


class Humidity(TimestampModel):
rh: Decimal
Expand Down

0 comments on commit f73886f

Please sign in to comment.