Skip to content

Commit 453f7d7

Browse files
committed
Ignore some mypy notices
1 parent e039849 commit 453f7d7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

custom_components/zha_toolkit/zcl_attr.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,12 @@ async def attr_write( # noqa: C901
548548

549549
# Write value to provided state or state attribute
550550
if params[p.STATE_ID] is not None:
551-
if len(result_read[1]) == 0 and len(result_read[0]) == 1:
551+
if (
552+
len(result_read[1]) == 0 # type:ignore[index]
553+
and len(result_read[0]) == 1 # type:ignore[index]
554+
):
552555
# No error and one result
553-
for attr_id, val in result_read[0].items():
556+
for attr_id, val in result_read[0].items(): # type:ignore[index]
554557
if state_template_str is not None:
555558
if val is None:
556559
LOGGER.debug(

0 commit comments

Comments
 (0)