mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27: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
|
@property
|
||||||
def entity_picture(self):
|
def entity_picture(self):
|
||||||
"""Return the entity picture."""
|
"""Return the entity picture."""
|
||||||
value = self.rest.data
|
|
||||||
if self._condition == 'weather':
|
if self._condition == 'weather':
|
||||||
return value['icon_url']
|
return self.rest.data['icon_url']
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user