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

Delayed Home Assistant Startup #12

Open
dshokouhi opened this issue Aug 31, 2018 · 5 comments
Open

Delayed Home Assistant Startup #12

dshokouhi opened this issue Aug 31, 2018 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dshokouhi
Copy link

I went to restart HA today after updating to 0.77.2 and got this error in the log. I noticed that HA was delayed startup until this error showed up.

2018-08-31 09:37:43 WARNING (MainThread) [homeassistant.helpers.entity] Updating state for media_player.xbox_den (<class 'custom_components.media_player.xboxone.XboxOneDevice'>) took 0.511 seconds. Please report platform to the developers at https://goo.gl/Nvioub
@hunterjm
Copy link
Owner

hunterjm commented Sep 1, 2018

Yeah. I've noticed some slowness in startup as well. I'll look into it eventually, but don't really have the time now.

@hunterjm hunterjm added enhancement New feature or request help wanted Extra attention is needed labels Sep 1, 2018
@unknownskl
Copy link
Contributor

I've never seen this warning on a raspberry pi but I might have an idea what happens:

  • In Home Assistant it triggers the setup_platform function
  • In the component it will check the versions by calling the /versions endpoint. (Which adds the delay)

@balloob
Copy link

balloob commented Oct 2, 2018

This warning is happening when properties are fetched from the entity. Properties should never do I/O. Data should be fetched inside the update method.

@hunterjm
Copy link
Owner

hunterjm commented Oct 2, 2018

Thanks @balloob. I will look into it.

@tuxuser tuxuser mentioned this issue Oct 4, 2018
@tuxuser
Copy link
Contributor

tuxuser commented Oct 5, 2018

fixed in 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants