Automation save freezes HA for 10-15 sec

Every time, when I press “save” button in automation, HA freezes (loose connection) for about 15 sec.
And the only error in the log is this one:

Logger: homeassistant.components.websocket_api.http.connection
Source: helpers/entity.py:660
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 19:47:54 (105 occurrences)
Last logged: 19:52:54

* [140595555414128] Error handling message: Unknown error (unknown_error)
* [140596230780864] Error handling message: Unknown error (unknown_error)
* [140595575353168] Error handling message: Unknown error (unknown_error)

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 108, in async_handle handler(self.hass, self, schema(msg)) File "/config/custom_components/browser_mod/connection.py", line 44, in handle_update devices[deviceID].update(msg.get("data", None)) File "/config/custom_components/browser_mod/connection.py", line 94, in update self.sensor.data = data.get("browser") File "/config/custom_components/browser_mod/helpers.py", line 106, in data self.updated() File "/config/custom_components/browser_mod/sensor.py", line 27, in updated self.schedule_update_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 660, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: 'NoneType' object has no attribute 'add_job'

Any suggestions?
Thanks

1 Like

By the looks of the error it’s not the automation it’s browser mod.

I do not have browser mod and I am having the exact issue.

Nothing useful on the logs but assuming this is because home assistant is reading automation from file and processing it. Maybe, my ssd (or sd card) performance is getting worse