1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add websock command to query device for triggers (#24044)

* Add websock command to query device for triggers

* Lint

* Refactor

* Add support for domain automations

* Make device automation an automation platform

* lint

* Support device_id in light trigger

* Review comments

* Add tests

* Add tests

* lint
This commit is contained in:
Erik Montnemery
2019-06-11 00:36:11 +02:00
committed by Paulus Schoutsen
parent 168f20bdf4
commit 935240f8c3
9 changed files with 388 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ _LOGGER = logging.getLogger(__name__)
def _platform_validator(config):
"""Validate it is a valid platform."""
"""Validate it is a valid platform."""
try:
platform = importlib.import_module('.{}'.format(config[CONF_PLATFORM]),
__name__)