Traceback (most recent call last):


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

entity_picture = self.entity_picture


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 771, in entity_picture

image_hash = self.media_image_hash


 "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 378, in media_image_hash

return hashlib.sha256(url.encode('utf-8')).hexdigest()[:16]
AttributeError: 'dict' object has no attribute 'encode'

Traceback (most recent call last):


 "test.py", line 5, in <module>

my_droplets = manager.get_all_droplets()


 "digitalocean/Manager.py", line 101, in get_all_droplets

data = self.get_data("droplets/")


 "digitalocean/Manager.py", line 45, in get_data

return self.__deal_with_pagination(args[0], data, params)


 "digitalocean/Manager.py", line 67, in __deal_with_pagination

values.append(value)
AttributeError: 'dict' object has no attribute 'append'
