From 8e4ff80b9da56fe22fd6afe3dc7281ab7bb437b8 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 30 Jul 2023 00:08:24 -0700 Subject: [PATCH] Remove the DEBUG_MODE --- custom_components/adaptive_lighting/hass_utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/custom_components/adaptive_lighting/hass_utils.py b/custom_components/adaptive_lighting/hass_utils.py index cafd9cdf..ba5bb8b0 100644 --- a/custom_components/adaptive_lighting/hass_utils.py +++ b/custom_components/adaptive_lighting/hass_utils.py @@ -8,7 +8,6 @@ from homeassistant.util.read_only_dict import ReadOnlyDict from .adaptation_utils import ServiceData _LOGGER = logging.getLogger(__name__) -_DEBUG_MODE = True def setup_service_call_interceptor( @@ -59,8 +58,6 @@ def setup_service_call_interceptor( call.data, e, ) - if _DEBUG_MODE: - raise # Call original service handler with processed data await existing_service.job.target(call)