mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use more f-strings [ruff] (#112695)
This commit is contained in:
@@ -1075,9 +1075,9 @@ def assert_setup_component(count, domain=None):
|
||||
yield config
|
||||
|
||||
if domain is None:
|
||||
assert len(config) == 1, "assert_setup_component requires DOMAIN: {}".format(
|
||||
list(config.keys())
|
||||
)
|
||||
assert (
|
||||
len(config) == 1
|
||||
), f"assert_setup_component requires DOMAIN: {list(config.keys())}"
|
||||
domain = list(config.keys())[0]
|
||||
|
||||
res = config.get(domain)
|
||||
|
||||
Reference in New Issue
Block a user