Fix add-on is_valid check
@@ -52,8 +52,10 @@ class AddonBuild(JsonConfig, CoreSysAttributes):
def is_valid(self) -> bool:
"""Return true if the build env is valid."""
return all(
+ [
self.addon.path_location.is_dir(),
Path(self.addon.path_location, "Dockerfile").is_file(),
+ ]
)
def get_docker_args(self, version: AwesomeVersion):
