Fixes #9379 - Added additional string check in Wunderground sensor (#9380)

* Added additional string check

* optimaze
This commit is contained in:
Alok Saboo authored and Paulus Schoutsen committed 2017-09-11 21:53:20 -07:00
1 parent 202d4d8105
commit 804d06d0d3
1 file changed
+1 -1
@@ -708,7 +708,7 @@ class WUndergroundSensor(Entity):
def entity_picture(self):
"""Return the entity picture."""
url = self._cfg_expand("entity_picture")
if url is not None:
if isinstance(url, str):
return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)
@property