Traceback (most recent call last):


 "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner

self.run()


 "/usr/local/lib/python3.6/threading.py", line 1182, in run

self.function(*self.args, **self.kwargs)


 "/app/server.py", line 131, in send_unseen

self.on_message_received(self.zap.chat_get_unseen())


 "/app/zapinterface.py", line 85, in chat_get_unseen

for contact in self.driver.get_unread(False, True, True):


 "/app/WhatsappAPI/webwhatsapi/__init__.py", line 344, in get_unread

messages.sort(key=lambda message: message.cid)
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'`

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 322, in _async_add_entity

await entity.async_device_update(warning=False)


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 470, in async_device_update

await self.async_update()


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/volkszaehler/sensor.py", line 120, in async_update

self._state = round(getattr(self.vz_api.api, self.type), 2)
TypeError: type NoneType doesn't define __round__ method
