Skip to content

Commit

Permalink
fix: unit of gyroscope (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 authored May 14, 2023
1 parent 3031b1a commit 6a61e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sensor_state_data/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class SensorLibrary:
device_class=SensorDeviceClass.ENERGY,
native_unit_of_measurement=Units.ENERGY_KILO_WATT_HOUR,
)
GYROSCOPE__GYROSCOPE_ANGLE_PER_SECOND = BaseSensorDescription(
GYROSCOPE__GYROSCOPE_DEGREES_PER_SECOND = BaseSensorDescription(
device_class=SensorDeviceClass.GYROSCOPE,
native_unit_of_measurement=Units.GYROSCOPE_ANGLE_PER_SECOND,
native_unit_of_measurement=Units.GYROSCOPE_DEGREES_PER_SECOND,
)
VOLUME_FLOW_RATE__VOLUME_FLOW_RATE_CUBIC_METERS_PER_HOUR = BaseSensorDescription(
device_class=SensorDeviceClass.VOLUME_FLOW_RATE,
Expand Down
2 changes: 1 addition & 1 deletion src/sensor_state_data/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Units(StrEnum):
ACCELERATION_METERS_PER_SQUARE_SECOND: Final = "m/s²"

# Gyroscope units
GYROSCOPE_ANGLE_PER_SECOND: Final = "°/s"
GYROSCOPE_DEGREES_PER_SECOND: Final = "°/s"

# Signal_strength units
SIGNAL_STRENGTH_DECIBELS: Final = "dB"
Expand Down

0 comments on commit 6a61e9a

Please sign in to comment.