Add JobManager and Job decorator (#2225)

* Adds condition decorator to block execution that require internet

* Fix exsisting tests

* Add internet state to network info

* Add healthy condition

* Add tests

* It's all changed

* rename
This commit is contained in:
Joakim Sørensen
2020-11-12 22:57:28 +01:00
committed by GitHub
parent cd34a40dd8
commit a18b706f99
20 changed files with 474 additions and 33 deletions

View File

@@ -293,3 +293,10 @@ class ResolutionError(HassioError):
class ResolutionNotFound(ResolutionError):
"""Raise if suggestion/issue was not found."""
# Job
class JobException(HassioError):
"""Base job exception."""