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
|
@ -358,12 +358,12 @@ class SmartThingsThreeAxisSensor(SmartThingsEntity, SensorEntity):
|
|||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name of the binary sensor."""
|
||||
return "{} {}".format(self._device.label, THREE_AXIS_NAMES[self._index])
|
||||
return f"{self._device.label} {THREE_AXIS_NAMES[self._index]}"
|
||||
|
||||
@property
|
||||
def unique_id(self) -> str:
|
||||
"""Return a unique ID."""
|
||||
return "{}.{}".format(self._device.device_id, THREE_AXIS_NAMES[self._index])
|
||||
return f"{self._device.device_id}.{THREE_AXIS_NAMES[self._index]}"
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue