* Added additional string check * optimazepull/9385/head
parent
31f189da82
commit
6d01838632
|
@ -708,7 +708,7 @@ class WUndergroundSensor(Entity):
|
||||||
def entity_picture(self):
|
def entity_picture(self):
|
||||||
"""Return the entity picture."""
|
"""Return the entity picture."""
|
||||||
url = self._cfg_expand("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)
|
return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue