From 11851c239dc6c7d2986b87b509968fc5b0f9b77e Mon Sep 17 00:00:00 2001 From: mdeweerd Date: Sat, 21 Dec 2024 20:11:57 +0100 Subject: [PATCH] Update typing hint (add dict to param value types) --- custom_components/zha_toolkit/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/zha_toolkit/utils.py b/custom_components/zha_toolkit/utils.py index fc15c33..b416174 100644 --- a/custom_components/zha_toolkit/utils.py +++ b/custom_components/zha_toolkit/utils.py @@ -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,