mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add pyupgrade (in pre-commit and CI) (#33688)
* Add pyupgrade (in pre-commit and CI) * Fix leftover results of pyupgrade * Ensure we run for Python 3.7 on pyupgrade
This commit is contained in:
@@ -17,7 +17,7 @@ class Error:
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""Represent error as string."""
|
||||
return "[{}] {}".format(self.plugin.upper(), self.error)
|
||||
return f"[{self.plugin.upper()}] {self.error}"
|
||||
|
||||
|
||||
@attr.s
|
||||
|
||||
Reference in New Issue
Block a user