Skip to content

Commit

Permalink
Correct indentation leading to uninitialized msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Jan 31, 2022
1 parent 9e00df7 commit a8d3905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/zha_toolkit/zcl_attr.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ async def attr_write(
"attr_type {} not supported, "
+ "or incorrect parameters (attr_val={})"
).format(params["attr_type"], params["attr_val"])
event_data["errors"] = msg
event_data["errors"].append(msg)
LOGGER.debug(msg)
LOGGER.debug(
"ATTR TYPE %s, attr_val %s",
params["attr_type"],
Expand Down

0 comments on commit a8d3905

Please sign in to comment.