mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +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:
@@ -54,7 +54,7 @@ class AmcrestBinarySensor(BinarySensorDevice):
|
||||
|
||||
def __init__(self, name, device, sensor_type):
|
||||
"""Initialize entity."""
|
||||
self._name = "{} {}".format(name, BINARY_SENSORS[sensor_type][0])
|
||||
self._name = f"{name} {BINARY_SENSORS[sensor_type][0]}"
|
||||
self._signal_name = name
|
||||
self._api = device.api
|
||||
self._sensor_type = sensor_type
|
||||
|
||||
Reference in New Issue
Block a user