Skip to content

Commit

Permalink
Add frequency sensors to Nibe (home-assistant#89072)
Browse files Browse the repository at this point in the history
* added frequency (for compressors etc)

---------

Co-authored-by: Joakim Plate <[email protected]>
  • Loading branch information
janmolemans and elupus authored Jul 31, 2023
1 parent a8a3b67 commit f0640fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions homeassistant/components/nibe_heatpump/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
UnitOfElectricCurrent,
UnitOfElectricPotential,
UnitOfEnergy,
UnitOfFrequency,
UnitOfPower,
UnitOfTemperature,
UnitOfTime,
Expand Down Expand Up @@ -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,
),
}


Expand Down

0 comments on commit f0640fc

Please sign in to comment.