mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Make precommit checks happy (#5751)
This commit is contained in:
parent
aecc6655db
commit
cdcb25be8e
3 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ def sub(path, pattern, repl, expected_count=1):
|
|||
content, count = re.subn(pattern, repl, content, flags=re.MULTILINE)
|
||||
if expected_count is not None:
|
||||
assert count == expected_count, f"Pattern {pattern} replacement failed!"
|
||||
with open(path, "wt") as fh:
|
||||
with open(path, "w") as fh:
|
||||
fh.write(content)
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Iterator
|
||||
from collections.abc import Iterator
|
||||
|
||||
import math
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import pytest
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
|
||||
from esphome import cpp_helpers as ch
|
||||
from esphome import const
|
||||
|
|
Loading…
Reference in a new issue