No need no need to set variable

This commit is contained in:
Teagan M. Glenn 2016-08-17 22:31:28 -06:00
parent dd14f90afb
commit e54ba5ff72

View File

@ -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):