Skip to content

Commit

Permalink
🎨 ha: Use 'eventsensor' logger and set integration_type
Browse files Browse the repository at this point in the history
  • Loading branch information
azogue committed Mar 12, 2023
1 parent 2ae8d85 commit a423f31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/eventsensor/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion custom_components/eventsensor/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion custom_components/eventsensor/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
parse_numbers,
)

_LOGGER = logging.getLogger(__name__)
_LOGGER = logging.getLogger("eventsensor")

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
Expand Down

0 comments on commit a423f31

Please sign in to comment.