mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-12 11:46:31 +00:00
Run ruff format
This commit is contained in:
parent
3ae4744dd0
commit
503dc232c4
@ -17,7 +17,12 @@ from ..exceptions import (
|
|||||||
JobGroupExecutionLimitExceeded,
|
JobGroupExecutionLimitExceeded,
|
||||||
)
|
)
|
||||||
from ..host.const import HostFeature
|
from ..host.const import HostFeature
|
||||||
from ..resolution.const import MINIMUM_FREE_SPACE_THRESHOLD, ContextType, IssueType, UnsupportedReason
|
from ..resolution.const import (
|
||||||
|
MINIMUM_FREE_SPACE_THRESHOLD,
|
||||||
|
ContextType,
|
||||||
|
IssueType,
|
||||||
|
UnsupportedReason,
|
||||||
|
)
|
||||||
from ..utils.sentry import capture_exception
|
from ..utils.sentry import capture_exception
|
||||||
from . import SupervisorJob
|
from . import SupervisorJob
|
||||||
from .const import JobCondition, JobExecutionLimit
|
from .const import JobCondition, JobExecutionLimit
|
||||||
@ -437,7 +442,8 @@ class Job(CoreSysAttributes):
|
|||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
JobCondition.ARCHITECTURE_SUPPORTED in used_conditions
|
JobCondition.ARCHITECTURE_SUPPORTED in used_conditions
|
||||||
and UnsupportedReason.SYSTEM_ARCHITECTURE in coresys.sys_resolution.unsupported
|
and UnsupportedReason.SYSTEM_ARCHITECTURE
|
||||||
|
in coresys.sys_resolution.unsupported
|
||||||
):
|
):
|
||||||
raise JobConditionException(
|
raise JobConditionException(
|
||||||
f"'{method_name}' blocked from execution, unsupported system architecture"
|
f"'{method_name}' blocked from execution, unsupported system architecture"
|
||||||
|
@ -41,4 +41,3 @@ async def test_evaluation_supported_architectures(
|
|||||||
):
|
):
|
||||||
await system_architecture()
|
await system_architecture()
|
||||||
assert system_architecture.reason not in coresys.resolution.unsupported
|
assert system_architecture.reason not in coresys.resolution.unsupported
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user