String formatting improvements for tests (#33663)
This commit is contained in:
1 parent
1c25468b21
commit
906385172a
33 files changed
+129
-155
No files matched your search
@@ -94,7 +94,7 @@ class TestScriptComponent(unittest.TestCase):
|
||||
):
|
||||
assert not setup_component(
|
||||
self.hass, "script", {"script": value}
|
||||
), "Script loaded with wrong config {}".format(value)
|
||||
), f"Script loaded with wrong config {value}"
|
||||
|
||||
assert 0 == len(self.hass.states.entity_ids("script"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user