mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Cleanup
This commit is contained in:
parent
c31522eea9
commit
8b0d19835c
@ -6,7 +6,6 @@ Parses events and generates a human log.
|
|||||||
For more details about this component, please refer to the documentation at
|
For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/components/logbook/
|
https://home-assistant.io/components/logbook/
|
||||||
"""
|
"""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from itertools import groupby
|
from itertools import groupby
|
||||||
import re
|
import re
|
||||||
@ -38,8 +37,6 @@ ATTR_MESSAGE = 'message'
|
|||||||
ATTR_DOMAIN = 'domain'
|
ATTR_DOMAIN = 'domain'
|
||||||
ATTR_ENTITY_ID = 'entity_id'
|
ATTR_ENTITY_ID = 'entity_id'
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
class LogbookService(object):
|
class LogbookService(object):
|
||||||
@ -51,7 +48,6 @@ class LogbookService(object):
|
|||||||
|
|
||||||
def send_message(self, message="", **kwargs):
|
def send_message(self, message="", **kwargs):
|
||||||
""" Adds an entry to the logbook. """
|
""" Adds an entry to the logbook. """
|
||||||
_LOGGER.error("IM HERE")
|
|
||||||
log_entry(self.hass, self.name, message, DOMAIN)
|
log_entry(self.hass, self.name, message, DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user