From f0640fc057ff8f200eb35dd6c57388432e2c33ed Mon Sep 17 00:00:00 2001 From: janmolemans Date: Mon, 31 Jul 2023 22:23:32 +0200 Subject: [PATCH] Add frequency sensors to Nibe (#89072) * added frequency (for compressors etc) --------- Co-authored-by: Joakim Plate --- homeassistant/components/nibe_heatpump/sensor.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/nibe_heatpump/sensor.py b/homeassistant/components/nibe_heatpump/sensor.py index 8aabad2c9fc096..d9e89a2d56c11a 100644 --- a/homeassistant/components/nibe_heatpump/sensor.py +++ b/homeassistant/components/nibe_heatpump/sensor.py @@ -16,6 +16,7 @@ UnitOfElectricCurrent, UnitOfElectricPotential, UnitOfEnergy, + UnitOfFrequency, UnitOfPower, UnitOfTemperature, UnitOfTime, @@ -110,6 +111,13 @@ state_class=SensorStateClass.TOTAL_INCREASING, native_unit_of_measurement=UnitOfTime.HOURS, ), + "Hz": SensorEntityDescription( + key="Hz", + entity_category=EntityCategory.DIAGNOSTIC, + device_class=SensorDeviceClass.FREQUENCY, + state_class=SensorStateClass.MEASUREMENT, + native_unit_of_measurement=UnitOfFrequency.HERTZ, + ), }