Cleanup unused loggers (components A-M) (#41600)
This commit is contained in:
1 parent
9e6df38994
commit
625bbe6238
251 files changed
+16
-891
No files matched your search
@@ -1,5 +1,4 @@
|
||||
"""Support for Homekit device discovery."""
|
||||
import logging
|
||||
from typing import Any, Dict
|
||||
|
||||
import aiohomekit
|
||||
@@ -20,8 +19,6 @@ from .connection import HKDevice
|
||||
from .const import CONTROLLER, DOMAIN, ENTITY_MAP, KNOWN_DEVICES, TRIGGERS
|
||||
from .storage import EntityMapStorage
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def escape_characteristic_name(char_name):
|
||||
"""Escape any dash or dots in a characteristics name."""
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Support for Homekit Alarm Control Panel."""
|
||||
import logging
|
||||
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
|
||||
from homeassistant.components.alarm_control_panel import AlarmControlPanelEntity
|
||||
@@ -23,8 +21,6 @@ from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
ICON = "mdi:security"
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CURRENT_STATE_MAP = {
|
||||
0: STATE_ALARM_ARMED_HOME,
|
||||
1: STATE_ALARM_ARMED_AWAY,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Support for Homekit motion sensors."""
|
||||
import logging
|
||||
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
@@ -16,8 +14,6 @@ from homeassistant.core import callback
|
||||
|
||||
from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class HomeKitMotionSensor(HomeKitEntity, BinarySensorEntity):
|
||||
"""Representation of a Homekit motion sensor."""
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Support for Homekit covers."""
|
||||
import logging
|
||||
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
@@ -22,8 +20,6 @@ from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
STATE_STOPPED = "stopped"
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CURRENT_GARAGE_STATE_MAP = {
|
||||
0: STATE_OPEN,
|
||||
1: STATE_CLOSED,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Support for Homekit fans."""
|
||||
import logging
|
||||
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
|
||||
from homeassistant.components.fan import (
|
||||
@@ -19,8 +17,6 @@ from homeassistant.core import callback
|
||||
|
||||
from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
# 0 is clockwise, 1 is counter-clockwise. The match to forward and reverse is so that
|
||||
# its consistent with homeassistant.components.homekit.
|
||||
DIRECTION_TO_HK = {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Support for Homekit lights."""
|
||||
import logging
|
||||
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
|
||||
from homeassistant.components.light import (
|
||||
@@ -16,8 +14,6 @@ from homeassistant.core import callback
|
||||
|
||||
from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up Homekit lightbulb."""
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Support for HomeKit Controller locks."""
|
||||
import logging
|
||||
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
|
||||
from homeassistant.components.lock import LockEntity
|
||||
@@ -9,8 +7,6 @@ from homeassistant.core import callback
|
||||
|
||||
from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
STATE_JAMMED = "jammed"
|
||||
|
||||
CURRENT_STATE_MAP = {0: STATE_UNLOCKED, 1: STATE_LOCKED, 2: STATE_JAMMED, 3: None}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
"""Support for Homekit switches."""
|
||||
import logging
|
||||
|
||||
from aiohomekit.model.characteristics import (
|
||||
CharacteristicsTypes,
|
||||
InUseValues,
|
||||
@@ -14,8 +12,6 @@ from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
OUTLET_IN_USE = "outlet_in_use"
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ATTR_IN_USE = "in_use"
|
||||
ATTR_IS_CONFIGURED = "is_configured"
|
||||
ATTR_REMAINING_DURATION = "remaining_duration"
|
||||
|
||||
Reference in new issue
Block a user