mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Added unit_of_measurement to Currencylayer (#10598)
* Added unit_of_measurement to Currencylayer * Updated based on comments * Remove quote from name
This commit is contained in:
parent
62c8843956
commit
2a77883146
@ -68,10 +68,15 @@ class CurrencylayerSensor(Entity):
|
||||
self._base = base
|
||||
self._state = None
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the unit of measurement of this entity, if any."""
|
||||
return self._quote
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
return '{} {}'.format(self._base, self._quote)
|
||||
return self._base
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user