Skip to content

Commit

Permalink
Fix 'native_unit_of_measurement' is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Breina committed Feb 12, 2024
1 parent 756fce0 commit 8f438e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/idrac_power/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def __init__(self, hass, rest: IdracRest, device_info, unique_id, name):
key='current_power_usage',
name=name,
icon='mdi:lightning-bolt',
native_unit_of_measurement='W',
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT
)
Expand Down

0 comments on commit 8f438e2

Please sign in to comment.