Improve string formatting v6 (#33698)

This commit is contained in:
springstan 2020-04-07 23:14:28 +02:00 committed by GitHub
parent d7e3b0b755
commit eae21be5b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 81 additions and 87 deletions

View file

@ -91,7 +91,7 @@ class OctoPrintSensor(Entity):
if tool is None:
self._name = f"{sensor_name} {condition}"
else:
self._name = "{} {} {} {}".format(sensor_name, condition, tool, "temp")
self._name = f"{sensor_name} {condition} {tool} temp"
self.sensor_type = sensor_type
self.api = api
self._state = None