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:
parent
5bf7e0fcc0
commit
f38011560f
9 changed files with 18 additions and 9 deletions
|
@ -120,7 +120,7 @@ def validate(integrations: Dict[str, Integration], config: Config):
|
|||
zeroconf_path = config.root / "homeassistant/generated/zeroconf.py"
|
||||
config.cache["zeroconf"] = content = generate_and_validate(integrations)
|
||||
|
||||
with open(str(zeroconf_path), "r") as fp:
|
||||
with open(str(zeroconf_path)) as fp:
|
||||
current = fp.read().strip()
|
||||
if current != content:
|
||||
config.add_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue