Set limits on watchdog retries (#3779)

* Set limits on watchdog retries

* Use relative import
This commit is contained in:
Mike Degatano
2022-08-09 11:44:35 -04:00
committed by GitHub
parent a92058e6fc
commit e62324e43f
15 changed files with 371 additions and 129 deletions

View File

@@ -122,6 +122,10 @@ class PluginError(HassioError):
"""Plugin error."""
class PluginJobError(PluginError, JobException):
"""Raise on job error with plugin."""
# HaCli
@@ -133,6 +137,10 @@ class CliUpdateError(CliError):
"""Error on update of a HA cli."""
class CliJobError(CliError, PluginJobError):
"""Raise on job error with cli plugin."""
# Observer
@@ -144,6 +152,10 @@ class ObserverUpdateError(ObserverError):
"""Error on update of a Observer."""
class ObserverJobError(ObserverError, PluginJobError):
"""Raise on job error with observer plugin."""
# Multicast
@@ -155,6 +167,10 @@ class MulticastUpdateError(MulticastError):
"""Error on update of a multicast."""
class MulticastJobError(MulticastError, PluginJobError):
"""Raise on job error with multicast plugin."""
# DNS
@@ -166,6 +182,10 @@ class CoreDNSUpdateError(CoreDNSError):
"""Error on update of a CoreDNS."""
class CoreDNSJobError(CoreDNSError, PluginJobError):
"""Raise on job error with dns plugin."""
# Audio
@@ -177,6 +197,10 @@ class AudioUpdateError(AudioError):
"""Error on update of a Audio."""
class AudioJobError(AudioError, PluginJobError):
"""Raise on job error with audio plugin."""
# Addons