1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

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

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

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