Traceback (most recent call last):


 "/usr/lib/python3.6/asyncio/tasks.py", line 179, in _step

result = coro.send(None)


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity

new_entity, self, update_before_add=update_before_add


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity

yield from entity.async_update_ha_state()


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in async_update_ha_state

self._attr_setter('entity_picture', str, ATTR_ENTITY_PICTURE, attr)


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 323, in _attr_setter

value = getattr(self, name)


 "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/wunderground.py", line 712, in entity_picture

return re.sub(r'^http://', 'https://', url, flags=re.IGNORECASE)


 "/usr/lib/python3.6/re.py", line 191, in sub

return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

Traceback (most recent call last):


 "/home/parth/apps/thonny/lib/python3.7/tkinter/__init__.py", line 1705, in __call__

return self.func(*args)


 "/home/parth/apps/thonny/lib/python3.7/site-packages/thonny/running.py", line 317, in _cmd_run_current_script

self.execute_current("Run")


 "/home/parth/apps/thonny/lib/python3.7/site-packages/thonny/running.py", line 282, in execute_current

script_dir = normpath_with_actual_case(os.path.dirname(filename))


 "/home/parth/apps/thonny/lib/python3.7/posixpath.py", line 156, in dirname

p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
