mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
String formatting improvements for tests (#33663)
This commit is contained in:
@@ -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