257 files
This commit is contained in:
@@ -12,11 +12,10 @@ from homeassistant.components import frontend, panel_custom
|
||||
|
||||
# HA 2026.8 moved StaticPathConfig into http/server.py and keeps a deliberate
|
||||
# re-export in the package root, so this import is valid at runtime on 2026.7
|
||||
# and 2026.8 alike. Strict mypy rejects re-exported names regardless; importing
|
||||
# from .server would satisfy it but break every user still on 2026.7, which has
|
||||
# no such module. Reads as unused under the older HA in the dev container —
|
||||
# three other ignores in this codebase share that fate.
|
||||
from homeassistant.components.http import StaticPathConfig # type: ignore[attr-defined]
|
||||
# and later alike (importing from .server would break 2026.7, which has no
|
||||
# such module). mypy.ini allows that re-export for the http package — a
|
||||
# per-line ignore read as unused on the older core.
|
||||
from homeassistant.components.http import StaticPathConfig
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .const import DOMAIN, PANEL_ICON, PANEL_NAME, PANEL_URL
|
||||
|
||||
Reference in New Issue
Block a user