Fix remaining pre-existing ty diagnostics in test files

Completes the isinstance/cast narrowing + Optional-field assert pattern
across the last batch of test files. custom_components and tests are
now both fully clean under ruff check, ruff format --check, and ty check.
This commit is contained in:
Marc Billow committed 2026-08-03 00:14:58 +00:00
1 parent 36a642135b
commit 679c3d2bce
5 files changed
+41 -12

No files matched your search

+2 -1
View File
@@ -2,7 +2,8 @@
from __future__ import annotations
from typing import Iterable, cast
from collections.abc import Iterable
from typing import cast
from unittest.mock import patch
from homeassistant.core import HomeAssistant