Skip to content

Commit

Permalink
Use _attr_native_unit_of_measurement (#2586)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Apr 1, 2022
1 parent eba48c1 commit 8c6b3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hacs/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class HACSSensor(HacsSystemEntity, SensorEntity):
"""HACS Sensor class."""

_attr_name = "hacs"
_attr_unit_of_measurement = "pending update(s)"
_attr_native_unit_of_measurement = "pending update(s)"
_attr_native_value = None

@callback
Expand Down

0 comments on commit 8c6b3fd

Please sign in to comment.