Add stub services.yaml and make validation mandatory (#23213)

pull/23223/head
Paulus Schoutsen 2019-04-18 15:13:35 -07:00 committed by GitHub
parent 620c6a22ac
commit a52f96b23a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
69 changed files with 2 additions and 5 deletions

View File

@ -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(