From 11cd16c255fbd16a40fd0541f2ca7806734e614f Mon Sep 17 00:00:00 2001 From: DewGew Date: Mon, 5 Feb 2024 14:53:43 +0100 Subject: [PATCH] Update trait.py --- modules/trait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/trait.py b/modules/trait.py index 62f2139..9cc0f22 100644 --- a/modules/trait.py +++ b/modules/trait.py @@ -160,7 +160,7 @@ def execute(device, command, params, user_id, challenge): custom_data = device['customData'] idx = device['customData']['idx'] domain = device['customData']['domain'] - check_state = customData['check_state'] + check_state = custom_data['check_state'] if domain in ['Group', 'Scene']: state = getDomoticzState(user_id, idx, 'scene')