mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
No need no need to set variable
This commit is contained in:
parent
dd14f90afb
commit
e54ba5ff72
@ -111,9 +111,8 @@ class WUndergroundSensor(Entity):
|
||||
@property
|
||||
def entity_picture(self):
|
||||
"""Return the entity picture."""
|
||||
value = self.rest.data
|
||||
if self._condition == 'weather':
|
||||
return value['icon_url']
|
||||
return self.rest.data['icon_url']
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user