mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-12 20:40:21 +00:00
Set limits on watchdog retries (#3779)
* Set limits on watchdog retries * Use relative import
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user