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

@@ -734,7 +734,7 @@ async def merge_packages_config(
continue
# If component name is given with a trailing description, remove it
# when looking for component
domain = comp_name.split(" ")[0]
domain = comp_name.partition(" ")[0]
try:
integration = await async_get_integration_with_requirements(