EntityComponent to retry platforms that are not ready yet (#8209)

* Add PlatformNotReady Exception

* lint

* Remove cap, adjust algorithm
This commit is contained in:
Paulus Schoutsen 2017-06-26 09:41:48 -07:00 committed by GitHub
parent f02d169864
commit d73b695e73
4 changed files with 69 additions and 5 deletions

View file

@ -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