We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e039849 commit 453f7d7Copy full SHA for 453f7d7
custom_components/zha_toolkit/zcl_attr.py
@@ -548,9 +548,12 @@ async def attr_write( # noqa: C901
548
549
# Write value to provided state or state attribute
550
if params[p.STATE_ID] is not None:
551
- if len(result_read[1]) == 0 and len(result_read[0]) == 1:
+ if (
552
+ len(result_read[1]) == 0 # type:ignore[index]
553
+ and len(result_read[0]) == 1 # type:ignore[index]
554
+ ):
555
# No error and one result
- for attr_id, val in result_read[0].items():
556
+ for attr_id, val in result_read[0].items(): # type:ignore[index]
557
if state_template_str is not None:
558
if val is None:
559
LOGGER.debug(
0 commit comments