From beee787bb9787e9fae1a6eb66ac4b19d7390a45f Mon Sep 17 00:00:00 2001 From: mdeweerd Date: Mon, 19 Aug 2024 22:26:36 +0200 Subject: [PATCH] Correct code to list members on errors --- custom_components/zha_toolkit/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/zha_toolkit/utils.py b/custom_components/zha_toolkit/utils.py index f062b88..866ccc0 100644 --- a/custom_components/zha_toolkit/utils.py +++ b/custom_components/zha_toolkit/utils.py @@ -1186,6 +1186,6 @@ def get_hass(gateway: ZHAGateway): if hass is None: msg = f"Could not get hass from {gateway!r}." if gateway is not None: - msg += "Attributes available {dir(gateway)}." + msg += f"Attributes available {dir(gateway)}." raise ValueError(msg) return hass