From a423f3136cda3789eed4758cc399d47007be579d Mon Sep 17 00:00:00 2001 From: Eugenio Panadero Date: Sun, 12 Mar 2023 12:16:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20ha:=20Use=20'eventsensor'=20logg?= =?UTF-8?q?er=20and=20set=20integration=5Ftype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/eventsensor/config_flow.py | 2 +- custom_components/eventsensor/manifest.json | 5 ++++- custom_components/eventsensor/sensor.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/custom_components/eventsensor/config_flow.py b/custom_components/eventsensor/config_flow.py index fd7e00a..db35b93 100644 --- a/custom_components/eventsensor/config_flow.py +++ b/custom_components/eventsensor/config_flow.py @@ -31,7 +31,7 @@ PRESET_HUE_TAP_MAPPING, ) -_LOGGER = logging.getLogger(__name__) +_LOGGER = logging.getLogger("eventsensor") CONF_PRESET_CONFIG = "preset_config" CONF_INTEGRATION = "integration_source" diff --git a/custom_components/eventsensor/manifest.json b/custom_components/eventsensor/manifest.json index 67dce9f..a13e786 100644 --- a/custom_components/eventsensor/manifest.json +++ b/custom_components/eventsensor/manifest.json @@ -4,10 +4,13 @@ "codeowners": [ "@azogue" ], + "dependencies": [], "config_flow": true, "documentation": "https://github.com/azogue/eventsensor", - "issue_tracker": "https://github.com/azogue/eventsensor/issues", + "integration_type": "entity", "iot_class": "calculated", + "issue_tracker": "https://github.com/azogue/eventsensor/issues", + "loggers": ["eventsensor"], "requirements": [], "version": "3.1.0" } diff --git a/custom_components/eventsensor/sensor.py b/custom_components/eventsensor/sensor.py index 24d53f2..f83092f 100644 --- a/custom_components/eventsensor/sensor.py +++ b/custom_components/eventsensor/sensor.py @@ -32,7 +32,7 @@ parse_numbers, ) -_LOGGER = logging.getLogger(__name__) +_LOGGER = logging.getLogger("eventsensor") PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( {