EntityComponent to retry platforms that are not ready yet (#8209)
* Add PlatformNotReady Exception * lint * Remove cap, adjust algorithm
This commit is contained in:
parent
f02d169864
commit
d73b695e73
4 changed files with 69 additions and 5 deletions
|
@ -26,3 +26,9 @@ class TemplateError(HomeAssistantError):
|
|||
"""Init the error."""
|
||||
super().__init__('{}: {}'.format(exception.__class__.__name__,
|
||||
exception))
|
||||
|
||||
|
||||
class PlatformNotReady(HomeAssistantError):
|
||||
"""Error to indicate that platform is not ready."""
|
||||
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue