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