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
Tibber: retry if we fail to connect at startup #12620
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the core exception to handle this inside platform handler. So you need only raise the correct exception...
EDIT:
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/exceptions.py#L31
Thanks, had forgot about |
Since 0.64, my tibber fails to load at startup and therefore is not shown at all. I guess this PR is to fix that or should i file a buq request @Danielhiversen ? |
No, this will not fix that. |
yield from home.update_info() | ||
dev.append(TibberSensor(home)) | ||
except (asyncio.TimeoutError, aiohttp.ClientError): | ||
raise PlatformNotReady |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise PlatformNotReady()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
No other components seems to do that?
@pvizeli is this fine now? |
Description:
Tibber: retry if we fail to connect at startup
Example entry for
configuration.yaml
(if applicable):Checklist: