[sensor] Defer integration imports out of module scope

This commit is contained in:
J. Nick Koston
2026-08-13 21:21:56 -05:00
parent edeaded161
commit a04dca7823
8 changed files with 34 additions and 25 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ def lint_constants_usage():
# Maximum allowed CONF_ constants in esphome/const.py.
# This file is frozen — new constants go in esphome/components/const/__init__.py.
# Decrease this number when constants are moved out of const.py.
CONST_PY_MAX_CONF = 1024
CONST_PY_MAX_CONF = 1025
@lint_content_check(include=["esphome/const.py"])