Skip to content

Commit

Permalink
fix model in env box
Browse files Browse the repository at this point in the history
  • Loading branch information
tubleronchik committed Apr 27, 2024
1 parent 22aa472 commit c4c01ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectivity/src/sensors/environmental_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __post_init__(self) -> None:

super().__post_init__()
self.id = str(self.data["esp8266id"])
self.model = self.data.get("model", SDS011_MODEL)
self.model = int(self.data.get("model", SDS011_MODEL))
self.public = self.generate_pubkey(str(self.id))
self.donated_by = str(self.data.get("donated_by", ""))
sensors_data = self.data["sensordatavalues"]
Expand Down

0 comments on commit c4c01ca

Please sign in to comment.