Skip to content

Commit

Permalink
Merge pull request #272 from Windham-High-School/release-1.6.4
Browse files Browse the repository at this point in the history
Release 1.6.4
  • Loading branch information
snorklerjoe authored May 13, 2023
2 parents a9ba3be + 56e68ee commit abb868f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/CubeServer-api/cubeserver_api/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.3"
__version__ = "1.6.4"
2 changes: 1 addition & 1 deletion src/CubeServer-app/cubeserver_app/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.3"
__version__ = "1.6.4"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.3"
__version__ = "1.6.4"
2 changes: 1 addition & 1 deletion src/CubeServer-common/cubeserver_common/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.6.3"
__version__ = "1.6.4"
7 changes: 5 additions & 2 deletions src/CubeServer-common/cubeserver_common/models/datapoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class DataClass(Enum):
PRESSURE = "pressure"
COMMENT = "comment"
SIGNAL_LIGHT = "signal"
BATTERY_REMAINING = "remaining battery"
BATTERY_REMAINING = "remaining battery" # Deprecated
BATTERY_VOLTAGE = "battery voltage"
BEACON_CHALLENGE = "beacon challenge"

@property
Expand All @@ -33,6 +34,7 @@ def datatype(self) -> type:
DataClass.COMMENT: str,
DataClass.SIGNAL_LIGHT: bool,
DataClass.BATTERY_REMAINING: int,
DataClass.BATTERY_VOLTAGE: float,
DataClass.BEACON_CHALLENGE: str
}[self]

Expand All @@ -46,7 +48,8 @@ def unit(self) -> str:
DataClass.COMMENT: "",
DataClass.BEACON_CHALLENGE: "",
DataClass.SIGNAL_LIGHT: "",
DataClass.BATTERY_REMAINING: "%"
DataClass.BATTERY_REMAINING: "%",
DataClass.BATTERY_VOLTAGE: "V"
}[self]

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.3
1.6.4

0 comments on commit abb868f

Please sign in to comment.