Refactor yr sensor

This commit is contained in:
Daniel Hoyer Iversen 2015-12-04 15:10:26 +01:00
parent 750ca79ac0
commit ac41f3028c

View file

@ -141,9 +141,7 @@ class YrSensor(Entity):
data[ATTR_ENTITY_PICTURE] = "http://api.met.no/weatherapi/weathericon/1.1/" \ data[ATTR_ENTITY_PICTURE] = "http://api.met.no/weatherapi/weathericon/1.1/" \
"?symbol=" + str(symbol_nr) + \ "?symbol=" + str(symbol_nr) + \
";content_type=image/png" ";content_type=image/png"
data["description_image"] = "http://api.met.no/weatherapi/weathericon/1.1/" \
"?symbol=" + str(symbol_nr) + \
";content_type=image/png"
return data return data
@property @property