From e7a5548dbaf56dc5bac7ff25f56ddadb574f30ec Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Sat, 30 Apr 2022 01:26:11 -0400 Subject: [PATCH] Fix invoke_cc_api bug (#411) --- zwave_js_server/model/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zwave_js_server/model/endpoint.py b/zwave_js_server/model/endpoint.py index 1ae1d667c..547ad0283 100644 --- a/zwave_js_server/model/endpoint.py +++ b/zwave_js_server/model/endpoint.py @@ -168,7 +168,7 @@ async def async_invoke_cc_api( require_schema=7, wait_for_result=wait_for_result, ) - if result is None: + if not result: return None return result["response"]