Traceback (most recent call last):


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

yield from self.async_device_update()


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

yield from self.hass.async_add_job(self.update)


 "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/scrape.py", line 115, in update

raw_data = BeautifulSoup(self.rest.data, 'html.parser')


 "/usr/lib/python3.6/site-packages/bs4/__init__.py", line 192, in __init__

elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len()

Traceback (most recent call last):


 "main.py", line 988, in open


self.archive[docID] = pickle.load(archive)


 "/usr/lib/python3.8/site-packages/dill/_dill.py", line 270, in load

return Unpickler(file, ignore=ignore, **kwds).load()


 "/usr/lib/python3.8/site-packages/dill/_dill.py", line 472, in load

obj = StockUnpickler.load(self)
TypeError: an integer is required (got type bytes)
