Use literal string interpolation in integrations B-D (f-strings) (#26378)

This commit is contained in:
Franck Nijhof authored and Pascal Vizeli committed 2019-09-03 17:09:59 +02:00
1 parent 105461edb5
commit 6a24d893c8
52 files changed
+116 -126

No files matched your search

+2 -2
View File
@@ -30,9 +30,9 @@ class BlinkCamera(Camera):
"""Initialize a camera."""
super().__init__()
self.data = data
self._name = "{} {}".format(BLINK_DATA, name)
self._name = f"{BLINK_DATA} {name}"
self._camera = camera
self._unique_id = "{}-camera".format(camera.serial)
self._unique_id = f"{camera.serial}-camera"
self.response = None
self.current_image = None
self.last_image = None