Skip to content

Commit

Permalink
Add stub services.yaml and make validation mandatory (#23213)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Apr 20, 2019
1 parent f18a49c commit 4433ad0
Show file tree
Hide file tree
Showing 69 changed files with 2 additions and 5 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
7 changes: 2 additions & 5 deletions script/hassfest/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,8 @@ def validate_services(integration: Integration):
try:
data = load_yaml(str(integration.path / 'services.yaml'))
except FileNotFoundError:
print(
"Warning: {} registeres services but has no services.yaml".format(
integration.domain))
# integration.add_error(
# 'services', 'Registers services but has no services.yaml')
integration.add_error(
'services', 'Registers services but has no services.yaml')
return
except HomeAssistantError:
integration.add_error(
Expand Down

0 comments on commit 4433ad0

Please sign in to comment.