1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-20 07:15:47 +01:00

Socket component ()

This commit is contained in:
Otto Winter
2021-09-08 05:41:42 +02:00
committed by GitHub
parent 6180ee8065
commit f924e80f43
8 changed files with 779 additions and 2 deletions

@ -261,7 +261,7 @@ def highlight(s):
@lint_re_check(
r"^#define\s+([a-zA-Z0-9_]+)\s+([0-9bx]+)" + CPP_RE_EOL,
include=cpp_include,
exclude=["esphome/core/log.h"],
exclude=["esphome/core/log.h", "esphome/components/socket/headers.h"],
)
def lint_no_defines(fname, match):
s = highlight(
@ -493,7 +493,10 @@ def lint_relative_py_import(fname):
"esphome/components/*.h",
"esphome/components/*.cpp",
"esphome/components/*.tcc",
]
],
exclude=[
"esphome/components/socket/headers.h",
],
)
def lint_namespace(fname, content):
expected_name = re.match(