mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
small fix in yr sensor name
This commit is contained in:
parent
8159d36114
commit
9e89197284
@ -111,6 +111,7 @@ class YrSensor(Entity):
|
||||
""" Implements an Yr.no sensor. """
|
||||
|
||||
def __init__(self, sensor_type, weather):
|
||||
self.client_name = 'yr'
|
||||
self._name = SENSOR_TYPES[sensor_type][0]
|
||||
self.type = sensor_type
|
||||
self._state = None
|
||||
@ -123,7 +124,7 @@ class YrSensor(Entity):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self._name
|
||||
return '{} {}'.format(self.client_name, self._name)
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user