Use partition instead of split where possible in core (#81806)

This commit is contained in:
Aarni Koskela
2022-11-15 22:45:48 +02:00
committed by GitHub
parent 35c1604ea7
commit 8038485ca4
11 changed files with 15 additions and 21 deletions

View File

@@ -202,7 +202,7 @@ def async_prepare_call_from_config(
f"Template rendered invalid service: {domain_service}"
) from ex
domain, service = domain_service.split(".", 1)
domain, _, service = domain_service.partition(".")
target = {}
if CONF_TARGET in config: