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

Remove unnecessary string literal concatenations (#30360)

This commit is contained in:
Ville Skyttä
2020-01-02 21:17:10 +02:00
committed by GitHub
parent cac750066a
commit e6388e186c
183 changed files with 362 additions and 393 deletions

View File

@@ -23,7 +23,7 @@ BASE_CONFIG = (
"\n\n"
)
BAD_CORE_CONFIG = "homeassistant:\n" " unit_system: bad\n" "\n\n"
BAD_CORE_CONFIG = "homeassistant:\n unit_system: bad\n\n\n"
def log_ha_config(conf):
@@ -106,8 +106,7 @@ async def test_component_platform_not_found_2(hass, loop):
async def test_package_invalid(hass, loop):
"""Test a valid platform setup."""
files = {
YAML_CONFIG_FILE: BASE_CONFIG
+ (" packages:\n" " p1:\n" ' group: ["a"]')
YAML_CONFIG_FILE: BASE_CONFIG + (" packages:\n p1:\n" ' group: ["a"]')
}
with patch("os.path.isfile", return_value=True), patch_yaml_files(files):
res = await async_check_ha_config_file(hass)