mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Properly return self._unit_of_measurement in the unit_of_measurement function (#7341)
Add an optional extended description…
This commit is contained in:
committed by
Pascal Vizeli
parent
8114c45b3d
commit
9dd28ac18f
@@ -63,6 +63,7 @@ class IOSSensor(Entity):
|
|||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
"""Return the unit of measurement this sensor expresses itself in."""
|
"""Return the unit of measurement this sensor expresses itself in."""
|
||||||
|
return self._unit_of_measurement
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
|
Reference in New Issue
Block a user