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 authored and GitHub committed 2017-06-26 09:41:48 -07:00
1 parent f02d169864
commit d73b695e73
4 files changed
+69 -5

No files matched your search

+6
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