Use literal string interpolation in integrations X-Z (f-strings) (#26395)
This commit is contained in:
parent
445c741b30
commit
dae6895a95
36 changed files with 115 additions and 137 deletions
|
@ -440,7 +440,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||
miio_device = Device(host, token)
|
||||
device_info = miio_device.info()
|
||||
model = device_info.model
|
||||
unique_id = "{}-{}".format(model, device_info.mac_address)
|
||||
unique_id = f"{model}-{device_info.mac_address}"
|
||||
_LOGGER.info(
|
||||
"%s %s %s detected",
|
||||
model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue