Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/components/sma/sensor.py", line 167, in async_sma

sensor.async_update_values()


 "/usr/src/homeassistant/homeassistant/components/sma/sensor.py", line 225, in async_update_values

self.async_write_ha_state()


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 283, in async_write_ha_state

raise RuntimeError(f"Attribute hass is None for {self}")
RuntimeError: Attribute hass is None for <Entity frequency: 50.01>

Traceback (most recent call last):


 "/usr/lib/python3.6/tkinter/__init__.py", line 3504, in __del__
RuntimeError: main thread is not in main loop
