Skip to content

Commit

Permalink
Philips: use self.debug instead of LOGGER.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fholzer committed Aug 27, 2023
1 parent e28fef8 commit edc3560
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zhaquirks/philips/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Module for Philips quirks implementations."""
import asyncio
import logging
import time
from typing import Any, List, Optional, Union

Expand Down Expand Up @@ -33,7 +32,6 @@

PHILIPS = "Philips"
SIGNIFY = "Signify Netherlands B.V."
_LOGGER = logging.getLogger(__name__)

HUE_REMOTE_DEVICE_TRIGGERS = {
(SHORT_PRESS, TURN_ON): {COMMAND: "on_press"},
Expand Down Expand Up @@ -166,7 +164,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,
Expand All @@ -187,7 +185,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,
Expand Down

0 comments on commit edc3560

Please sign in to comment.