String formatting improvements (#33635)

* String formatting improvements

* Found another one
This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-04 18:21:14 +02:00
1 parent 025cce3445
commit e8a0abd107
39 files changed
+52 -56

No files matched your search

@@ -51,7 +51,7 @@ class SkybellBinarySensor(SkybellDevice, BinarySensorDevice):
"""Initialize a binary sensor for a Skybell device."""
super().__init__(device)
self._sensor_type = sensor_type
self._name = "{0} {1}".format(
self._name = "{} {}".format(
self._device.name, SENSOR_TYPES[self._sensor_type][0]
)
self._device_class = SENSOR_TYPES[self._sensor_type][1]