From 3f1bb74860ed11dc7621df7882c8a68f0bd86174 Mon Sep 17 00:00:00 2001 From: Ferdinand Holzer Date: Sun, 27 Aug 2023 11:47:27 +0200 Subject: [PATCH] Philips: use self.debug instead of LOGGER.debug --- zhaquirks/philips/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zhaquirks/philips/__init__.py b/zhaquirks/philips/__init__.py index a9461b3918..5a1a5632b9 100644 --- a/zhaquirks/philips/__init__.py +++ b/zhaquirks/philips/__init__.py @@ -33,7 +33,6 @@ PHILIPS = "Philips" SIGNIFY = "Signify Netherlands B.V." -_LOGGER = logging.getLogger(__name__) HUE_REMOTE_DEVICE_TRIGGERS = { (SHORT_PRESS, TURN_ON): {COMMAND: "on_press"}, @@ -166,7 +165,7 @@ def handle_cluster_request( ] = None, ): """Handle the cluster command.""" - _LOGGER.debug( + self.debug( "%s - handle_cluster_request tsn: [%s] command id: %s - args: [%s]", self.__class__.__name__, hdr.tsn, @@ -187,7 +186,7 @@ def handle_cluster_request( } def send_press_event(click_count): - _LOGGER.debug( + self.debug( "%s - send_press_event click_count: [%s]", self.__class__.__name__, click_count,