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

Settings -> Repairs -> Integration startup time is shown as negative #117530

Closed
ildar170975 opened this issue May 16, 2024 · 9 comments
Closed

Settings -> Repairs -> Integration startup time is shown as negative #117530

ildar170975 opened this issue May 16, 2024 · 9 comments

Comments

@ildar170975
Copy link

The problem

Settings -> Repairs -> Integration startup time
a negative value is shown:

330937361-7268b4e5-e3dd-4143-864e-d1b6313bc9b2

What version of Home Assistant Core has the issue?

2024.5.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@bdraco
Copy link
Member

bdraco commented May 16, 2024

see #116221

@ildar170975
Copy link
Author

Your comment:

If platforms get loaded multiple times the calculation will be wrong.

If HA allows for platforms "get loaded multiple times" - then may be HA should consider these possible cases?
I.e. this is not just a "problem in custom component", this is "HA does not consider this case".

@bdraco
Copy link
Member

bdraco commented May 16, 2024

It's not possible to detect every incorrect way that an integration may write their code.

@ildar170975
Copy link
Author

t's not possible to detect every incorrect way that an integration may write their code.

Agree.
But my point is:
-- since some platform may be "get loaded multiple times" - then this could happen since HA allows to do it "multiple times";
-- then either HA should disable this possibility (i.e. a platform may be loaded one time only);
-- or HA should consider these "get loaded multiple times" cases as a possible scenario when calculating a "startup time".

See, I know nothing about HA internals, my proposals are only based on you explanation.

@bdraco
Copy link
Member

bdraco commented May 16, 2024 via email

@ildar170975
Copy link
Author

Thanks for explanation.
Will open an issue for this integration.

@ildar170975
Copy link
Author

@bdraco
Shall I close THIS issue?

For the record - issue for Gismeteo integration - Limych/ha-gismeteo#191

@bdraco
Copy link
Member

bdraco commented May 17, 2024

Yes

@ildar170975
Copy link
Author

Again for the record - the author of Gismeteo integration declines that this "negative startup time" could be a "integration issue".
Limych/ha-gismeteo#191 (comment)

yes, the time in your picture is strange, but this does not in any way affect the correctness of work of the integration. This means this is NOT an integration issue.

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

No branches or pull requests

2 participants