Add stub services.yaml and make validation mandatory (#23213)
parent
620c6a22ac
commit
a52f96b23a
homeassistant/components
alarmdecoder
alexa
apns
arlo
blackbird
bluesound
bluetooth_tracker
browser
channels
cloudflare
config
configurator
demo
device_sun_light_trigger
dominos
downloader
duckdns
ecobee
econet
emulated_hue
epson
facebox
flux
generic_thermostat
harmony
html5
icloud
ifttt
joaoapps_join
keyboard
kodi
lifx
local_file
logbook
matrix
media_extractor
mill
mobile_app
monoprice
mysensors
neato
ness_alarm
nuheat
nuimo_controller
nuki
onkyo
onvif
pilight
rest_command
roku
route53
sabnzbd
sensibo
snapcast
songpal
sonos
soundtouch
squeezebox
stream
telegram
todoist
universal
websocket_api
wemo
xiaomi_miio
yamaha
script/hassfest
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue