mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Merge pull request #6180 from home-assistant/molobrakos-patch-1
volvooncall: icon and unit were mixed
This commit is contained in:
commit
46d0d38444
@ -34,9 +34,9 @@ class VolvoSensor(VolvoEntity):
|
|||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
"""Return the unit of measurement."""
|
"""Return the unit of measurement."""
|
||||||
return RESOURCES[self._attribute][2]
|
return RESOURCES[self._attribute][3]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
"""Return the icon."""
|
"""Return the icon."""
|
||||||
return RESOURCES[self._attribute][3]
|
return RESOURCES[self._attribute][2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user