From a5999e4078ab8e788f334310d943cef076449929 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 20 Jul 2024 11:29:05 -0400 Subject: [PATCH] Add unit-related quirks to H5100 sensor Fixes #240. It appears that this sensor uses the same reporting style as H5103, which were addressed in #232. --- src/service/quirks.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/service/quirks.rs b/src/service/quirks.rs index 94f9afb..569a52f 100644 --- a/src/service/quirks.rs +++ b/src/service/quirks.rs @@ -230,6 +230,9 @@ fn load_quirks() -> HashMap { 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),