mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +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._base = base
|
||||||
self._state = None
|
self._state = None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unit_of_measurement(self):
|
||||||
|
"""Return the unit of measurement of this entity, if any."""
|
||||||
|
return self._quote
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the sensor."""
|
"""Return the name of the sensor."""
|
||||||
return '{} {}'.format(self._base, self._quote)
|
return self._base
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user