Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in error messages #2319

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom_components/hacs/repositories/appdaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ async def validate_repository(self):
addir = await self.repository_object.get_contents("apps", self.ref)
except AIOGitHubAPIException:
raise HacsException(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
) from None

if not isinstance(addir, list):
self.validate.errors.append("Repostitory structure not compliant")
self.validate.errors.append("Repository structure not compliant")

self.content.path.remote = addir[0].path
self.content.objects = await self.repository_object.get_contents(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/repositories/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def validate_repository(self):
name = get_first_directory_in_directory(self.tree, "custom_components")
if name is None:
raise HacsException(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)
self.content.path.remote = f"custom_components/{name}"

Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/repositories/netdaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def validate_repository(self):
break
if not compliant:
raise HacsException(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)

# Handle potential errors
Expand Down
4 changes: 2 additions & 2 deletions custom_components/hacs/repositories/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def validate_repository(self):

if self.content.path.remote is None:
raise HacsException(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)

if self.content.path.remote == "release":
Expand All @@ -57,7 +57,7 @@ async def update_repository(self, ignore_issues=False, force=False):

if self.content.path.remote is None:
self.validate.errors.append(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)

if self.content.path.remote == "release":
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/repositories/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def validate_repository(self):
break
if not compliant:
raise HacsException(
f"Repostitory structure for {self.ref.replace('tags/','')} is not compliant"
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)

if self.data.content_in_root:
Expand Down