Add notify platforms to loaded components (#16063)

pull/16065/head
Paulus Schoutsen 2018-08-19 18:56:31 +02:00 committed by GitHub
parent 21b88f2fe8
commit 7c95e96ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ def async_setup(hass, config):
DOMAIN, platform_name_slug, async_notify_message,
schema=NOTIFY_SERVICE_SCHEMA)
hass.config.components.add('{}.{}'.format(DOMAIN, p_type))
return True
setup_tasks = [async_setup_platform(p_type, p_config) for p_type, p_config