mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 14:46:30 +00:00
Fix add-on is_valid check (#2497)
This commit is contained in:
parent
c1de50266a
commit
6bb0210f1f
@ -52,8 +52,10 @@ class AddonBuild(JsonConfig, CoreSysAttributes):
|
|||||||
def is_valid(self) -> bool:
|
def is_valid(self) -> bool:
|
||||||
"""Return true if the build env is valid."""
|
"""Return true if the build env is valid."""
|
||||||
return all(
|
return all(
|
||||||
self.addon.path_location.is_dir(),
|
[
|
||||||
Path(self.addon.path_location, "Dockerfile").is_file(),
|
self.addon.path_location.is_dir(),
|
||||||
|
Path(self.addon.path_location, "Dockerfile").is_file(),
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_docker_args(self, version: AwesomeVersion):
|
def get_docker_args(self, version: AwesomeVersion):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user