Skip to content

Commit

Permalink
Add unit-related quirks to H5100 sensor
Browse files Browse the repository at this point in the history
Fixes #240. It appears that this sensor uses the same reporting style as
H5103, which were addressed in #232.
  • Loading branch information
sampsyo authored and wez committed Jul 21, 2024
1 parent 961b32e commit a5999e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service/quirks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ fn load_quirks() -> HashMap<String, Quirk> {
Quirk::thermometer("H5051")
.with_platform_temperature_sensor_units(TemperatureUnits::Farenheit)
.with_platform_humidity_sensor_units(HumidityUnits::RelativePercent),
Quirk::thermometer("H5100")
.with_platform_temperature_sensor_units(TemperatureUnits::Farenheit)
.with_platform_humidity_sensor_units(HumidityUnits::RelativePercent),
Quirk::thermometer("H5103")
.with_platform_temperature_sensor_units(TemperatureUnits::Farenheit)
.with_platform_humidity_sensor_units(HumidityUnits::RelativePercent),
Expand Down

0 comments on commit a5999e4

Please sign in to comment.