mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
Use f-strings in integrations starting with "A" (#32110)
* Use f-strings in integrations starting with A * Use f-strings in tests for integrations starting with A * Fix pylint by renaming variable * Fix nested for loop in f-string for aprs device_tracker * Break long lines into multiple short lines * Break long lines into multiple short lines v2
This commit is contained in:
@@ -79,8 +79,8 @@ class AxisBinarySensor(AxisEventBase, BinarySensorDevice):
|
||||
and self.event.id
|
||||
and self.device.api.vapix.ports[self.event.id].name
|
||||
):
|
||||
return "{} {}".format(
|
||||
self.device.name, self.device.api.vapix.ports[self.event.id].name
|
||||
return (
|
||||
f"{self.device.name} {self.device.api.vapix.ports[self.event.id].name}"
|
||||
)
|
||||
|
||||
return super().name
|
||||
|
||||
Reference in New Issue
Block a user