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

Use literal string interpolation in integrations K-M (f-strings) (#26389)

This commit is contained in:
Franck Nijhof
2019-09-03 21:14:00 +02:00
committed by Pascal Vizeli
parent ef0e9431b6
commit 7203027cbf
51 changed files with 104 additions and 121 deletions

View File

@@ -21,7 +21,7 @@ from .helpers import device_info
def sensor_id(webhook_id, unique_id):
"""Return a unique sensor ID."""
return "{}_{}".format(webhook_id, unique_id)
return f"{webhook_id}_{unique_id}"
class MobileAppEntity(Entity):