Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'add_job' #329

Closed
4 tasks done
EDelsman opened this issue May 22, 2022 · 6 comments
Closed
4 tasks done

AttributeError: 'NoneType' object has no attribute 'add_job' #329

EDelsman opened this issue May 22, 2022 · 6 comments

Comments

@EDelsman
Copy link

EDelsman commented May 22, 2022

My Home Assistant version: 2022.5.5

What I am doing:
Nothing in particular, below error in log happens every 5 seconds. Browser_mod is working as expected.

What I expected to happen:
Quiet in my log :-)

What happened instead:
Every 5 secs I get an error in the log that seems to be related to browser_mod. During (re)boot I do see two singular errors:
2022-05-22 13:58:41 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547591161888] Received invalid command: browser_mod/connect
2022-05-22 13:58:42 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547591161888] Received invalid command: browser_mod/update

After that every 5 secs:
2022-05-22 14:19:12 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547591161888] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 107, 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 694, in schedule_update_ha_state
self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: 'NoneType' object has no attribute 'add_job'

Minimal steps to reproduce:
None

# The least amount of code or steps possible to reproduce my error

# Put your code/steps here

Error messages from the browser console:

// Select everything from the browser console and copy it

// Paste it here

By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:

@alexreddy78
Copy link

Same on 2022.6

@WallyDW
Copy link

WallyDW commented Jun 23, 2022

Removing browser_mod from installed integrations stops the errors.

@alexreddy78
Copy link

@

Removing browser_mod from installed integrations stops the errors.

What do you mean? Uninstall integration? But then, how you will use it?

@WallyDW
Copy link

WallyDW commented Jun 23, 2022

It was not meant as a solution, but rather a confirmation that browser_mod seems to be the culprit.

@alexreddy78
Copy link

culprit

Thanks, Cap

@thomasloven
Copy link
Owner

Closed because of Browser Mod 2.0 release.
Please see #354.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants