String formatting improvements (#33635)
* String formatting improvements * Found another one
This commit is contained in:
1 parent
025cce3445
commit
e8a0abd107
39 files changed
+52
-56
No files matched your search
@@ -120,7 +120,7 @@ class RainMachineBinarySensor(RainMachineEntity, BinarySensorDevice):
|
||||
@property
|
||||
def unique_id(self) -> str:
|
||||
"""Return a unique, Home Assistant friendly identifier for this entity."""
|
||||
return "{0}_{1}".format(
|
||||
return "{}_{}".format(
|
||||
self.rainmachine.device_mac.replace(":", ""), self._sensor_type
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user