Improve string formatting v5 (#33697)
* Improve string formatting v5 * Address review comments
This commit is contained in:
1 parent
39336d3ea3
commit
fca90a8ddc
46 files changed
+221
-252
No files matched your search
@@ -136,9 +136,7 @@ class XiaomiCamera(Camera):
|
||||
else:
|
||||
video = videos[-1]
|
||||
|
||||
return "ftp://{}:{}@{}:{}{}/{}".format(
|
||||
self.user, self.passwd, host, self.port, ftp.pwd(), video
|
||||
)
|
||||
return f"ftp://{self.user}:{self.passwd}@{host}:{self.port}{ftp.pwd()}/{video}"
|
||||
|
||||
async def async_camera_image(self):
|
||||
"""Return a still image response from the camera."""
|
||||
|
||||
Reference in new issue
Block a user