String formatting improvements for tests (2) (#33666)
This commit is contained in:
1 parent
906385172a
commit
d7e9959442
19 files changed
+65
-76
No files matched your search
@@ -86,7 +86,7 @@ class TestMicrosoftFaceDetect:
|
||||
mf.DOMAIN: {"api_key": "12345678abcdef6"},
|
||||
}
|
||||
|
||||
self.endpoint_url = "https://westus.{0}".format(mf.FACE_API_URL)
|
||||
self.endpoint_url = f"https://westus.{mf.FACE_API_URL}"
|
||||
|
||||
def teardown_method(self):
|
||||
"""Stop everything that was started."""
|
||||
@@ -115,9 +115,7 @@ class TestMicrosoftFaceDetect:
|
||||
setup_component(self.hass, ip.DOMAIN, self.config)
|
||||
|
||||
state = self.hass.states.get("camera.demo_camera")
|
||||
url = "{0}{1}".format(
|
||||
self.hass.config.api.base_url, state.attributes.get(ATTR_ENTITY_PICTURE)
|
||||
)
|
||||
url = f"{self.hass.config.api.base_url}{state.attributes.get(ATTR_ENTITY_PICTURE)}"
|
||||
|
||||
face_events = []
|
||||
|
||||
|
||||
Reference in new issue
Block a user