Bump pyupgrade to 2.12.0 (#48943)
This commit is contained in:
parent
ee0c87df1c
commit
8e2b5b36b5
45 changed files with 94 additions and 95 deletions
|
@ -52,7 +52,7 @@ class RingBinarySensor(RingEntityMixin, BinarySensorEntity):
|
|||
super().__init__(config_entry_id, device)
|
||||
self._ring = ring
|
||||
self._sensor_type = sensor_type
|
||||
self._name = "{} {}".format(self._device.name, SENSOR_TYPES.get(sensor_type)[0])
|
||||
self._name = f"{self._device.name} {SENSOR_TYPES.get(sensor_type)[0]}"
|
||||
self._device_class = SENSOR_TYPES.get(sensor_type)[2]
|
||||
self._state = None
|
||||
self._unique_id = f"{device.id}-{sensor_type}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue