Skip to content

Commit

Permalink
Update typing hint (add dict to param value types)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Dec 21, 2024
1 parent 0decc07 commit 11851c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/zha_toolkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,14 +849,14 @@ def isManf(manf, includeNone=False):
#
def extractParams( # noqa: C901
service,
) -> dict[str, None | int | str | list[int | str] | bytes]:
) -> dict[str, None | int | str | list[int | str] | dict | bytes]:
rawParams = service.data

LOGGER.debug("Parameters '%s'", rawParams)

# Potential parameters, initialized to None
# TODO: Not all parameters are decoded in this function yet
params: dict[str, None | int | str | list[int | str] | bytes] = {
params: dict[str, None | int | str | list[int | str] | dict | bytes] = {
p.CMD_ID: None,
p.EP_ID: None,
p.DST_EP_ID: None,
Expand Down

0 comments on commit 11851c2

Please sign in to comment.