MQTT and ESP8266 devices refuse to show up

i accidentally shutdown the desktop running ubuntu that has HA installed via venv.
now, mqtt and esp8266 devices refuse to show up as you can see here:

strangely their automations still work! but it would be nice if i can see them as before so i can manually take control if needed. here are some errors i saw but have no idea where to begin

i logged into the Shellys IPs web gui. did a device reset. that did not help with HA.
then i restart HA and that seem to work! now i can see the shellys and esp8266 devices