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

Allow embedded platforms (#19948)

* Allow embedded platforms

* Fix test
This commit is contained in:
Paulus Schoutsen
2019-01-11 11:30:22 -08:00
committed by GitHub
parent b3a08d5876
commit a8f22287ca
6 changed files with 31 additions and 8 deletions

View File

@@ -190,7 +190,8 @@ async def async_prepare_setup_platform(hass: core.HomeAssistant, config: Dict,
This method is a coroutine.
"""
platform_path = PLATFORM_FORMAT.format(domain, platform_name)
platform_path = PLATFORM_FORMAT.format(domain=domain,
platform=platform_name)
def log_error(msg: str) -> None:
"""Log helper."""