diff --git a/homeassistant/components/advantage_air/config_flow.py b/homeassistant/components/advantage_air/config_flow.py
index 7c2f5e11f53c1229817844b86475c12bf00226a8..39c6e9efd4e603431b8b4d666131792c48f39a1f 100644
--- a/homeassistant/components/advantage_air/config_flow.py
+++ b/homeassistant/components/advantage_air/config_flow.py
@@ -1,6 +1,4 @@
 """Config Flow for Advantage Air integration."""
-import logging
-
 from advantage_air import ApiError, advantage_air
 import voluptuous as vol
 
@@ -19,8 +17,6 @@ ADVANTAGE_AIR_SCHEMA = vol.Schema(
     }
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class AdvantageAirConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
     """Config Advantage Air API connection."""
diff --git a/homeassistant/components/arris_tg2492lg/device_tracker.py b/homeassistant/components/arris_tg2492lg/device_tracker.py
index d18d19806f97f7d7b9af76d3b5334650c7698973..e63bef9c10856428e85a6b7a75abafdc21529c98 100644
--- a/homeassistant/components/arris_tg2492lg/device_tracker.py
+++ b/homeassistant/components/arris_tg2492lg/device_tracker.py
@@ -1,5 +1,4 @@
 """Support for Arris TG2492LG router."""
-import logging
 from typing import List
 
 from arris_tg2492lg import ConnectBox, Device
@@ -13,8 +12,6 @@ from homeassistant.components.device_tracker import (
 from homeassistant.const import CONF_HOST, CONF_PASSWORD
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_HOST = "192.168.178.1"
 
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
diff --git a/homeassistant/components/blinkt/light.py b/homeassistant/components/blinkt/light.py
index 768ca92d9d2c4bae4623b8b4a669b2b9a76d64a8..0d1aff7b8260f69f26be550e77793eb2c9cee06d 100644
--- a/homeassistant/components/blinkt/light.py
+++ b/homeassistant/components/blinkt/light.py
@@ -1,6 +1,5 @@
 """Support for Blinkt! lights on Raspberry Pi."""
 import importlib
-import logging
 
 import voluptuous as vol
 
@@ -16,8 +15,6 @@ from homeassistant.const import CONF_NAME
 import homeassistant.helpers.config_validation as cv
 import homeassistant.util.color as color_util
 
-_LOGGER = logging.getLogger(__name__)
-
 SUPPORT_BLINKT = SUPPORT_BRIGHTNESS | SUPPORT_COLOR
 
 DEFAULT_NAME = "blinkt"
diff --git a/homeassistant/components/daikin/sensor.py b/homeassistant/components/daikin/sensor.py
index 73cadba9e45ad7d44e6a82e38b0471cc5a0704f2..80de4ed34a5fe0aedd4f49e4d06f37f03a4fe5bf 100644
--- a/homeassistant/components/daikin/sensor.py
+++ b/homeassistant/components/daikin/sensor.py
@@ -1,6 +1,4 @@
 """Support for Daikin AC sensors."""
-import logging
-
 from homeassistant.const import (
     CONF_DEVICE_CLASS,
     CONF_ICON,
@@ -26,8 +24,6 @@ from .const import (
     SENSOR_TYPES,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Old way of setting up the Daikin sensors.
diff --git a/homeassistant/components/elv/__init__.py b/homeassistant/components/elv/__init__.py
index b776c7f54530c461bcd404196b6ab55d257d43b8..a3153eee1e4d5784765d4d7416ef0bf0ee6912e8 100644
--- a/homeassistant/components/elv/__init__.py
+++ b/homeassistant/components/elv/__init__.py
@@ -1,15 +1,10 @@
 """The Elv integration."""
-
-import logging
-
 import voluptuous as vol
 
 from homeassistant.const import CONF_DEVICE
 from homeassistant.helpers import discovery
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 DOMAIN = "elv"
 
 DEFAULT_DEVICE = "/dev/ttyUSB0"
diff --git a/homeassistant/components/enocean/binary_sensor.py b/homeassistant/components/enocean/binary_sensor.py
index 31bd6607ae2a575ec0c9d3b294396ff477c520d4..cc58103b7ef075c35a6fcdaf91081cfb8203fc6c 100644
--- a/homeassistant/components/enocean/binary_sensor.py
+++ b/homeassistant/components/enocean/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for EnOcean binary sensors."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.binary_sensor import (
@@ -13,8 +11,6 @@ import homeassistant.helpers.config_validation as cv
 
 from .device import EnOceanEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "EnOcean binary sensor"
 DEPENDENCIES = ["enocean"]
 EVENT_BUTTON_PRESSED = "button_pressed"
diff --git a/homeassistant/components/familyhub/camera.py b/homeassistant/components/familyhub/camera.py
index 2e4e7085927fac4e356eab5424950a55ddb4c7f0..ea654074a5a194ee196391c76a8ff8ed10ba851c 100644
--- a/homeassistant/components/familyhub/camera.py
+++ b/homeassistant/components/familyhub/camera.py
@@ -1,6 +1,4 @@
 """Family Hub camera for Samsung Refrigerators."""
-import logging
-
 from pyfamilyhublocal import FamilyHubCam
 import voluptuous as vol
 
@@ -9,8 +7,6 @@ from homeassistant.const import CONF_IP_ADDRESS, CONF_NAME
 from homeassistant.helpers.aiohttp_client import async_get_clientsession
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "FamilyHub Camera"
 
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
diff --git a/homeassistant/components/gpslogger/device_tracker.py b/homeassistant/components/gpslogger/device_tracker.py
index d294b07ebc7c31f48f12b978fa52604e84e2c95f..6999f26d7520ffa395c6feffd20aa2dc8bdb1596 100644
--- a/homeassistant/components/gpslogger/device_tracker.py
+++ b/homeassistant/components/gpslogger/device_tracker.py
@@ -1,6 +1,4 @@
 """Support for the GPSLogger device tracking."""
-import logging
-
 from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
 from homeassistant.components.device_tracker.config_entry import TrackerEntity
 from homeassistant.const import (
@@ -24,8 +22,6 @@ from .const import (
     ATTR_SPEED,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass: HomeAssistantType, entry, async_add_entities):
     """Configure a dispatcher connection based on a config entry."""
diff --git a/homeassistant/components/gree/bridge.py b/homeassistant/components/gree/bridge.py
index 6c02126e67864bae6cecb9cfdee0fb8e32606375..44adaf970b88e00e136ac814ec02679cf9120f8e 100644
--- a/homeassistant/components/gree/bridge.py
+++ b/homeassistant/components/gree/bridge.py
@@ -1,5 +1,4 @@
 """Helper and wrapper classes for Gree module."""
-import logging
 from typing import List
 
 from greeclimate.device import Device, DeviceInfo
@@ -8,8 +7,6 @@ from greeclimate.exceptions import DeviceNotBoundError
 
 from homeassistant import exceptions
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class DeviceHelper:
     """Device search and bind wrapper for Gree platform."""
diff --git a/homeassistant/components/hue/device_trigger.py b/homeassistant/components/hue/device_trigger.py
index 9e56a253a58f653c08f601a04778ad2cb7973eb8..c3dc18cd5df4e33d506a593ff001c52c610d439a 100644
--- a/homeassistant/components/hue/device_trigger.py
+++ b/homeassistant/components/hue/device_trigger.py
@@ -1,6 +1,4 @@
 """Provides device automations for Philips Hue events."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.device_automation import TRIGGER_BASE_SCHEMA
@@ -20,8 +18,6 @@ from homeassistant.const import (
 from . import DOMAIN
 from .hue_event import CONF_HUE_EVENT
 
-_LOGGER = logging.getLogger(__file__)
-
 CONF_SUBTYPE = "subtype"
 
 CONF_SHORT_PRESS = "remote_button_short_press"
diff --git a/homeassistant/components/iglo/light.py b/homeassistant/components/iglo/light.py
index f6f681d8b60e6561b24b1cabe1e716333d0b2608..dbabc3261b569a125aa29e4356bdaea76034fece 100644
--- a/homeassistant/components/iglo/light.py
+++ b/homeassistant/components/iglo/light.py
@@ -1,5 +1,4 @@
 """Support for lights under the iGlo brand."""
-import logging
 import math
 
 from iglo import Lamp
@@ -21,8 +20,6 @@ from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT
 import homeassistant.helpers.config_validation as cv
 import homeassistant.util.color as color_util
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "iGlo Light"
 DEFAULT_PORT = 8080
 
diff --git a/homeassistant/components/islamic_prayer_times/sensor.py b/homeassistant/components/islamic_prayer_times/sensor.py
index e0c2cf16f68aa1e6235339c6f33813ae04c04f75..41b3cf4c6678715edca48602254fc760c44d7352 100644
--- a/homeassistant/components/islamic_prayer_times/sensor.py
+++ b/homeassistant/components/islamic_prayer_times/sensor.py
@@ -1,5 +1,4 @@
 """Platform to retrieve Islamic prayer times information for Home Assistant."""
-import logging
 
 from homeassistant.const import DEVICE_CLASS_TIMESTAMP
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -8,8 +7,6 @@ import homeassistant.util.dt as dt_util
 
 from .const import DATA_UPDATED, DOMAIN, PRAYER_TIMES_ICON, SENSOR_TYPES
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Islamic prayer times sensor platform."""
diff --git a/homeassistant/components/lupusec/binary_sensor.py b/homeassistant/components/lupusec/binary_sensor.py
index 30af5743aa0c88dba41b174b3f7dfcac8c668bfc..963c82da5fad53ea4e3455532a20a7d4d0e47f64 100644
--- a/homeassistant/components/lupusec/binary_sensor.py
+++ b/homeassistant/components/lupusec/binary_sensor.py
@@ -1,6 +1,5 @@
 """Support for Lupusec Security System binary sensors."""
 from datetime import timedelta
-import logging
 
 import lupupy.constants as CONST
 
@@ -10,8 +9,6 @@ from . import DOMAIN as LUPUSEC_DOMAIN, LupusecDevice
 
 SCAN_INTERVAL = timedelta(seconds=2)
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up a sensor for an Lupusec device."""
diff --git a/homeassistant/components/lupusec/switch.py b/homeassistant/components/lupusec/switch.py
index d18fcd7c1f73e310993deb8238d7ba4e1db6193f..f35322eb7731a595c93438ee821272f7048f0416 100644
--- a/homeassistant/components/lupusec/switch.py
+++ b/homeassistant/components/lupusec/switch.py
@@ -1,6 +1,5 @@
 """Support for Lupusec Security System switches."""
 from datetime import timedelta
-import logging
 
 import lupupy.constants as CONST
 
@@ -10,8 +9,6 @@ from . import DOMAIN as LUPUSEC_DOMAIN, LupusecDevice
 
 SCAN_INTERVAL = timedelta(seconds=2)
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up Lupusec switch devices."""
diff --git a/homeassistant/components/lutron_caseta/scene.py b/homeassistant/components/lutron_caseta/scene.py
index a69f4594d14760eed13b1b338ac48f0752ad50a7..51dff935d93b8c36f252861693468ba7f5b6bbd4 100644
--- a/homeassistant/components/lutron_caseta/scene.py
+++ b/homeassistant/components/lutron_caseta/scene.py
@@ -1,13 +1,10 @@
 """Support for Lutron Caseta scenes."""
-import logging
 from typing import Any
 
 from homeassistant.components.scene import Scene
 
 from . import DOMAIN as CASETA_DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Lutron Caseta scene platform.
diff --git a/homeassistant/components/n26/sensor.py b/homeassistant/components/n26/sensor.py
index 7752efe82ea858b5a9ccd6d242f7b6dba1297c02..b9a8b21f9d0c967b6c03fbc22b857e0ed985b7cd 100644
--- a/homeassistant/components/n26/sensor.py
+++ b/homeassistant/components/n26/sensor.py
@@ -1,13 +1,9 @@
 """Support for N26 bank account sensors."""
-import logging
-
 from homeassistant.helpers.entity import Entity
 
 from . import DEFAULT_SCAN_INTERVAL, DOMAIN, timestamp_ms_to_date
 from .const import DATA
 
-_LOGGER = logging.getLogger(__name__)
-
 SCAN_INTERVAL = DEFAULT_SCAN_INTERVAL
 
 ATTR_IBAN = "account"
diff --git a/homeassistant/components/n26/switch.py b/homeassistant/components/n26/switch.py
index 155c9c0091baa39b06971b0a8d2cf35bb0d1f02b..910aa96ca492f16b8b9b7bb8940eacb3036b00a6 100644
--- a/homeassistant/components/n26/switch.py
+++ b/homeassistant/components/n26/switch.py
@@ -1,13 +1,9 @@
 """Support for N26 switches."""
-import logging
-
 from homeassistant.components.switch import SwitchEntity
 
 from . import DEFAULT_SCAN_INTERVAL, DOMAIN
 from .const import CARD_STATE_ACTIVE, CARD_STATE_BLOCKED, DATA
 
-_LOGGER = logging.getLogger(__name__)
-
 SCAN_INTERVAL = DEFAULT_SCAN_INTERVAL
 
 
diff --git a/homeassistant/components/nad/media_player.py b/homeassistant/components/nad/media_player.py
index a98e4eafe2d3bfe89925ac5ce8a311f3d08aaeca..7d8537db6c6240cd6c18c6fdd84fca5baecc4d93 100644
--- a/homeassistant/components/nad/media_player.py
+++ b/homeassistant/components/nad/media_player.py
@@ -1,6 +1,4 @@
 """Support for interfacing with NAD receivers through RS-232."""
-import logging
-
 from nad_receiver import NADReceiver, NADReceiverTCP, NADReceiverTelnet
 import voluptuous as vol
 
@@ -16,8 +14,6 @@ from homeassistant.components.media_player.const import (
 from homeassistant.const import CONF_HOST, CONF_NAME, STATE_OFF, STATE_ON
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_TYPE = "RS232"
 DEFAULT_SERIAL_PORT = "/dev/ttyUSB0"
 DEFAULT_PORT = 53
diff --git a/homeassistant/components/ness_alarm/__init__.py b/homeassistant/components/ness_alarm/__init__.py
index 7e5df865aa02cb53cbc9d2a718eacf99e0e5f387..e17e63ee46c29b64ce9df7c05a8ad5690443a150 100644
--- a/homeassistant/components/ness_alarm/__init__.py
+++ b/homeassistant/components/ness_alarm/__init__.py
@@ -1,7 +1,6 @@
 """Support for Ness D8X/D16X devices."""
 from collections import namedtuple
 import datetime
-import logging
 
 from nessclient import ArmingState, Client
 import voluptuous as vol
@@ -18,8 +17,6 @@ from homeassistant.helpers import config_validation as cv
 from homeassistant.helpers.discovery import async_load_platform
 from homeassistant.helpers.dispatcher import async_dispatcher_send
 
-_LOGGER = logging.getLogger(__name__)
-
 DOMAIN = "ness_alarm"
 DATA_NESS = "ness_alarm"
 
diff --git a/homeassistant/components/ness_alarm/binary_sensor.py b/homeassistant/components/ness_alarm/binary_sensor.py
index d7e7851792eb3ad29515762523754243f803fec1..ebe5face235ee7432723e3bd8b83d7e446add1ce 100644
--- a/homeassistant/components/ness_alarm/binary_sensor.py
+++ b/homeassistant/components/ness_alarm/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for Ness D8X/D16X zone states - represented as binary sensors."""
-import logging
-
 from homeassistant.components.binary_sensor import BinarySensorEntity
 from homeassistant.core import callback
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -14,8 +12,6 @@ from . import (
     ZoneChangedData,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Set up the Ness Alarm binary sensor devices."""
diff --git a/homeassistant/components/netatmo/api.py b/homeassistant/components/netatmo/api.py
index 6c5aee818d52cbdf2e6aa977fc5815c90c542bd5..c13a0b899c7ff2ffb382ecff1b4def7500cfd45d 100644
--- a/homeassistant/components/netatmo/api.py
+++ b/homeassistant/components/netatmo/api.py
@@ -1,14 +1,11 @@
 """API for Netatmo bound to HASS OAuth."""
 from asyncio import run_coroutine_threadsafe
-import logging
 
 import pyatmo
 
 from homeassistant import config_entries, core
 from homeassistant.helpers import config_entry_oauth2_flow
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class ConfigEntryNetatmoAuth(pyatmo.auth.NetatmoOAuth2):
     """Provide Netatmo authentication tied to an OAuth2 based config entry."""
diff --git a/homeassistant/components/netatmo/config_flow.py b/homeassistant/components/netatmo/config_flow.py
index 6ae1fd864dff3bcedfb10f7588e60a3c96325651..6217ef1a0e641e0147b47d89563eadb5f93f749e 100644
--- a/homeassistant/components/netatmo/config_flow.py
+++ b/homeassistant/components/netatmo/config_flow.py
@@ -22,8 +22,6 @@ from .const import (
     DOMAIN,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class NetatmoFlowHandler(
     config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN
diff --git a/homeassistant/components/netgear_lte/binary_sensor.py b/homeassistant/components/netgear_lte/binary_sensor.py
index f18c7a2ff86140ef3c4bd5fea2f2e99a33d0b6f7..e18c63ff5c0ed69aea27a402072132b90f0a88dc 100644
--- a/homeassistant/components/netgear_lte/binary_sensor.py
+++ b/homeassistant/components/netgear_lte/binary_sensor.py
@@ -1,14 +1,10 @@
 """Support for Netgear LTE binary sensors."""
-import logging
-
 from homeassistant.components.binary_sensor import DOMAIN, BinarySensorEntity
 from homeassistant.exceptions import PlatformNotReady
 
 from . import CONF_MONITORED_CONDITIONS, DATA_KEY, LTEEntity
 from .sensor_types import BINARY_SENSOR_CLASSES
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info):
     """Set up Netgear LTE binary sensor devices."""
diff --git a/homeassistant/components/netgear_lte/sensor.py b/homeassistant/components/netgear_lte/sensor.py
index 49301a61e4f0c9c639dcddffd35ddf2768fb41d9..abbedf79d64efea180b989c8e251e4f1fa4d4d7b 100644
--- a/homeassistant/components/netgear_lte/sensor.py
+++ b/homeassistant/components/netgear_lte/sensor.py
@@ -1,14 +1,10 @@
 """Support for Netgear LTE sensors."""
-import logging
-
 from homeassistant.components.sensor import DOMAIN
 from homeassistant.exceptions import PlatformNotReady
 
 from . import CONF_MONITORED_CONDITIONS, DATA_KEY, LTEEntity
 from .sensor_types import SENSOR_SMS, SENSOR_SMS_TOTAL, SENSOR_UNITS, SENSOR_USAGE
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info):
     """Set up Netgear LTE sensor devices."""
diff --git a/homeassistant/components/nexia/climate.py b/homeassistant/components/nexia/climate.py
index 5085242e6d7d9616dcf899bb921a525a6599f395..2b3f7de44893eab3a415620d80f60a66df183226 100644
--- a/homeassistant/components/nexia/climate.py
+++ b/homeassistant/components/nexia/climate.py
@@ -1,6 +1,4 @@
 """Support for Nexia / Trane XL thermostats."""
-import logging
-
 from nexia.const import (
     OPERATION_MODE_AUTO,
     OPERATION_MODE_COOL,
@@ -82,8 +80,6 @@ SET_HUMIDITY_SCHEMA = vol.Schema(
 )
 
 
-_LOGGER = logging.getLogger(__name__)
-
 #
 # Nexia has two bits to determine hvac mode
 # There are actually eight states so we map to
diff --git a/homeassistant/components/nextcloud/binary_sensor.py b/homeassistant/components/nextcloud/binary_sensor.py
index 67bc580bfdf3a14c1539bdc8127effe4670aea5d..c1f1dbf3076aa6a5f241dc5922c7424a6d14c492 100644
--- a/homeassistant/components/nextcloud/binary_sensor.py
+++ b/homeassistant/components/nextcloud/binary_sensor.py
@@ -1,12 +1,8 @@
 """Summary binary data from Nextcoud."""
-import logging
-
 from homeassistant.components.binary_sensor import BinarySensorEntity
 
 from . import BINARY_SENSORS, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Nextcloud sensors."""
diff --git a/homeassistant/components/nextcloud/sensor.py b/homeassistant/components/nextcloud/sensor.py
index aacd33ec3e8e9d48c8a5c6d2c2399272499f707f..e0be9dde69e6a28e1507c93894617f9a5c038fec 100644
--- a/homeassistant/components/nextcloud/sensor.py
+++ b/homeassistant/components/nextcloud/sensor.py
@@ -1,12 +1,8 @@
 """Summary data from Nextcoud."""
-import logging
-
 from homeassistant.helpers.entity import Entity
 
 from . import DOMAIN, SENSORS
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Nextcloud sensors."""
diff --git a/homeassistant/components/nightscout/__init__.py b/homeassistant/components/nightscout/__init__.py
index 1b67963bcc39854bc53a593804b1c504455c0766..4c8ab756ddf42d50d2d71e216c695962a65b5f01 100644
--- a/homeassistant/components/nightscout/__init__.py
+++ b/homeassistant/components/nightscout/__init__.py
@@ -1,7 +1,6 @@
 """The Nightscout integration."""
 import asyncio
 from asyncio import TimeoutError as AsyncIOTimeoutError
-import logging
 
 from aiohttp import ClientError
 from py_nightscout import Api as NightscoutAPI
@@ -16,7 +15,6 @@ from homeassistant.helpers.entity import SLOW_UPDATE_WARNING
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
 PLATFORMS = ["sensor"]
 _API_TIMEOUT = SLOW_UPDATE_WARNING - 1
 
diff --git a/homeassistant/components/notion/binary_sensor.py b/homeassistant/components/notion/binary_sensor.py
index 3702688eb94fdf0d98e646f8426fa6934df972f7..1597957c1f5275fd5116f342394042b92609356a 100644
--- a/homeassistant/components/notion/binary_sensor.py
+++ b/homeassistant/components/notion/binary_sensor.py
@@ -1,5 +1,4 @@
 """Support for Notion binary sensors."""
-import logging
 from typing import Callable
 
 from homeassistant.components.binary_sensor import (
@@ -29,8 +28,6 @@ from .const import (
     SENSOR_WINDOW_HINGED_VERTICAL,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 BINARY_SENSOR_TYPES = {
     SENSOR_BATTERY: ("Low Battery", "battery"),
     SENSOR_DOOR: ("Door", DEVICE_CLASS_DOOR),
diff --git a/homeassistant/components/nzbget/__init__.py b/homeassistant/components/nzbget/__init__.py
index 467cd8c06dbc1844ba3ab5efcc8d7242e904357f..eba5eb58baf712c352444a7f4d748656ebfe3eab 100644
--- a/homeassistant/components/nzbget/__init__.py
+++ b/homeassistant/components/nzbget/__init__.py
@@ -1,6 +1,5 @@
 """The NZBGet integration."""
 import asyncio
-import logging
 
 import voluptuous as vol
 
@@ -35,8 +34,6 @@ from .const import (
 )
 from .coordinator import NZBGetDataUpdateCoordinator
 
-_LOGGER = logging.getLogger(__name__)
-
 PLATFORMS = ["sensor", "switch"]
 
 CONFIG_SCHEMA = vol.Schema(
diff --git a/homeassistant/components/oem/climate.py b/homeassistant/components/oem/climate.py
index 734fe12d0f54494670179775641b1a8745518f42..49badaeb7b68a00527a3c10688a50aef5560a8b3 100644
--- a/homeassistant/components/oem/climate.py
+++ b/homeassistant/components/oem/climate.py
@@ -1,6 +1,4 @@
 """OpenEnergyMonitor Thermostat Support."""
-import logging
-
 from oemthermostat import Thermostat
 import requests
 import voluptuous as vol
@@ -26,9 +24,6 @@ from homeassistant.const import (
 )
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
-
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
     {
         vol.Required(CONF_HOST): cv.string,
diff --git a/homeassistant/components/omnilogic/sensor.py b/homeassistant/components/omnilogic/sensor.py
index deaee33ed82f6b76aae775abaddf70c47c489f3d..e1b4b387a46062cb916beb97a33b05ae50cbae13 100644
--- a/homeassistant/components/omnilogic/sensor.py
+++ b/homeassistant/components/omnilogic/sensor.py
@@ -1,7 +1,4 @@
 """Definition and setup of the Omnilogic Sensors for Home Assistant."""
-
-import logging
-
 from homeassistant.components.sensor import DEVICE_CLASS_TEMPERATURE
 from homeassistant.const import (
     CONCENTRATION_PARTS_PER_MILLION,
@@ -15,8 +12,6 @@ from homeassistant.const import (
 from .common import OmniLogicEntity, OmniLogicUpdateCoordinator
 from .const import COORDINATOR, DOMAIN, PUMP_TYPES
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, entry, async_add_entities):
     """Set up the sensor platform."""
diff --git a/homeassistant/components/openalpr_local/image_processing.py b/homeassistant/components/openalpr_local/image_processing.py
index 644f2c687b298a25273597495aa7bb0ab4df2e80..ee913070a11f2679708b57f4e4f8b063e8f6c6ac 100644
--- a/homeassistant/components/openalpr_local/image_processing.py
+++ b/homeassistant/components/openalpr_local/image_processing.py
@@ -1,7 +1,6 @@
 """Component that will help set the OpenALPR local for ALPR processing."""
 import asyncio
 import io
-import logging
 import re
 
 import voluptuous as vol
@@ -21,8 +20,6 @@ from homeassistant.core import callback, split_entity_id
 import homeassistant.helpers.config_validation as cv
 from homeassistant.util.async_ import run_callback_threadsafe
 
-_LOGGER = logging.getLogger(__name__)
-
 RE_ALPR_PLATE = re.compile(r"^plate\d*:")
 RE_ALPR_RESULT = re.compile(r"- (\w*)\s*confidence: (\d*.\d*)")
 
diff --git a/homeassistant/components/openerz/sensor.py b/homeassistant/components/openerz/sensor.py
index 6e72058b60b69bf1be74de2e945ad6b50957cbef..9a5bf3a981329c85c99ec0fbbc4f17968cb959c6 100644
--- a/homeassistant/components/openerz/sensor.py
+++ b/homeassistant/components/openerz/sensor.py
@@ -1,6 +1,5 @@
 """Support for OpenERZ API for Zurich city waste disposal system."""
 from datetime import timedelta
-import logging
 
 from openerz_api.main import OpenERZConnector
 import voluptuous as vol
@@ -9,7 +8,6 @@ import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.config_validation import PLATFORM_SCHEMA
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
 SCAN_INTERVAL = timedelta(hours=12)
 
 CONF_ZIP = "zip"
diff --git a/homeassistant/components/opensky/sensor.py b/homeassistant/components/opensky/sensor.py
index d916d9f7f29669d33a2b5a28fdb62dc8efc359ab..49edf8e7d0a93385c3a88fa96fcc8c1a06241b8f 100644
--- a/homeassistant/components/opensky/sensor.py
+++ b/homeassistant/components/opensky/sensor.py
@@ -1,6 +1,5 @@
 """Sensor for the Open Sky Network."""
 from datetime import timedelta
-import logging
 
 import requests
 import voluptuous as vol
@@ -21,8 +20,6 @@ import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 from homeassistant.util import distance as util_distance, location as util_location
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_ALTITUDE = "altitude"
 
 ATTR_CALLSIGN = "callsign"
diff --git a/homeassistant/components/openweathermap/abstract_owm_sensor.py b/homeassistant/components/openweathermap/abstract_owm_sensor.py
index 7378324b0a4ca00a82132e0bb281d9291b115996..809d2c2e572b64a03a1a39418a069a57050e1c20 100644
--- a/homeassistant/components/openweathermap/abstract_owm_sensor.py
+++ b/homeassistant/components/openweathermap/abstract_owm_sensor.py
@@ -1,14 +1,10 @@
 """Abstraction form OWM sensors."""
-import logging
-
 from homeassistant.const import ATTR_ATTRIBUTION
 from homeassistant.helpers.entity import Entity
 from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
 
 from .const import ATTRIBUTION, SENSOR_DEVICE_CLASS, SENSOR_NAME, SENSOR_UNIT
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class AbstractOpenWeatherMapSensor(Entity):
     """Abstract class for an OpenWeatherMap sensor."""
diff --git a/homeassistant/components/openweathermap/config_flow.py b/homeassistant/components/openweathermap/config_flow.py
index 1a50b035db868ebacc19f9be067f14d947a1ebcf..f383a5cb1235d498d18d38d6c1a7233846092f1f 100644
--- a/homeassistant/components/openweathermap/config_flow.py
+++ b/homeassistant/components/openweathermap/config_flow.py
@@ -1,6 +1,4 @@
 """Config flow for OpenWeatherMap."""
-import logging
-
 from pyowm import OWM
 from pyowm.exceptions.api_call_error import APICallError
 from pyowm.exceptions.api_response_error import UnauthorizedError
@@ -38,8 +36,6 @@ SCHEMA = vol.Schema(
     }
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class OpenWeatherMapConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
     """Config flow for OpenWeatherMap."""
diff --git a/homeassistant/components/openweathermap/sensor.py b/homeassistant/components/openweathermap/sensor.py
index c6363107d459ab6bbee19106f2eba78c16af5f0f..3879d270b522a723aeb2790e2dcbd2f604478bfc 100644
--- a/homeassistant/components/openweathermap/sensor.py
+++ b/homeassistant/components/openweathermap/sensor.py
@@ -1,6 +1,4 @@
 """Support for the OpenWeatherMap (OWM) service."""
-import logging
-
 from .abstract_owm_sensor import AbstractOpenWeatherMapSensor
 from .const import (
     ATTR_API_THIS_DAY_FORECAST,
@@ -16,8 +14,6 @@ from .const import (
 from .forecast_update_coordinator import ForecastUpdateCoordinator
 from .weather_update_coordinator import WeatherUpdateCoordinator
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up OpenWeatherMap sensor entities based on a config entry."""
diff --git a/homeassistant/components/openweathermap/weather.py b/homeassistant/components/openweathermap/weather.py
index cde7eb9673257d0d228316294d4a7b3e9a94e1e5..e1ec96e5d078bb06730a16778c53954d552669fc 100644
--- a/homeassistant/components/openweathermap/weather.py
+++ b/homeassistant/components/openweathermap/weather.py
@@ -1,6 +1,4 @@
 """Support for the OpenWeatherMap (OWM) service."""
-import logging
-
 from homeassistant.components.weather import WeatherEntity
 from homeassistant.const import TEMP_CELSIUS
 
@@ -21,8 +19,6 @@ from .const import (
 from .forecast_update_coordinator import ForecastUpdateCoordinator
 from .weather_update_coordinator import WeatherUpdateCoordinator
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up OpenWeatherMap weather entity based on a config entry."""
diff --git a/homeassistant/components/opnsense/device_tracker.py b/homeassistant/components/opnsense/device_tracker.py
index f7743d04a6d9f01a14d04c76433129bbb0f3d560..936872f7a86b61629146e3dfc7e9e0eb6e394edf 100644
--- a/homeassistant/components/opnsense/device_tracker.py
+++ b/homeassistant/components/opnsense/device_tracker.py
@@ -1,11 +1,7 @@
 """Device tracker support for OPNSense routers."""
-import logging
-
 from homeassistant.components.device_tracker import DeviceScanner
 from homeassistant.components.opnsense import CONF_TRACKER_INTERFACE, OPNSENSE_DATA
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_get_scanner(hass, config, discovery_info=None):
     """Configure the OPNSense device_tracker."""
diff --git a/homeassistant/components/otp/sensor.py b/homeassistant/components/otp/sensor.py
index df5f6af16957eaedb21b866a098df2f5a0def022..9f23f5ae6faa2ec52b393217f42538d9f3b39f9a 100644
--- a/homeassistant/components/otp/sensor.py
+++ b/homeassistant/components/otp/sensor.py
@@ -1,5 +1,4 @@
 """Support for One-Time Password (OTP)."""
-import logging
 import time
 
 import pyotp
@@ -11,8 +10,6 @@ from homeassistant.core import callback
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "OTP Sensor"
 
 TIME_STEP = 30  # Default time step assumed by Google Authenticator
diff --git a/homeassistant/components/ovo_energy/config_flow.py b/homeassistant/components/ovo_energy/config_flow.py
index d9048affd0493d54bc6ec9ed022cd27e3b02c441..dfedf78059256027662256fb84607cb1407911bf 100644
--- a/homeassistant/components/ovo_energy/config_flow.py
+++ b/homeassistant/components/ovo_energy/config_flow.py
@@ -1,6 +1,4 @@
 """Config flow to configure the OVO Energy integration."""
-import logging
-
 import aiohttp
 from ovoenergy.ovoenergy import OVOEnergy
 import voluptuous as vol
@@ -11,8 +9,6 @@ from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
 
 from .const import CONF_ACCOUNT_ID, DOMAIN  # pylint: disable=unused-import
 
-_LOGGER = logging.getLogger(__name__)
-
 USER_SCHEMA = vol.Schema(
     {vol.Required(CONF_USERNAME): str, vol.Required(CONF_PASSWORD): str}
 )
diff --git a/homeassistant/components/ovo_energy/sensor.py b/homeassistant/components/ovo_energy/sensor.py
index c43b7ec851424d4a1ccece6e66a41a642f3c4d0b..2a64fbe2d2253cbe192d55ea9798f6cf44fba638 100644
--- a/homeassistant/components/ovo_energy/sensor.py
+++ b/homeassistant/components/ovo_energy/sensor.py
@@ -1,6 +1,5 @@
 """Support for OVO Energy sensors."""
 from datetime import timedelta
-import logging
 
 from ovoenergy import OVODailyUsage
 from ovoenergy.ovoenergy import OVOEnergy
@@ -12,8 +11,6 @@ from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
 from . import OVOEnergyDeviceEntity
 from .const import DATA_CLIENT, DATA_COORDINATOR, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 SCAN_INTERVAL = timedelta(seconds=300)
 PARALLEL_UPDATES = 4
 
diff --git a/homeassistant/components/owntracks/device_tracker.py b/homeassistant/components/owntracks/device_tracker.py
index d4a5399a0ff3fa27409261c36bb2e53dfd62c7f9..8a8fdc52fb1b7987b7c5a6e79e47def7bc6371f7 100644
--- a/homeassistant/components/owntracks/device_tracker.py
+++ b/homeassistant/components/owntracks/device_tracker.py
@@ -1,6 +1,4 @@
 """Device tracker platform that adds support for OwnTracks over MQTT."""
-import logging
-
 from homeassistant.components.device_tracker.config_entry import TrackerEntity
 from homeassistant.components.device_tracker.const import (
     ATTR_SOURCE_TYPE,
@@ -19,8 +17,6 @@ from homeassistant.helpers.restore_state import RestoreEntity
 
 from . import DOMAIN as OT_DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, entry, async_add_entities):
     """Set up OwnTracks based off an entry."""
diff --git a/homeassistant/components/ozw/binary_sensor.py b/homeassistant/components/ozw/binary_sensor.py
index 64fd66394f886d3f769297c30522a1459fd3b981..91b26218c978dab88673d7c92f1ecbd871c5d5a0 100644
--- a/homeassistant/components/ozw/binary_sensor.py
+++ b/homeassistant/components/ozw/binary_sensor.py
@@ -1,7 +1,4 @@
 """Representation of Z-Wave binary_sensors."""
-
-import logging
-
 from openzwavemqtt.const import CommandClass, ValueIndex, ValueType
 
 from homeassistant.components.binary_sensor import (
@@ -25,8 +22,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from .const import DATA_UNSUBSCRIBE, DOMAIN
 from .entity import ZWaveDeviceEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 NOTIFICATION_TYPE = "index"
 NOTIFICATION_VALUES = "values"
 NOTIFICATION_DEVICE_CLASS = "device_class"
diff --git a/homeassistant/components/ozw/cover.py b/homeassistant/components/ozw/cover.py
index 229df25abebc0e664004f1d17b1202032bc71a88..0ac2da91e44f7a0f22180fee0d5600194b8f5fc1 100644
--- a/homeassistant/components/ozw/cover.py
+++ b/homeassistant/components/ozw/cover.py
@@ -1,6 +1,4 @@
 """Support for Z-Wave cover devices."""
-import logging
-
 from openzwavemqtt.const import CommandClass
 
 from homeassistant.components.cover import (
@@ -18,9 +16,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from .const import DATA_UNSUBSCRIBE, DOMAIN
 from .entity import ZWaveDeviceEntity
 
-_LOGGER = logging.getLogger(__name__)
-
-
 SUPPORTED_FEATURES_POSITION = SUPPORT_OPEN | SUPPORT_CLOSE | SUPPORT_SET_POSITION
 SUPPORT_GARAGE = SUPPORT_OPEN | SUPPORT_CLOSE
 VALUE_SELECTED_ID = "Selected_id"
diff --git a/homeassistant/components/panasonic_bluray/media_player.py b/homeassistant/components/panasonic_bluray/media_player.py
index ddbd9f6670be34522636abb7f321042f57837120..792ee644bd9e9d15ea8ab9c31b3599ed3b0dcdf3 100644
--- a/homeassistant/components/panasonic_bluray/media_player.py
+++ b/homeassistant/components/panasonic_bluray/media_player.py
@@ -1,6 +1,5 @@
 """Support for Panasonic Blu-ray players."""
 from datetime import timedelta
-import logging
 
 from panacotta import PanasonicBD
 import voluptuous as vol
@@ -23,8 +22,6 @@ from homeassistant.const import (
 import homeassistant.helpers.config_validation as cv
 from homeassistant.util.dt import utcnow
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "Panasonic Blu-Ray"
 
 SCAN_INTERVAL = timedelta(seconds=30)
diff --git a/homeassistant/components/pcal9535a/binary_sensor.py b/homeassistant/components/pcal9535a/binary_sensor.py
index 8e14ea8ce69065a7a1f69b55a0f63f4cffb41453..79ad8eb8016c4dbd5ae7b7b6c554c81f86d4742b 100644
--- a/homeassistant/components/pcal9535a/binary_sensor.py
+++ b/homeassistant/components/pcal9535a/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for binary sensor using I2C PCAL9535A chip."""
-import logging
-
 from pcal9535a import PCAL9535A
 import voluptuous as vol
 
@@ -8,8 +6,6 @@ from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensor
 from homeassistant.const import DEVICE_DEFAULT_NAME
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_INVERT_LOGIC = "invert_logic"
 CONF_I2C_ADDRESS = "i2c_address"
 CONF_I2C_BUS = "i2c_bus"
diff --git a/homeassistant/components/pcal9535a/switch.py b/homeassistant/components/pcal9535a/switch.py
index 7b4cc919dbda3a25c1bcc567e0d55d6406e15f04..897d41e9d9805d8e96f790de9777476dfb904473 100644
--- a/homeassistant/components/pcal9535a/switch.py
+++ b/homeassistant/components/pcal9535a/switch.py
@@ -1,6 +1,4 @@
 """Support for switch sensor using I2C PCAL9535A chip."""
-import logging
-
 from pcal9535a import PCAL9535A
 import voluptuous as vol
 
@@ -8,8 +6,6 @@ from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
 from homeassistant.const import DEVICE_DEFAULT_NAME
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_INVERT_LOGIC = "invert_logic"
 CONF_I2C_ADDRESS = "i2c_address"
 CONF_I2C_BUS = "i2c_bus"
diff --git a/homeassistant/components/pi4ioe5v9xxxx/binary_sensor.py b/homeassistant/components/pi4ioe5v9xxxx/binary_sensor.py
index 4eb901017103a317991e72dfac205e30a4d444b8..61cedb8f063271c8eab52c2fbe94b348778149c6 100644
--- a/homeassistant/components/pi4ioe5v9xxxx/binary_sensor.py
+++ b/homeassistant/components/pi4ioe5v9xxxx/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for binary sensor using RPi GPIO."""
-import logging
-
 from pi4ioe5v9xxxx import pi4ioe5v9xxxx  # pylint: disable=import-error
 import voluptuous as vol
 
@@ -8,8 +6,6 @@ from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensor
 from homeassistant.const import DEVICE_DEFAULT_NAME
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_INVERT_LOGIC = "invert_logic"
 CONF_PINS = "pins"
 CONF_I2CBUS = "i2c_bus"
diff --git a/homeassistant/components/pi4ioe5v9xxxx/switch.py b/homeassistant/components/pi4ioe5v9xxxx/switch.py
index a147c7f310d7459557080463ddb54f80422a5cc1..6bac673459f8c8167380265bac7140891e0c26b4 100644
--- a/homeassistant/components/pi4ioe5v9xxxx/switch.py
+++ b/homeassistant/components/pi4ioe5v9xxxx/switch.py
@@ -1,6 +1,4 @@
 """Allows to configure a switch using RPi GPIO."""
-import logging
-
 from pi4ioe5v9xxxx import pi4ioe5v9xxxx  # pylint: disable=import-error
 import voluptuous as vol
 
@@ -8,8 +6,6 @@ from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
 from homeassistant.const import DEVICE_DEFAULT_NAME
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_PINS = "pins"
 CONF_INVERT_LOGIC = "invert_logic"
 CONF_I2CBUS = "i2c_bus"
diff --git a/homeassistant/components/pi_hole/binary_sensor.py b/homeassistant/components/pi_hole/binary_sensor.py
index d572bb390e54d7f4ccb5ab2a1d5d929558162dc1..714a9f669c821216876132d5e73c21cd8d743be5 100644
--- a/homeassistant/components/pi_hole/binary_sensor.py
+++ b/homeassistant/components/pi_hole/binary_sensor.py
@@ -1,14 +1,10 @@
 """Support for getting status from a Pi-hole system."""
-import logging
-
 from homeassistant.components.binary_sensor import BinarySensorEntity
 from homeassistant.const import CONF_NAME
 
 from . import PiHoleEntity
 from .const import DATA_KEY_API, DATA_KEY_COORDINATOR, DOMAIN as PIHOLE_DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, entry, async_add_entities):
     """Set up the Pi-hole binary sensor."""
diff --git a/homeassistant/components/pi_hole/sensor.py b/homeassistant/components/pi_hole/sensor.py
index 179e61a21cc23ad1ee46965f860539a4d77eb0b8..2f5873b14c1c509a7628f227b2697b12c59094a2 100644
--- a/homeassistant/components/pi_hole/sensor.py
+++ b/homeassistant/components/pi_hole/sensor.py
@@ -1,5 +1,4 @@
 """Support for getting statistical data from a Pi-hole system."""
-import logging
 
 from homeassistant.const import CONF_NAME
 
@@ -13,8 +12,6 @@ from .const import (
     SENSOR_LIST,
 )
 
-LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, entry, async_add_entities):
     """Set up the Pi-hole sensor."""
diff --git a/homeassistant/components/pilight/base_class.py b/homeassistant/components/pilight/base_class.py
index 382d47f41cd4fd564a926fc82725a23b76c6dde2..95eb987875b1e4edefcf50da7ff7db25a9bb7312 100644
--- a/homeassistant/components/pilight/base_class.py
+++ b/homeassistant/components/pilight/base_class.py
@@ -1,6 +1,4 @@
 """Base class for pilight."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.pilight import DOMAIN, EVENT, SERVICE_NAME
@@ -28,8 +26,6 @@ from .const import (
     CONF_UNITCODE,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 COMMAND_SCHEMA = vol.Schema(
     {
         vol.Optional(CONF_PROTOCOL): cv.string,
diff --git a/homeassistant/components/pilight/binary_sensor.py b/homeassistant/components/pilight/binary_sensor.py
index a53e575b8754bce2823fee20b44db8e2c8a115f1..e380d39bef4c90d2a0878b6b25ce0f55aa666d51 100644
--- a/homeassistant/components/pilight/binary_sensor.py
+++ b/homeassistant/components/pilight/binary_sensor.py
@@ -1,6 +1,5 @@
 """Support for Pilight binary sensors."""
 import datetime
-import logging
 
 import voluptuous as vol
 
@@ -17,8 +16,6 @@ from homeassistant.helpers import config_validation as cv
 from homeassistant.helpers.event import track_point_in_time
 from homeassistant.util import dt as dt_util
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_VARIABLE = "variable"
 CONF_RESET_DELAY_SEC = "reset_delay_sec"
 
diff --git a/homeassistant/components/pilight/light.py b/homeassistant/components/pilight/light.py
index 11eeb02293e1181915729ea201379637f919c513..1ab7cd207c144bfde7944f29a50966a567fac8fa 100644
--- a/homeassistant/components/pilight/light.py
+++ b/homeassistant/components/pilight/light.py
@@ -1,6 +1,4 @@
 """Support for switching devices via Pilight to on and off."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.light import (
@@ -15,8 +13,6 @@ import homeassistant.helpers.config_validation as cv
 from .base_class import SWITCHES_SCHEMA, PilightBaseDevice
 from .const import CONF_DIMLEVEL_MAX, CONF_DIMLEVEL_MIN
 
-_LOGGER = logging.getLogger(__name__)
-
 LIGHTS_SCHEMA = SWITCHES_SCHEMA.extend(
     {
         vol.Optional(CONF_DIMLEVEL_MIN, default=0): cv.positive_int,
diff --git a/homeassistant/components/pilight/switch.py b/homeassistant/components/pilight/switch.py
index 8fb2229f55c7c2ad42cfa4d71129a8148eb2b3b4..e190df3273207510e147967d6a0b03c27040c7db 100644
--- a/homeassistant/components/pilight/switch.py
+++ b/homeassistant/components/pilight/switch.py
@@ -1,6 +1,4 @@
 """Support for switching devices via Pilight to on and off."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
@@ -9,8 +7,6 @@ import homeassistant.helpers.config_validation as cv
 
 from .base_class import SWITCHES_SCHEMA, PilightBaseDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
     {vol.Required(CONF_SWITCHES): vol.Schema({cv.string: SWITCHES_SCHEMA})}
 )
diff --git a/homeassistant/components/pjlink/media_player.py b/homeassistant/components/pjlink/media_player.py
index e601650d08c169849b078c2d5b92428eb202ee35..74536ba8393ba0015a1f33bad4b9ff5217152ad1 100644
--- a/homeassistant/components/pjlink/media_player.py
+++ b/homeassistant/components/pjlink/media_player.py
@@ -1,6 +1,4 @@
 """Support for controlling projector via the PJLink protocol."""
-import logging
-
 from pypjlink import MUTE_AUDIO, Projector
 from pypjlink.projector import ProjectorError
 import voluptuous as vol
@@ -22,8 +20,6 @@ from homeassistant.const import (
 )
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_ENCODING = "encoding"
 
 DEFAULT_PORT = 4352
diff --git a/homeassistant/components/plugwise/__init__.py b/homeassistant/components/plugwise/__init__.py
index 5a684a233eb6634127486ac5f889d3863390c70b..ee6c44bc5587a6150fe1d2cf739b0a09d1b76a57 100644
--- a/homeassistant/components/plugwise/__init__.py
+++ b/homeassistant/components/plugwise/__init__.py
@@ -1,7 +1,5 @@
 """Plugwise platform for Home Assistant Core."""
-
 import asyncio
-import logging
 
 import voluptuous as vol
 
@@ -14,8 +12,6 @@ from .gateway import async_setup_entry_gw
 
 CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup(hass: HomeAssistant, config: dict):
     """Set up the Plugwise platform."""
diff --git a/homeassistant/components/plum_lightpad/light.py b/homeassistant/components/plum_lightpad/light.py
index a94014ff1f935638c358f309e4bd87eeab9c418b..feacec4492b8b3f6dbed31e46826922df327a2d2 100644
--- a/homeassistant/components/plum_lightpad/light.py
+++ b/homeassistant/components/plum_lightpad/light.py
@@ -1,6 +1,5 @@
 """Support for Plum Lightpad lights."""
 import asyncio
-import logging
 from typing import Callable, List
 
 from plumlightpad import Plum
@@ -20,8 +19,6 @@ import homeassistant.util.color as color_util
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistant,
diff --git a/homeassistant/components/poolsense/binary_sensor.py b/homeassistant/components/poolsense/binary_sensor.py
index 6c3f5dc4cda2f6a5d61634bf91865c8813e7735d..ea07f1637a6615050ed9129e0f7030f504eeb34d 100644
--- a/homeassistant/components/poolsense/binary_sensor.py
+++ b/homeassistant/components/poolsense/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for PoolSense binary sensors."""
-import logging
-
 from homeassistant.components.binary_sensor import (
     DEVICE_CLASS_PROBLEM,
     BinarySensorEntity,
@@ -10,8 +8,6 @@ from homeassistant.const import CONF_EMAIL
 from . import PoolSenseEntity
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 BINARY_SENSORS = {
     "pH Status": {
         "unit": None,
diff --git a/homeassistant/components/poolsense/sensor.py b/homeassistant/components/poolsense/sensor.py
index b79f7499bcddb04f421919ba03e17f96b5aa46eb..a64cc0aef61e5783e05c533b27de2951c96f6c38 100644
--- a/homeassistant/components/poolsense/sensor.py
+++ b/homeassistant/components/poolsense/sensor.py
@@ -1,6 +1,4 @@
 """Sensor platform for the PoolSense sensor."""
-import logging
-
 from homeassistant.const import (
     ATTR_ATTRIBUTION,
     CONF_EMAIL,
@@ -15,8 +13,6 @@ from homeassistant.helpers.entity import Entity
 from . import PoolSenseEntity
 from .const import ATTRIBUTION, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 SENSORS = {
     "Chlorine": {
         "unit": "mV",
diff --git a/homeassistant/components/powerwall/binary_sensor.py b/homeassistant/components/powerwall/binary_sensor.py
index 1d38e1671345f95a7d6348a887c7f891eb995c9c..1cacaa5fc42499282055ff5d8316fec9a5925e4d 100644
--- a/homeassistant/components/powerwall/binary_sensor.py
+++ b/homeassistant/components/powerwall/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for powerwall binary sensors."""
-import logging
-
 from tesla_powerwall import GridStatus
 
 from homeassistant.components.binary_sensor import (
@@ -23,8 +21,6 @@ from .const import (
 )
 from .entity import PowerWallEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the August sensors."""
diff --git a/homeassistant/components/profiler/__init__.py b/homeassistant/components/profiler/__init__.py
index 3c989e13eeb45853730c712b4af5840c0529820c..518e448d4ecab15cd1e46304801bc58c880428ef 100644
--- a/homeassistant/components/profiler/__init__.py
+++ b/homeassistant/components/profiler/__init__.py
@@ -1,7 +1,6 @@
 """The profiler integration."""
 import asyncio
 import cProfile
-import logging
 import time
 
 from pyprof2calltree import convert
@@ -17,8 +16,6 @@ from .const import DOMAIN
 SERVICE_START = "start"
 CONF_SECONDS = "seconds"
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
     """Set up the profiler component."""
diff --git a/homeassistant/components/profiler/config_flow.py b/homeassistant/components/profiler/config_flow.py
index 73f4f86255b04e7a2ec749821f0fda4283f607b1..9a71b64a1790c18a6bed747e35542b3daf2716fe 100644
--- a/homeassistant/components/profiler/config_flow.py
+++ b/homeassistant/components/profiler/config_flow.py
@@ -1,6 +1,4 @@
 """Config flow for Profiler integration."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant import config_entries
@@ -8,8 +6,6 @@ from homeassistant import config_entries
 from .const import DEFAULT_NAME
 from .const import DOMAIN  # pylint: disable=unused-import
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
     """Handle a config flow for Profiler."""
diff --git a/homeassistant/components/ps4/config_flow.py b/homeassistant/components/ps4/config_flow.py
index 38e18d624ef3d3e54b1d5db68bf92ab3062a3a8b..a8bdb2b9c439e46c91999c16bc90bddaa672faf2 100644
--- a/homeassistant/components/ps4/config_flow.py
+++ b/homeassistant/components/ps4/config_flow.py
@@ -1,6 +1,5 @@
 """Config Flow for PlayStation 4."""
 from collections import OrderedDict
-import logging
 
 from pyps4_2ndscreen.errors import CredentialTimeout
 from pyps4_2ndscreen.helpers import Helper
@@ -20,8 +19,6 @@ from homeassistant.util import location
 
 from .const import CONFIG_ENTRY_VERSION, DEFAULT_ALIAS, DEFAULT_NAME, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_MODE = "Config Mode"
 CONF_AUTO = "Auto Discover"
 CONF_MANUAL = "Manual Entry"
diff --git a/homeassistant/components/rainbird/switch.py b/homeassistant/components/rainbird/switch.py
index ce6cf9d1b220e96343a4980cd0e6eb10a79d4d18..bccd4d2986ca6954049f52fe4a6e05acb618f4bb 100644
--- a/homeassistant/components/rainbird/switch.py
+++ b/homeassistant/components/rainbird/switch.py
@@ -1,7 +1,4 @@
 """Support for Rain Bird Irrigation system LNK WiFi Module."""
-
-import logging
-
 from pyrainbird import AvailableStations, RainbirdController
 import voluptuous as vol
 
@@ -11,8 +8,6 @@ from homeassistant.helpers import config_validation as cv
 
 from . import CONF_ZONES, DATA_RAINBIRD, DOMAIN, RAINBIRD_CONTROLLER
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_DURATION = "duration"
 
 SERVICE_START_IRRIGATION = "start_irrigation"
diff --git a/homeassistant/components/rainmachine/binary_sensor.py b/homeassistant/components/rainmachine/binary_sensor.py
index b3f7ffb7d6bf2406571b4e6399ba5c4e32b72168..e2ef8cea64b4424b52ba3ac48fafbd9e8d9ff45c 100644
--- a/homeassistant/components/rainmachine/binary_sensor.py
+++ b/homeassistant/components/rainmachine/binary_sensor.py
@@ -1,6 +1,4 @@
 """This platform provides binary sensors for key RainMachine data."""
-import logging
-
 from homeassistant.components.binary_sensor import BinarySensorEntity
 from homeassistant.core import callback
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -15,8 +13,6 @@ from .const import (
     SENSOR_UPDATE_TOPIC,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 TYPE_FLOW_SENSOR = "flow_sensor"
 TYPE_FREEZE = "freeze"
 TYPE_FREEZE_PROTECTION = "freeze_protection"
diff --git a/homeassistant/components/rainmachine/sensor.py b/homeassistant/components/rainmachine/sensor.py
index 8534748978d68cd1b433a5b2dbc81d6f5fa4af40..ef1b88e648917e0e57b752cacbfbcd4dab38151d 100644
--- a/homeassistant/components/rainmachine/sensor.py
+++ b/homeassistant/components/rainmachine/sensor.py
@@ -1,6 +1,4 @@
 """This platform provides support for sensor data from RainMachine."""
-import logging
-
 from homeassistant.const import TEMP_CELSIUS, VOLUME_CUBIC_METERS
 from homeassistant.core import callback
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -14,8 +12,6 @@ from .const import (
     SENSOR_UPDATE_TOPIC,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 TYPE_FLOW_SENSOR_CLICK_M3 = "flow_sensor_clicks_cubic_meter"
 TYPE_FLOW_SENSOR_CONSUMED_LITERS = "flow_sensor_consumed_liters"
 TYPE_FLOW_SENSOR_START_INDEX = "flow_sensor_start_index"
diff --git a/homeassistant/components/random/binary_sensor.py b/homeassistant/components/random/binary_sensor.py
index baec29c59373917d5e3034742a51359d1fdcfd31..7cd1208a3eee7bc8dd5ffcc1ccbbf5b42b7ac72f 100644
--- a/homeassistant/components/random/binary_sensor.py
+++ b/homeassistant/components/random/binary_sensor.py
@@ -1,5 +1,4 @@
 """Support for showing random states."""
-import logging
 from random import getrandbits
 
 import voluptuous as vol
@@ -12,8 +11,6 @@ from homeassistant.components.binary_sensor import (
 from homeassistant.const import CONF_DEVICE_CLASS, CONF_NAME
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "Random Binary Sensor"
 
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
diff --git a/homeassistant/components/random/sensor.py b/homeassistant/components/random/sensor.py
index 4ebd710f1031c97d126e9df32a5fad1418281d2f..58d996bc6ec91315248097d4fc1f6e1353e444e0 100644
--- a/homeassistant/components/random/sensor.py
+++ b/homeassistant/components/random/sensor.py
@@ -1,5 +1,4 @@
 """Support for showing random numbers."""
-import logging
 from random import randrange
 
 import voluptuous as vol
@@ -14,8 +13,6 @@ from homeassistant.const import (
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_MAXIMUM = "maximum"
 ATTR_MINIMUM = "minimum"
 
diff --git a/homeassistant/components/raspyrfm/switch.py b/homeassistant/components/raspyrfm/switch.py
index cd4e28e1f10e120be526c10d5b5c7ce0fb3d4a89..56c42cf7e69c33d6fdb507e9783f3590abdabf55 100644
--- a/homeassistant/components/raspyrfm/switch.py
+++ b/homeassistant/components/raspyrfm/switch.py
@@ -1,6 +1,4 @@
 """Support for switches that can be controlled using the RaspyRFM rc module."""
-import logging
-
 from raspyrfm_client import RaspyRFMClient
 from raspyrfm_client.device_implementations.controlunit.actions import Action
 from raspyrfm_client.device_implementations.controlunit.controlunit_constants import (
@@ -22,8 +20,6 @@ from homeassistant.const import (
 )
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_GATEWAY_MANUFACTURER = "gateway_manufacturer"
 CONF_GATEWAY_MODEL = "gateway_model"
 CONF_CONTROLUNIT_MANUFACTURER = "controlunit_manufacturer"
diff --git a/homeassistant/components/remote_rpi_gpio/__init__.py b/homeassistant/components/remote_rpi_gpio/__init__.py
index aa0a75c333186f37c46ab36b67d2027eaf2f87af..afa60e44bed7323300543cae753864fff90a3665 100644
--- a/homeassistant/components/remote_rpi_gpio/__init__.py
+++ b/homeassistant/components/remote_rpi_gpio/__init__.py
@@ -1,11 +1,7 @@
 """Support for controlling GPIO pins of a Raspberry Pi."""
-import logging
-
 from gpiozero import LED, Button
 from gpiozero.pins.pigpio import PiGPIOFactory
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_BOUNCETIME = "bouncetime"
 CONF_INVERT_LOGIC = "invert_logic"
 CONF_PULL_MODE = "pull_mode"
diff --git a/homeassistant/components/remote_rpi_gpio/binary_sensor.py b/homeassistant/components/remote_rpi_gpio/binary_sensor.py
index d97183de86ebc7061119c3000bc0b0322f60a0fc..86966ec4d87571ee98a803be1b16fec2de08aedd 100644
--- a/homeassistant/components/remote_rpi_gpio/binary_sensor.py
+++ b/homeassistant/components/remote_rpi_gpio/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for binary sensor using RPi GPIO."""
-import logging
-
 import requests
 import voluptuous as vol
 
@@ -18,8 +16,6 @@ from . import (
 )
 from .. import remote_rpi_gpio
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_PORTS = "ports"
 
 _SENSORS_SCHEMA = vol.Schema({cv.positive_int: cv.string})
diff --git a/homeassistant/components/remote_rpi_gpio/switch.py b/homeassistant/components/remote_rpi_gpio/switch.py
index 48e072a5d6b69f728405e09d7bfedc4d5f4e1923..6730342e26052658e12cc72ada919263c2f5ba69 100644
--- a/homeassistant/components/remote_rpi_gpio/switch.py
+++ b/homeassistant/components/remote_rpi_gpio/switch.py
@@ -1,6 +1,4 @@
 """Allows to configure a switch using RPi GPIO."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
@@ -10,8 +8,6 @@ import homeassistant.helpers.config_validation as cv
 from . import CONF_INVERT_LOGIC, DEFAULT_INVERT_LOGIC
 from .. import remote_rpi_gpio
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_PORTS = "ports"
 
 _SENSORS_SCHEMA = vol.Schema({cv.positive_int: cv.string})
diff --git a/homeassistant/components/rest/binary_sensor.py b/homeassistant/components/rest/binary_sensor.py
index 82df088b01a948843093ad6563bd0a1c499c8452..5d185889e2485735ec9269f9ebc3d8867983cd6f 100644
--- a/homeassistant/components/rest/binary_sensor.py
+++ b/homeassistant/components/rest/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for RESTful binary sensors."""
-import logging
-
 import httpx
 import voluptuous as vol
 
@@ -34,8 +32,6 @@ from homeassistant.helpers.reload import async_setup_reload_service
 from . import DOMAIN, PLATFORMS
 from .sensor import RestData
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_METHOD = "GET"
 DEFAULT_NAME = "REST Binary Sensor"
 DEFAULT_VERIFY_SSL = True
diff --git a/homeassistant/components/rflink/binary_sensor.py b/homeassistant/components/rflink/binary_sensor.py
index 8962af3c0d43c2714b7a5c6c1c6744ce017d153d..dd16343898d8bb4284836e48ecd828f072ff84f8 100644
--- a/homeassistant/components/rflink/binary_sensor.py
+++ b/homeassistant/components/rflink/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for Rflink binary sensors."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.binary_sensor import (
@@ -17,8 +15,6 @@ from . import CONF_ALIASES, CONF_DEVICES, RflinkDevice
 CONF_OFF_DELAY = "off_delay"
 DEFAULT_FORCE_UPDATE = False
 
-_LOGGER = logging.getLogger(__name__)
-
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
     {
         vol.Optional(CONF_DEVICES, default={}): {
diff --git a/homeassistant/components/rflink/sensor.py b/homeassistant/components/rflink/sensor.py
index 9394c568a73bca7d4462111f7a61e43f02a418aa..2c27477e6c64406dae140827952a7756f5b69e5d 100644
--- a/homeassistant/components/rflink/sensor.py
+++ b/homeassistant/components/rflink/sensor.py
@@ -1,6 +1,4 @@
 """Support for Rflink sensors."""
-import logging
-
 from rflink.parser import PACKET_FIELDS, UNITS
 import voluptuous as vol
 
@@ -28,8 +26,6 @@ from . import (
     RflinkDevice,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 SENSOR_ICONS = {
     "humidity": "mdi:water-percent",
     "battery": "mdi:battery",
diff --git a/homeassistant/components/rflink/switch.py b/homeassistant/components/rflink/switch.py
index 266f9a4625efcca5741ee4e37ca46852df2dc6ab..77e1f821bad08770cca8bb6245f13f4c11207d72 100644
--- a/homeassistant/components/rflink/switch.py
+++ b/homeassistant/components/rflink/switch.py
@@ -1,6 +1,4 @@
 """Support for Rflink switches."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
@@ -20,8 +18,6 @@ from . import (
     SwitchableRflinkDevice,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 PARALLEL_UPDATES = 0
 
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
diff --git a/homeassistant/components/rfxtrx/config_flow.py b/homeassistant/components/rfxtrx/config_flow.py
index e1d30405b159c583113056211fb9109e2485776b..624b7ade69d192d96ec4602fcce47a75e123caf2 100644
--- a/homeassistant/components/rfxtrx/config_flow.py
+++ b/homeassistant/components/rfxtrx/config_flow.py
@@ -1,6 +1,5 @@
 """Config flow for RFXCOM RFXtrx integration."""
 import copy
-import logging
 import os
 
 import RFXtrx as rfxtrxmod
@@ -47,8 +46,6 @@ from .cover import supported as cover_supported
 from .light import supported as light_supported
 from .switch import supported as switch_supported
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_EVENT_CODE = "event_code"
 CONF_MANUAL_PATH = "Enter Manually"
 
diff --git a/homeassistant/components/ring/binary_sensor.py b/homeassistant/components/ring/binary_sensor.py
index ccec9e6ad360b795591851f8480d28cfbc3883c9..bbfbbf1690e0d8c9da2687964daa56d4d6b38ee5 100644
--- a/homeassistant/components/ring/binary_sensor.py
+++ b/homeassistant/components/ring/binary_sensor.py
@@ -1,6 +1,5 @@
 """This component provides HA sensor support for Ring Door Bell/Chimes."""
 from datetime import datetime
-import logging
 
 from homeassistant.components.binary_sensor import (
     DEVICE_CLASS_MOTION,
@@ -12,8 +11,6 @@ from homeassistant.core import callback
 from . import DOMAIN
 from .entity import RingEntityMixin
 
-_LOGGER = logging.getLogger(__name__)
-
 # Sensor types: Name, category, device_class
 SENSOR_TYPES = {
     "ding": ["Ding", ["doorbots", "authorized_doorbots"], DEVICE_CLASS_OCCUPANCY],
diff --git a/homeassistant/components/ring/sensor.py b/homeassistant/components/ring/sensor.py
index f59c3b2e61d2a7dc70f8728148985fa9d1571c79..0a1cc85230f9fe6332a9786390170164be212e93 100644
--- a/homeassistant/components/ring/sensor.py
+++ b/homeassistant/components/ring/sensor.py
@@ -1,6 +1,4 @@
 """This component provides HA sensor support for Ring Door Bell/Chimes."""
-import logging
-
 from homeassistant.const import PERCENTAGE, SIGNAL_STRENGTH_DECIBELS_MILLIWATT
 from homeassistant.core import callback
 from homeassistant.helpers.entity import Entity
@@ -9,8 +7,6 @@ from homeassistant.helpers.icon import icon_for_battery_level
 from . import DOMAIN
 from .entity import RingEntityMixin
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up a sensor for a Ring device."""
diff --git a/homeassistant/components/roomba/binary_sensor.py b/homeassistant/components/roomba/binary_sensor.py
index 9acea9e4dbe394d70762666207cf6e2f33bdaf8c..ea39fba2f8e1a7cba8c6a0953bbb51bff997ba94 100644
--- a/homeassistant/components/roomba/binary_sensor.py
+++ b/homeassistant/components/roomba/binary_sensor.py
@@ -1,14 +1,10 @@
 """Roomba binary sensor entities."""
-import logging
-
 from homeassistant.components.binary_sensor import BinarySensorEntity
 
 from . import roomba_reported_state
 from .const import BLID, DOMAIN, ROOMBA_SESSION
 from .irobot_base import IRobotEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the iRobot Roomba vacuum cleaner."""
diff --git a/homeassistant/components/roomba/config_flow.py b/homeassistant/components/roomba/config_flow.py
index cffbb3de4c9aaf69b4c562394ec87018781a6d13..b25c4ece4404df0685f6fb7508624504bae54d47 100644
--- a/homeassistant/components/roomba/config_flow.py
+++ b/homeassistant/components/roomba/config_flow.py
@@ -1,6 +1,4 @@
 """Config flow to configure roomba component."""
-import logging
-
 from roomba import Roomba
 import voluptuous as vol
 
@@ -30,8 +28,6 @@ DATA_SCHEMA = vol.Schema(
     }
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def validate_input(hass: core.HomeAssistant, data):
     """Validate the user input allows us to connect.
diff --git a/homeassistant/components/roomba/sensor.py b/homeassistant/components/roomba/sensor.py
index 54ea1eade0d9b812e148f1990f3fc986689e4713..f2d08f087720c9193e035253e1da9d1b8da1c23d 100644
--- a/homeassistant/components/roomba/sensor.py
+++ b/homeassistant/components/roomba/sensor.py
@@ -1,6 +1,4 @@
 """Sensor for checking the battery level of Roomba."""
-import logging
-
 from homeassistant.components.vacuum import STATE_DOCKED
 from homeassistant.const import DEVICE_CLASS_BATTERY, PERCENTAGE
 from homeassistant.helpers.icon import icon_for_battery_level
@@ -8,8 +6,6 @@ from homeassistant.helpers.icon import icon_for_battery_level
 from .const import BLID, DOMAIN, ROOMBA_SESSION
 from .irobot_base import IRobotEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the iRobot Roomba vacuum cleaner."""
diff --git a/homeassistant/components/roomba/vacuum.py b/homeassistant/components/roomba/vacuum.py
index bc2e58846d1f8704e39bcaf9e8ac17c5614e833a..f4e0d4f0138e03dd9685a195d957b088272ea299 100644
--- a/homeassistant/components/roomba/vacuum.py
+++ b/homeassistant/components/roomba/vacuum.py
@@ -1,13 +1,9 @@
 """Support for Wi-Fi enabled iRobot Roombas."""
-import logging
-
 from . import roomba_reported_state
 from .braava import BraavaJet
 from .const import BLID, DOMAIN, ROOMBA_SESSION
 from .roomba import RoombaVacuum, RoombaVacuumCarpetBoost
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the iRobot Roomba vacuum cleaner."""
diff --git a/homeassistant/components/roon/__init__.py b/homeassistant/components/roon/__init__.py
index ff45e2c16cf734139fadcddad910752b7302693b..49527a44245a083531c18ad7c50c488638c40fef 100644
--- a/homeassistant/components/roon/__init__.py
+++ b/homeassistant/components/roon/__init__.py
@@ -1,14 +1,10 @@
 """Roon (www.roonlabs.com) component."""
-import logging
-
 from homeassistant.const import CONF_HOST
 from homeassistant.helpers import device_registry as dr
 
 from .const import DOMAIN
 from .server import RoonServer
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup(hass, config):
     """Set up the Roon platform."""
diff --git a/homeassistant/components/rpi_camera/__init__.py b/homeassistant/components/rpi_camera/__init__.py
index 2f962872d8cafeceff386d7894fcbab2b59765a2..a854338ee78cc01b0593e3a711b9114cc471972d 100644
--- a/homeassistant/components/rpi_camera/__init__.py
+++ b/homeassistant/components/rpi_camera/__init__.py
@@ -1,6 +1,4 @@
 """The rpi_camera component."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.const import CONF_FILE_PATH, CONF_NAME
@@ -27,8 +25,6 @@ from .const import (
     DOMAIN,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 CONFIG_SCHEMA = vol.Schema(
     {
         DOMAIN: vol.Schema(
diff --git a/homeassistant/components/rpi_gpio/__init__.py b/homeassistant/components/rpi_gpio/__init__.py
index b3a83646f0e58ca86d0d0415da481b08f209e593..75aa5bccdb6147acd03202877c9515919dd47bed 100644
--- a/homeassistant/components/rpi_gpio/__init__.py
+++ b/homeassistant/components/rpi_gpio/__init__.py
@@ -1,12 +1,8 @@
 """Support for controlling GPIO pins of a Raspberry Pi."""
-import logging
-
 from RPi import GPIO  # pylint: disable=import-error
 
 from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
 
-_LOGGER = logging.getLogger(__name__)
-
 DOMAIN = "rpi_gpio"
 PLATFORMS = ["binary_sensor", "cover", "switch"]
 
diff --git a/homeassistant/components/rpi_gpio/binary_sensor.py b/homeassistant/components/rpi_gpio/binary_sensor.py
index 527da2a709615779a8b413821ca3e1c8fc0b4172..a2461f52db9e5a37f663df7786eb9632a1336482 100644
--- a/homeassistant/components/rpi_gpio/binary_sensor.py
+++ b/homeassistant/components/rpi_gpio/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for binary sensor using RPi GPIO."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components import rpi_gpio
@@ -11,8 +9,6 @@ from homeassistant.helpers.reload import setup_reload_service
 
 from . import DOMAIN, PLATFORMS
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_BOUNCETIME = "bouncetime"
 CONF_INVERT_LOGIC = "invert_logic"
 CONF_PORTS = "ports"
diff --git a/homeassistant/components/rpi_gpio/cover.py b/homeassistant/components/rpi_gpio/cover.py
index fab35da31fb09edd231c1bec216ee5efedf5c537..032796fe55b603b30f4601726db5d20f0552cd3a 100644
--- a/homeassistant/components/rpi_gpio/cover.py
+++ b/homeassistant/components/rpi_gpio/cover.py
@@ -1,5 +1,4 @@
 """Support for controlling a Raspberry Pi cover."""
-import logging
 from time import sleep
 
 import voluptuous as vol
@@ -12,8 +11,6 @@ from homeassistant.helpers.reload import setup_reload_service
 
 from . import DOMAIN, PLATFORMS
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_COVERS = "covers"
 CONF_RELAY_PIN = "relay_pin"
 CONF_RELAY_TIME = "relay_time"
diff --git a/homeassistant/components/rpi_gpio/switch.py b/homeassistant/components/rpi_gpio/switch.py
index 047bff39c959d615cb457a5a7d906150b547eb04..d556d8f035419d83f65679335e38418132689dc9 100644
--- a/homeassistant/components/rpi_gpio/switch.py
+++ b/homeassistant/components/rpi_gpio/switch.py
@@ -1,6 +1,4 @@
 """Allows to configure a switch using RPi GPIO."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components import rpi_gpio
@@ -12,8 +10,6 @@ from homeassistant.helpers.reload import setup_reload_service
 
 from . import DOMAIN, PLATFORMS
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_PULL_MODE = "pull_mode"
 CONF_PORTS = "ports"
 CONF_INVERT_LOGIC = "invert_logic"
diff --git a/homeassistant/components/rpi_pfio/__init__.py b/homeassistant/components/rpi_pfio/__init__.py
index d02b2bc56106373ea5136808d3bb7a5dd99586b5..45b3e98d977226a48432814bfa98ce73d4872c01 100644
--- a/homeassistant/components/rpi_pfio/__init__.py
+++ b/homeassistant/components/rpi_pfio/__init__.py
@@ -1,12 +1,8 @@
 """Support for controlling the PiFace Digital I/O module on a RPi."""
-import logging
-
 import pifacedigitalio as PFIO
 
 from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
 
-_LOGGER = logging.getLogger(__name__)
-
 DOMAIN = "rpi_pfio"
 
 DATA_PFIO_LISTENER = "pfio_listener"
diff --git a/homeassistant/components/rpi_pfio/binary_sensor.py b/homeassistant/components/rpi_pfio/binary_sensor.py
index e77ceea3eb7d3fc504b4ce8512384e20dd49f178..5d1d46e8a392c32994bf1cab1ee643ee58bbf4af 100644
--- a/homeassistant/components/rpi_pfio/binary_sensor.py
+++ b/homeassistant/components/rpi_pfio/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for binary sensor using the PiFace Digital I/O module on a RPi."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components import rpi_pfio
@@ -8,8 +6,6 @@ from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensor
 from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NAME
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_INVERT_LOGIC = "invert_logic"
 CONF_PORTS = "ports"
 CONF_SETTLE_TIME = "settle_time"
diff --git a/homeassistant/components/rpi_pfio/switch.py b/homeassistant/components/rpi_pfio/switch.py
index bc3d99b5256c8fbc6246b82de3daeab9a31e318f..91a98cdec59a896a881b5ed417da0672047a3124 100644
--- a/homeassistant/components/rpi_pfio/switch.py
+++ b/homeassistant/components/rpi_pfio/switch.py
@@ -1,6 +1,4 @@
 """Support for switches using the PiFace Digital I/O module on a RPi."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components import rpi_pfio
@@ -9,8 +7,6 @@ from homeassistant.const import ATTR_NAME, DEVICE_DEFAULT_NAME
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import ToggleEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_INVERT_LOGIC = "invert_logic"
 
 CONF_PORTS = "ports"
diff --git a/homeassistant/components/russound_rio/media_player.py b/homeassistant/components/russound_rio/media_player.py
index d65ef1ce0e5a69b2905e8f3df0b03f7e7aa99167..b2c8250afc4502646efcb276cdd8de3bb718b22b 100644
--- a/homeassistant/components/russound_rio/media_player.py
+++ b/homeassistant/components/russound_rio/media_player.py
@@ -1,6 +1,4 @@
 """Support for Russound multizone controllers using RIO Protocol."""
-import logging
-
 from russound_rio import Russound
 import voluptuous as vol
 
@@ -24,8 +22,6 @@ from homeassistant.const import (
 from homeassistant.core import callback
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 SUPPORT_RUSSOUND = (
     SUPPORT_VOLUME_MUTE
     | SUPPORT_VOLUME_SET
diff --git a/homeassistant/components/sabnzbd/sensor.py b/homeassistant/components/sabnzbd/sensor.py
index b232e2e63c58fbc46ad22ad6d3968d7a31ba1aaa..5e437c41b23dbf9f66b8cb28dfc919758cfe7a41 100644
--- a/homeassistant/components/sabnzbd/sensor.py
+++ b/homeassistant/components/sabnzbd/sensor.py
@@ -1,13 +1,9 @@
 """Support for monitoring an SABnzbd NZB client."""
-import logging
-
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from homeassistant.helpers.entity import Entity
 
 from . import DATA_SABNZBD, SENSOR_TYPES, SIGNAL_SABNZBD_UPDATED
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Set up the SABnzbd sensors."""
diff --git a/homeassistant/components/satel_integra/binary_sensor.py b/homeassistant/components/satel_integra/binary_sensor.py
index ea9c19376f694ba09ffa8b97384f2f2578754570..5acc49d1d1bb1ab1486c2330d3645b5320b7c981 100644
--- a/homeassistant/components/satel_integra/binary_sensor.py
+++ b/homeassistant/components/satel_integra/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for Satel Integra zone states- represented as binary sensors."""
-import logging
-
 from homeassistant.components.binary_sensor import (
     DEVICE_CLASS_SMOKE,
     BinarySensorEntity,
@@ -18,8 +16,6 @@ from . import (
     SIGNAL_ZONES_UPDATED,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Set up the Satel Integra binary sensor devices."""
diff --git a/homeassistant/components/scene/__init__.py b/homeassistant/components/scene/__init__.py
index f4eee8da83659b824435694dd0bb69b2e1f6b14d..245d21770ee60322dc20e860ab7c4aeb1552c2d2 100644
--- a/homeassistant/components/scene/__init__.py
+++ b/homeassistant/components/scene/__init__.py
@@ -59,8 +59,9 @@ PLATFORM_SCHEMA = vol.Schema(
 
 async def async_setup(hass, config):
     """Set up the scenes."""
-    logger = logging.getLogger(__name__)
-    component = hass.data[DOMAIN] = EntityComponent(logger, DOMAIN, hass)
+    component = hass.data[DOMAIN] = EntityComponent(
+        logging.getLogger(__name__), DOMAIN, hass
+    )
 
     await component.async_setup(config)
     # Ensure Home Assistant platform always loaded.
diff --git a/homeassistant/components/scsgate/cover.py b/homeassistant/components/scsgate/cover.py
index 0c7d057316cad64c5d7af889752d004e7b8393f5..e5442226d8029633d24de3e03a2cbf3dff4f2727 100644
--- a/homeassistant/components/scsgate/cover.py
+++ b/homeassistant/components/scsgate/cover.py
@@ -14,8 +14,6 @@ import homeassistant.helpers.config_validation as cv
 
 from . import CONF_SCS_ID, DOMAIN, SCSGATE_SCHEMA
 
-_LOGGER = logging.getLogger(__name__)
-
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
     {vol.Required(CONF_DEVICES): cv.schema_with_slug_keys(SCSGATE_SCHEMA)}
 )
diff --git a/homeassistant/components/scsgate/light.py b/homeassistant/components/scsgate/light.py
index c8f5b720c702f507f669b57bc5809ca0952cab82..949041534a8970e4475ed443aac746b93f502bc3 100644
--- a/homeassistant/components/scsgate/light.py
+++ b/homeassistant/components/scsgate/light.py
@@ -10,8 +10,6 @@ import homeassistant.helpers.config_validation as cv
 
 from . import CONF_SCS_ID, DOMAIN, SCSGATE_SCHEMA
 
-_LOGGER = logging.getLogger(__name__)
-
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
     {vol.Required(CONF_DEVICES): cv.schema_with_slug_keys(SCSGATE_SCHEMA)}
 )
diff --git a/homeassistant/components/sense/sensor.py b/homeassistant/components/sense/sensor.py
index 8e023601eb712e5a815ac1e791d578ef74ee82d9..197168f91999512cf926ac8c5fc4ed600b7e64e9 100644
--- a/homeassistant/components/sense/sensor.py
+++ b/homeassistant/components/sense/sensor.py
@@ -1,6 +1,4 @@
 """Support for monitoring a Sense energy sensor."""
-import logging
-
 from homeassistant.const import (
     ATTR_ATTRIBUTION,
     DEVICE_CLASS_POWER,
@@ -30,8 +28,6 @@ from .const import (
     SENSE_TRENDS_COORDINATOR,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class SensorConfig:
     """Data structure holding sensor configuration."""
diff --git a/homeassistant/components/sensehat/light.py b/homeassistant/components/sensehat/light.py
index 5eda783bebf86f88cd2ccd3f6f8fb8ac1daa1e9f..72a261aabf6447c52e68ed6d3bb2eb43bb6640a7 100644
--- a/homeassistant/components/sensehat/light.py
+++ b/homeassistant/components/sensehat/light.py
@@ -1,6 +1,4 @@
 """Support for Sense Hat LEDs."""
-import logging
-
 from sense_hat import SenseHat
 import voluptuous as vol
 
@@ -16,8 +14,6 @@ from homeassistant.const import CONF_NAME
 import homeassistant.helpers.config_validation as cv
 import homeassistant.util.color as color_util
 
-_LOGGER = logging.getLogger(__name__)
-
 SUPPORT_SENSEHAT = SUPPORT_BRIGHTNESS | SUPPORT_COLOR
 
 DEFAULT_NAME = "sensehat"
diff --git a/homeassistant/components/sharkiq/__init__.py b/homeassistant/components/sharkiq/__init__.py
index 968ee91f8d6c84faad7bc6db400507a06b741096..b7684f988553da3ba62279fec92eaece1179a924 100644
--- a/homeassistant/components/sharkiq/__init__.py
+++ b/homeassistant/components/sharkiq/__init__.py
@@ -14,7 +14,7 @@ from sharkiqpy import (
 from homeassistant import exceptions
 from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
 
-from .const import API_TIMEOUT, COMPONENTS, DOMAIN, LOGGER
+from .const import _LOGGER, API_TIMEOUT, COMPONENTS, DOMAIN
 from .update_coordinator import SharkIqUpdateCoordinator
 
 
@@ -32,13 +32,13 @@ async def async_connect_or_timeout(ayla_api: AylaApi) -> bool:
     """Connect to vacuum."""
     try:
         with async_timeout.timeout(API_TIMEOUT):
-            LOGGER.debug("Initialize connection to Ayla networks API")
+            _LOGGER.debug("Initialize connection to Ayla networks API")
             await ayla_api.async_sign_in()
     except SharkIqAuthError:
-        LOGGER.error("Authentication error connecting to Shark IQ api")
+        _LOGGER.error("Authentication error connecting to Shark IQ api")
         return False
     except asyncio.TimeoutError as exc:
-        LOGGER.error("Timeout expired")
+        _LOGGER.error("Timeout expired")
         raise CannotConnect from exc
 
     return True
@@ -60,7 +60,7 @@ async def async_setup_entry(hass, config_entry):
 
     shark_vacs = await ayla_api.async_get_devices(False)
     device_names = ", ".join([d.name for d in shark_vacs])
-    LOGGER.debug("Found %d Shark IQ device(s): %s", len(shark_vacs), device_names)
+    _LOGGER.debug("Found %d Shark IQ device(s): %s", len(shark_vacs), device_names)
     coordinator = SharkIqUpdateCoordinator(hass, config_entry, ayla_api, shark_vacs)
 
     await coordinator.async_refresh()
@@ -80,7 +80,7 @@ async def async_setup_entry(hass, config_entry):
 
 async def async_disconnect_or_timeout(coordinator: SharkIqUpdateCoordinator):
     """Disconnect to vacuum."""
-    LOGGER.debug("Disconnecting from Ayla Api")
+    _LOGGER.debug("Disconnecting from Ayla Api")
     with async_timeout.timeout(5):
         try:
             await coordinator.ayla_api.async_sign_out()
diff --git a/homeassistant/components/sharkiq/config_flow.py b/homeassistant/components/sharkiq/config_flow.py
index 4b2e54d3e3889704db09379beff0d79af45d9279..9d2e80b8ec60e8c46f1747ece3d4d634fde4feb4 100644
--- a/homeassistant/components/sharkiq/config_flow.py
+++ b/homeassistant/components/sharkiq/config_flow.py
@@ -11,7 +11,7 @@ import voluptuous as vol
 from homeassistant import config_entries, core, exceptions
 from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
 
-from .const import DOMAIN, LOGGER  # pylint:disable=unused-import
+from .const import _LOGGER, DOMAIN  # pylint:disable=unused-import
 
 SHARKIQ_SCHEMA = vol.Schema(
     {vol.Required(CONF_USERNAME): str, vol.Required(CONF_PASSWORD): str}
@@ -28,7 +28,7 @@ async def validate_input(hass: core.HomeAssistant, data):
 
     try:
         with async_timeout.timeout(10):
-            LOGGER.debug("Initialize connection to Ayla networks API")
+            _LOGGER.debug("Initialize connection to Ayla networks API")
             await ayla_api.async_sign_in()
     except (asyncio.TimeoutError, aiohttp.ClientError) as errors:
         raise CannotConnect from errors
@@ -58,7 +58,7 @@ class SharkIqConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
         except InvalidAuth:
             errors["base"] = "invalid_auth"
         except Exception:  # pylint: disable=broad-except
-            LOGGER.exception("Unexpected exception")
+            _LOGGER.exception("Unexpected exception")
             errors["base"] = "unknown"
         return info, errors
 
diff --git a/homeassistant/components/sharkiq/const.py b/homeassistant/components/sharkiq/const.py
index 9160fc710a2bef0ff60d704b3e562c60b38dfe8d..e0feb306f77882f86b347c2738d51c09e604cacb 100644
--- a/homeassistant/components/sharkiq/const.py
+++ b/homeassistant/components/sharkiq/const.py
@@ -1,11 +1,11 @@
 """Shark IQ Constants."""
-
 from datetime import timedelta
 import logging
 
+_LOGGER = logging.getLogger(__package__)
+
 API_TIMEOUT = 20
 COMPONENTS = ["vacuum"]
 DOMAIN = "sharkiq"
-LOGGER = logging.getLogger(__package__)
 SHARK = "Shark"
 UPDATE_INTERVAL = timedelta(seconds=30)
diff --git a/homeassistant/components/sharkiq/update_coordinator.py b/homeassistant/components/sharkiq/update_coordinator.py
index 2b3f6070f3a4d34dba8cd2a070e89efe1cff7ca3..0651d0765cf2193b314b44e213727184897b0c74 100644
--- a/homeassistant/components/sharkiq/update_coordinator.py
+++ b/homeassistant/components/sharkiq/update_coordinator.py
@@ -16,7 +16,7 @@ from homeassistant.config_entries import ConfigEntry
 from homeassistant.core import HomeAssistant
 from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
 
-from .const import API_TIMEOUT, DOMAIN, LOGGER, UPDATE_INTERVAL
+from .const import _LOGGER, API_TIMEOUT, DOMAIN, UPDATE_INTERVAL
 
 
 class SharkIqUpdateCoordinator(DataUpdateCoordinator):
@@ -37,7 +37,7 @@ class SharkIqUpdateCoordinator(DataUpdateCoordinator):
         self._config_entry = config_entry
         self._online_dsns = set()
 
-        super().__init__(hass, LOGGER, name=DOMAIN, update_interval=UPDATE_INTERVAL)
+        super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=UPDATE_INTERVAL)
 
     @property
     def online_dsns(self) -> Set[str]:
@@ -52,7 +52,7 @@ class SharkIqUpdateCoordinator(DataUpdateCoordinator):
     async def _async_update_vacuum(sharkiq: SharkIqVacuum) -> None:
         """Asynchronously update the data for a single vacuum."""
         dsn = sharkiq.serial_number
-        LOGGER.debug("Updating sharkiq data for device DSN %s", dsn)
+        _LOGGER.debug("Updating sharkiq data for device DSN %s", dsn)
         with timeout(API_TIMEOUT):
             await sharkiq.async_update()
 
@@ -66,7 +66,7 @@ class SharkIqUpdateCoordinator(DataUpdateCoordinator):
                 if v["connection_status"] == "Online" and v["dsn"] in self.shark_vacs
             }
 
-            LOGGER.debug("Updating sharkiq data")
+            _LOGGER.debug("Updating sharkiq data")
             online_vacs = (self.shark_vacs[dsn] for dsn in self.online_dsns)
             await asyncio.gather(*[self._async_update_vacuum(v) for v in online_vacs])
         except (
@@ -74,7 +74,7 @@ class SharkIqUpdateCoordinator(DataUpdateCoordinator):
             SharkIqNotAuthedError,
             SharkIqAuthExpiringError,
         ) as err:
-            LOGGER.exception("Bad auth state")
+            _LOGGER.exception("Bad auth state")
             flow_context = {
                 "source": "reauth",
                 "unique_id": self._config_entry.unique_id,
@@ -97,7 +97,7 @@ class SharkIqUpdateCoordinator(DataUpdateCoordinator):
 
             raise UpdateFailed(err) from err
         except Exception as err:  # pylint: disable=broad-except
-            LOGGER.exception("Unexpected error updating SharkIQ")
+            _LOGGER.exception("Unexpected error updating SharkIQ")
             raise UpdateFailed(err) from err
 
         return True
diff --git a/homeassistant/components/sharkiq/vacuum.py b/homeassistant/components/sharkiq/vacuum.py
index 96e4d98f3185369b69b5f2d830451a01f0e13d32..9684dde45e64de32adeb4ef3bde39cb725101a76 100644
--- a/homeassistant/components/sharkiq/vacuum.py
+++ b/homeassistant/components/sharkiq/vacuum.py
@@ -28,7 +28,7 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity
 from .const import DOMAIN, SHARK
 from .update_coordinator import SharkIqUpdateCoordinator
 
-LOGGER = logging.getLogger(__name__)
+_LOGGER = logging.getLogger(__name__)
 
 # Supported features
 SUPPORT_SHARKIQ = (
@@ -71,7 +71,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
     coordinator: SharkIqUpdateCoordinator = hass.data[DOMAIN][config_entry.entry_id]
     devices: Iterable["SharkIqVacuum"] = coordinator.shark_vacs.values()
     device_names = [d.name for d in devices]
-    LOGGER.debug(
+    _LOGGER.debug(
         "Found %d Shark IQ device(s): %s",
         len(device_names),
         ", ".join([d.name for d in devices]),
diff --git a/homeassistant/components/shiftr/__init__.py b/homeassistant/components/shiftr/__init__.py
index 1c3cddac2563e87b8cdc0c21a1fec79a0cd7b5f9..378d83d725ec4cfb84c887d70692b2950b52ccfb 100644
--- a/homeassistant/components/shiftr/__init__.py
+++ b/homeassistant/components/shiftr/__init__.py
@@ -1,6 +1,4 @@
 """Support for Shiftr.io."""
-import logging
-
 import paho.mqtt.client as mqtt
 import voluptuous as vol
 
@@ -13,8 +11,6 @@ from homeassistant.const import (
 from homeassistant.helpers import state as state_helper
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 DOMAIN = "shiftr"
 
 SHIFTR_BROKER = "broker.shiftr.io"
diff --git a/homeassistant/components/simplepush/notify.py b/homeassistant/components/simplepush/notify.py
index 63bcd31935ebecfa5c48472acccbdfb2a27b406f..1d10153415741d946a240ba6f258287294b21cb6 100644
--- a/homeassistant/components/simplepush/notify.py
+++ b/homeassistant/components/simplepush/notify.py
@@ -1,6 +1,4 @@
 """Simplepush notification service."""
-import logging
-
 from simplepush import send, send_encrypted
 import voluptuous as vol
 
@@ -13,8 +11,6 @@ from homeassistant.components.notify import (
 from homeassistant.const import CONF_PASSWORD
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_ENCRYPTED = "encrypted"
 
 CONF_DEVICE_KEY = "device_key"
diff --git a/homeassistant/components/simplisafe/__init__.py b/homeassistant/components/simplisafe/__init__.py
index 2e4dfd7c9fa04338d84c8571fc7793be1f47e1ce..b3d031577c9d0986d62a78342894022c0e787838 100644
--- a/homeassistant/components/simplisafe/__init__.py
+++ b/homeassistant/components/simplisafe/__init__.py
@@ -43,6 +43,7 @@ from homeassistant.helpers.service import (
 )
 
 from .const import (
+    _LOGGER,
     ATTR_ALARM_DURATION,
     ATTR_ALARM_VOLUME,
     ATTR_CHIME_VOLUME,
@@ -55,7 +56,6 @@ from .const import (
     DATA_CLIENT,
     DEFAULT_SCAN_INTERVAL,
     DOMAIN,
-    LOGGER,
     VOLUMES,
 )
 
@@ -201,10 +201,10 @@ async def async_setup_entry(hass, config_entry):
             config_entry.data[CONF_TOKEN], client_id=client_id, session=websession
         )
     except InvalidCredentialsError:
-        LOGGER.error("Invalid credentials provided")
+        _LOGGER.error("Invalid credentials provided")
         return False
     except SimplipyError as err:
-        LOGGER.error("Config entry failed: %s", err)
+        _LOGGER.error("Config entry failed: %s", err)
         raise ConfigEntryNotReady from err
 
     _async_save_refresh_token(hass, config_entry, api.refresh_token)
@@ -226,7 +226,7 @@ async def async_setup_entry(hass, config_entry):
             """Decorate."""
             system_id = int(call.data[ATTR_SYSTEM_ID])
             if system_id not in simplisafe.systems:
-                LOGGER.error("Unknown system ID in service call: %s", system_id)
+                _LOGGER.error("Unknown system ID in service call: %s", system_id)
                 return
             await coro(call)
 
@@ -240,7 +240,7 @@ async def async_setup_entry(hass, config_entry):
             """Decorate."""
             system = simplisafe.systems[int(call.data[ATTR_SYSTEM_ID])]
             if system.version != 3:
-                LOGGER.error("Service only available on V3 systems")
+                _LOGGER.error("Service only available on V3 systems")
                 return
             await coro(call)
 
@@ -254,7 +254,7 @@ async def async_setup_entry(hass, config_entry):
         try:
             await system.clear_notifications()
         except SimplipyError as err:
-            LOGGER.error("Error during service call: %s", err)
+            _LOGGER.error("Error during service call: %s", err)
             return
 
     @verify_system_exists
@@ -265,7 +265,7 @@ async def async_setup_entry(hass, config_entry):
         try:
             await system.remove_pin(call.data[ATTR_PIN_LABEL_OR_VALUE])
         except SimplipyError as err:
-            LOGGER.error("Error during service call: %s", err)
+            _LOGGER.error("Error during service call: %s", err)
             return
 
     @verify_system_exists
@@ -276,7 +276,7 @@ async def async_setup_entry(hass, config_entry):
         try:
             await system.set_pin(call.data[ATTR_PIN_LABEL], call.data[ATTR_PIN_VALUE])
         except SimplipyError as err:
-            LOGGER.error("Error during service call: %s", err)
+            _LOGGER.error("Error during service call: %s", err)
             return
 
     @verify_system_exists
@@ -294,7 +294,7 @@ async def async_setup_entry(hass, config_entry):
                 }
             )
         except SimplipyError as err:
-            LOGGER.error("Error during service call: %s", err)
+            _LOGGER.error("Error during service call: %s", err)
             return
 
     for service, method, schema in [
@@ -349,16 +349,16 @@ class SimpliSafeWebsocket:
     @staticmethod
     def _on_connect():
         """Define a handler to fire when the websocket is connected."""
-        LOGGER.info("Connected to websocket")
+        _LOGGER.info("Connected to websocket")
 
     @staticmethod
     def _on_disconnect():
         """Define a handler to fire when the websocket is disconnected."""
-        LOGGER.info("Disconnected from websocket")
+        _LOGGER.info("Disconnected from websocket")
 
     def _on_event(self, event):
         """Define a handler to fire when a new SimpliSafe event arrives."""
-        LOGGER.debug("New websocket event: %s", event)
+        _LOGGER.debug("New websocket event: %s", event)
         async_dispatcher_send(
             self._hass, TOPIC_UPDATE_WEBSOCKET.format(event.system_id), event
         )
@@ -430,7 +430,7 @@ class SimpliSafe:
         if not to_add:
             return
 
-        LOGGER.debug("New system notifications: %s", to_add)
+        _LOGGER.debug("New system notifications: %s", to_add)
 
         self._system_notifications[system.system_id].update(to_add)
 
@@ -481,7 +481,7 @@ class SimpliSafe:
                     system.system_id
                 ] = await system.get_latest_event()
             except SimplipyError as err:
-                LOGGER.error("Error while fetching initial event: %s", err)
+                _LOGGER.error("Error while fetching initial event: %s", err)
                 self.initial_event_to_use[system.system_id] = {}
 
         async def refresh(event_time):
@@ -501,7 +501,7 @@ class SimpliSafe:
             """Update a system."""
             await system.update(cached=False)
             self._async_process_new_notifications(system)
-            LOGGER.debug('Updated REST API data for "%s"', system.address)
+            _LOGGER.debug('Updated REST API data for "%s"', system.address)
             async_dispatcher_send(
                 self._hass, TOPIC_UPDATE_REST_API.format(system.system_id)
             )
@@ -534,7 +534,7 @@ class SimpliSafe:
 
                     return
 
-                LOGGER.warning("SimpliSafe cloud error; trying stored refresh token")
+                _LOGGER.warning("SimpliSafe cloud error; trying stored refresh token")
                 self._emergency_refresh_token_used = True
 
                 try:
@@ -543,22 +543,22 @@ class SimpliSafe:
                     )
                     return
                 except SimplipyError as err:
-                    LOGGER.error("Error while using stored refresh token: %s", err)
+                    _LOGGER.error("Error while using stored refresh token: %s", err)
                     return
 
             if isinstance(result, EndpointUnavailable):
                 # In case the user attempt an action not allowed in their current plan,
                 # we merely log that message at INFO level (so the user is aware,
                 # but not spammed with ERROR messages that they cannot change):
-                LOGGER.info(result)
+                _LOGGER.info(result)
                 return
 
             if isinstance(result, SimplipyError):
-                LOGGER.error("SimpliSafe error while updating: %s", result)
+                _LOGGER.error("SimpliSafe error while updating: %s", result)
                 return
 
             if isinstance(result, Exception):
-                LOGGER.error("Unknown error while updating: %s", result)
+                _LOGGER.error("Unknown error while updating: %s", result)
                 return
 
         if self._api.refresh_token != self.config_entry.data[CONF_TOKEN]:
diff --git a/homeassistant/components/simplisafe/alarm_control_panel.py b/homeassistant/components/simplisafe/alarm_control_panel.py
index 11f794eef5d7d8f685cb33ec50b906d73c9b178b..ef6781d14b352253175463f77ea823baa02b6113 100644
--- a/homeassistant/components/simplisafe/alarm_control_panel.py
+++ b/homeassistant/components/simplisafe/alarm_control_panel.py
@@ -38,6 +38,7 @@ from homeassistant.core import callback
 
 from . import SimpliSafeEntity
 from .const import (
+    _LOGGER,
     ATTR_ALARM_DURATION,
     ATTR_ALARM_VOLUME,
     ATTR_CHIME_VOLUME,
@@ -49,7 +50,6 @@ from .const import (
     ATTR_VOICE_PROMPT_VOLUME,
     DATA_CLIENT,
     DOMAIN,
-    LOGGER,
     VOLUME_STRING_MAP,
 )
 
@@ -144,7 +144,7 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
             return True
 
         if not code or code != self._simplisafe.config_entry.options[CONF_CODE]:
-            LOGGER.warning(
+            _LOGGER.warning(
                 "Incorrect alarm code entered (target state: %s): %s", state, code
             )
             return False
@@ -159,7 +159,7 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
         try:
             await self._system.set_off()
         except SimplipyError as err:
-            LOGGER.error('Error while disarming "%s": %s', self._system.name, err)
+            _LOGGER.error('Error while disarming "%s": %s', self._system.name, err)
             return
 
         self._state = STATE_ALARM_DISARMED
@@ -172,7 +172,7 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
         try:
             await self._system.set_home()
         except SimplipyError as err:
-            LOGGER.error('Error while arming "%s" (home): %s', self._system.name, err)
+            _LOGGER.error('Error while arming "%s" (home): %s', self._system.name, err)
             return
 
         self._state = STATE_ALARM_ARMED_HOME
@@ -185,7 +185,7 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
         try:
             await self._system.set_away()
         except SimplipyError as err:
-            LOGGER.error('Error while arming "%s" (away): %s', self._system.name, err)
+            _LOGGER.error('Error while arming "%s" (away): %s', self._system.name, err)
             return
 
         self._state = STATE_ALARM_ARMING
diff --git a/homeassistant/components/simplisafe/config_flow.py b/homeassistant/components/simplisafe/config_flow.py
index 0437c309039f306d6d2bec14fffba41afea78659..234eeb63288af83d800737951fdf716b210ffff8 100644
--- a/homeassistant/components/simplisafe/config_flow.py
+++ b/homeassistant/components/simplisafe/config_flow.py
@@ -13,7 +13,7 @@ from homeassistant.core import callback
 from homeassistant.helpers import aiohttp_client
 
 from . import async_get_client_id
-from .const import DOMAIN, LOGGER  # pylint: disable=unused-import
+from .const import _LOGGER, DOMAIN  # pylint: disable=unused-import
 
 
 class SimpliSafeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
@@ -62,12 +62,12 @@ class SimpliSafeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
         try:
             simplisafe = await self._async_get_simplisafe_api()
         except PendingAuthorizationError:
-            LOGGER.info("Awaiting confirmation of MFA email click")
+            _LOGGER.info("Awaiting confirmation of MFA email click")
             return await self.async_step_mfa()
         except InvalidCredentialsError:
             errors = {"base": "invalid_credentials"}
         except SimplipyError as err:
-            LOGGER.error("Unknown error while logging into SimpliSafe: %s", err)
+            _LOGGER.error("Unknown error while logging into SimpliSafe: %s", err)
             errors = {"base": "unknown"}
 
         if errors:
@@ -101,7 +101,7 @@ class SimpliSafeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
         try:
             simplisafe = await self._async_get_simplisafe_api()
         except PendingAuthorizationError:
-            LOGGER.error("Still awaiting confirmation of MFA email click")
+            _LOGGER.error("Still awaiting confirmation of MFA email click")
             return self.async_show_form(
                 step_id="mfa", errors={"base": "still_awaiting_mfa"}
             )
diff --git a/homeassistant/components/simplisafe/const.py b/homeassistant/components/simplisafe/const.py
index 36d191d0ab811910f120d4f17cb26d6295dd164c..884afdcfa373c7a25d33e990e8b3afe98e53d9c9 100644
--- a/homeassistant/components/simplisafe/const.py
+++ b/homeassistant/components/simplisafe/const.py
@@ -4,7 +4,7 @@ import logging
 
 from simplipy.system.v3 import VOLUME_HIGH, VOLUME_LOW, VOLUME_MEDIUM, VOLUME_OFF
 
-LOGGER = logging.getLogger(__package__)
+_LOGGER = logging.getLogger(__package__)
 
 DOMAIN = "simplisafe"
 
diff --git a/homeassistant/components/simplisafe/lock.py b/homeassistant/components/simplisafe/lock.py
index 82177fb43870d37f6bc43ac05f6580602d9836bc..cb4ca9b88ca15ebcf9c9f8ae37a619a18f249ced 100644
--- a/homeassistant/components/simplisafe/lock.py
+++ b/homeassistant/components/simplisafe/lock.py
@@ -7,7 +7,7 @@ from homeassistant.components.lock import LockEntity
 from homeassistant.core import callback
 
 from . import SimpliSafeEntity
-from .const import DATA_CLIENT, DOMAIN, LOGGER
+from .const import _LOGGER, DATA_CLIENT, DOMAIN
 
 ATTR_LOCK_LOW_BATTERY = "lock_low_battery"
 ATTR_JAMMED = "jammed"
@@ -48,7 +48,7 @@ class SimpliSafeLock(SimpliSafeEntity, LockEntity):
         try:
             await self._lock.lock()
         except SimplipyError as err:
-            LOGGER.error('Error while locking "%s": %s', self._lock.name, err)
+            _LOGGER.error('Error while locking "%s": %s', self._lock.name, err)
             return
 
         self._is_locked = True
@@ -58,7 +58,7 @@ class SimpliSafeLock(SimpliSafeEntity, LockEntity):
         try:
             await self._lock.unlock()
         except SimplipyError as err:
-            LOGGER.error('Error while unlocking "%s": %s', self._lock.name, err)
+            _LOGGER.error('Error while unlocking "%s": %s', self._lock.name, err)
             return
 
         self._is_locked = False
diff --git a/homeassistant/components/simulated/sensor.py b/homeassistant/components/simulated/sensor.py
index fba8b497d51243bdee60dbc9b7f9ccf08cbf6a8d..7f484b712c1790e5b71931018ee8cee7c5aa121d 100644
--- a/homeassistant/components/simulated/sensor.py
+++ b/homeassistant/components/simulated/sensor.py
@@ -1,6 +1,5 @@
 """Adds a simulated sensor."""
 from datetime import datetime
-import logging
 import math
 from random import Random
 
@@ -12,8 +11,6 @@ import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 import homeassistant.util.dt as dt_util
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_AMP = "amplitude"
 CONF_FWHM = "spread"
 CONF_MEAN = "mean"
diff --git a/homeassistant/components/sisyphus/media_player.py b/homeassistant/components/sisyphus/media_player.py
index 27d470ce885bd870ef4e8d7931efa7d63307e462..8f55fce1178c1312bf4cc4cb2461b7e50a8d9b65 100644
--- a/homeassistant/components/sisyphus/media_player.py
+++ b/homeassistant/components/sisyphus/media_player.py
@@ -1,6 +1,4 @@
 """Support for track controls on the Sisyphus Kinetic Art Table."""
-import logging
-
 import aiohttp
 from sisyphus_control import Track
 
@@ -27,8 +25,6 @@ from homeassistant.exceptions import PlatformNotReady
 
 from . import DATA_SISYPHUS
 
-_LOGGER = logging.getLogger(__name__)
-
 MEDIA_TYPE_TRACK = "sisyphus_track"
 
 SUPPORTED_FEATURES = (
diff --git a/homeassistant/components/skybell/binary_sensor.py b/homeassistant/components/skybell/binary_sensor.py
index 94f64a4eb43571ef36f34b233085baeadd9b9d3c..512731ab355ebfbfc39054eaf6ca69c8d1486286 100644
--- a/homeassistant/components/skybell/binary_sensor.py
+++ b/homeassistant/components/skybell/binary_sensor.py
@@ -1,6 +1,5 @@
 """Binary sensor support for the Skybell HD Doorbell."""
 from datetime import timedelta
-import logging
 
 import voluptuous as vol
 
@@ -15,8 +14,6 @@ import homeassistant.helpers.config_validation as cv
 
 from . import DEFAULT_ENTITY_NAMESPACE, DOMAIN as SKYBELL_DOMAIN, SkybellDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 SCAN_INTERVAL = timedelta(seconds=5)
 
 # Sensor types: Name, device_class, event
diff --git a/homeassistant/components/skybell/light.py b/homeassistant/components/skybell/light.py
index 273cdfd079c91029ac8dc16d014451aa788aeb04..aecaea01d2aaf12edd3abb9e669abea19312d681 100644
--- a/homeassistant/components/skybell/light.py
+++ b/homeassistant/components/skybell/light.py
@@ -1,6 +1,4 @@
 """Light/LED support for the Skybell HD Doorbell."""
-import logging
-
 from homeassistant.components.light import (
     ATTR_BRIGHTNESS,
     ATTR_HS_COLOR,
@@ -12,8 +10,6 @@ import homeassistant.util.color as color_util
 
 from . import DOMAIN as SKYBELL_DOMAIN, SkybellDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the platform for a Skybell device."""
diff --git a/homeassistant/components/skybell/sensor.py b/homeassistant/components/skybell/sensor.py
index 24b63b6271c0b6819daddc7e9946fc5b8102ca88..09a7400a035c2370c6e9ef16bf80dde294e38d18 100644
--- a/homeassistant/components/skybell/sensor.py
+++ b/homeassistant/components/skybell/sensor.py
@@ -1,6 +1,5 @@
 """Sensor support for Skybell Doorbells."""
 from datetime import timedelta
-import logging
 
 import voluptuous as vol
 
@@ -10,8 +9,6 @@ import homeassistant.helpers.config_validation as cv
 
 from . import DEFAULT_ENTITY_NAMESPACE, DOMAIN as SKYBELL_DOMAIN, SkybellDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 SCAN_INTERVAL = timedelta(seconds=30)
 
 # Sensor types: Name, icon
diff --git a/homeassistant/components/skybell/switch.py b/homeassistant/components/skybell/switch.py
index 97a1d2a4c00b36030caf682771549e4229563022..3d1d890b295c7974dcc225719dca2e51537d0377 100644
--- a/homeassistant/components/skybell/switch.py
+++ b/homeassistant/components/skybell/switch.py
@@ -1,6 +1,4 @@
 """Switch support for the Skybell HD Doorbell."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
@@ -9,8 +7,6 @@ import homeassistant.helpers.config_validation as cv
 
 from . import DEFAULT_ENTITY_NAMESPACE, DOMAIN as SKYBELL_DOMAIN, SkybellDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 # Switch types: Name
 SWITCH_TYPES = {
     "do_not_disturb": ["Do Not Disturb"],
diff --git a/homeassistant/components/smappee/binary_sensor.py b/homeassistant/components/smappee/binary_sensor.py
index 49d21f2b2c14a5d049c4e55152244f218218281c..4cc5cca9a23aacbb5f6bcf4d014777ad064d201f 100644
--- a/homeassistant/components/smappee/binary_sensor.py
+++ b/homeassistant/components/smappee/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for monitoring a Smappee appliance binary sensor."""
-import logging
-
 from homeassistant.components.binary_sensor import (
     DEVICE_CLASS_PRESENCE,
     BinarySensorEntity,
@@ -8,8 +6,6 @@ from homeassistant.components.binary_sensor import (
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 BINARY_SENSOR_PREFIX = "Appliance"
 PRESENCE_PREFIX = "Presence"
 
diff --git a/homeassistant/components/smappee/config_flow.py b/homeassistant/components/smappee/config_flow.py
index a31dac6912e28269f3c7bb13c2066913ea09fe62..c6d208626e4c3dbb01a869812833c3c6af3bc7b4 100644
--- a/homeassistant/components/smappee/config_flow.py
+++ b/homeassistant/components/smappee/config_flow.py
@@ -17,8 +17,6 @@ from .const import (
     SUPPORTED_LOCAL_DEVICES,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class SmappeeFlowHandler(
     config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN
diff --git a/homeassistant/components/smappee/sensor.py b/homeassistant/components/smappee/sensor.py
index dd145c4cdce909beabae720f3cc6613c82a162a4..41041c1a0023b2fc477467a3129697f9abe15884 100644
--- a/homeassistant/components/smappee/sensor.py
+++ b/homeassistant/components/smappee/sensor.py
@@ -1,13 +1,9 @@
 """Support for monitoring a Smappee energy sensor."""
-import logging
-
 from homeassistant.const import DEVICE_CLASS_POWER, ENERGY_WATT_HOUR, POWER_WATT, VOLT
 from homeassistant.helpers.entity import Entity
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 TREND_SENSORS = {
     "total_power": [
         "Total consumption - Active power",
diff --git a/homeassistant/components/smappee/switch.py b/homeassistant/components/smappee/switch.py
index bbcacc7d541969dceef84bd05caf418470cad9c6..46322f413e9ea18b9c774c3371f7821c5c29544b 100644
--- a/homeassistant/components/smappee/switch.py
+++ b/homeassistant/components/smappee/switch.py
@@ -1,12 +1,8 @@
 """Support for interacting with Smappee Comport Plugs, Switches and Output Modules."""
-import logging
-
 from homeassistant.components.switch import SwitchEntity
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 SWITCH_PREFIX = "Switch"
 ICON = "mdi:toggle-switch"
 
diff --git a/homeassistant/components/smart_meter_texas/sensor.py b/homeassistant/components/smart_meter_texas/sensor.py
index c08301d7021bd8af06b2a9c99b792c0d3c153be9..e65fbdcb53164be8a7c704891a725352b3e380cd 100644
--- a/homeassistant/components/smart_meter_texas/sensor.py
+++ b/homeassistant/components/smart_meter_texas/sensor.py
@@ -1,6 +1,4 @@
 """Support for Smart Meter Texas sensors."""
-import logging
-
 from smart_meter_texas import Meter
 
 from homeassistant.const import CONF_ADDRESS, ENERGY_KILO_WATT_HOUR
@@ -20,8 +18,6 @@ from .const import (
     METER_NUMBER,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Smart Meter Texas sensors."""
diff --git a/homeassistant/components/smhi/const.py b/homeassistant/components/smhi/const.py
index a5a975031941c0fb72033cab2ae01fa07aa90d18..7e88f95f691c9fb03c5d1c0a861db200d583bad7 100644
--- a/homeassistant/components/smhi/const.py
+++ b/homeassistant/components/smhi/const.py
@@ -1,6 +1,4 @@
 """Constants in smhi component."""
-import logging
-
 from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
 
 ATTR_SMHI_CLOUDINESS = "cloudiness"
@@ -11,5 +9,3 @@ HOME_LOCATION_NAME = "Home"
 
 ENTITY_ID_SENSOR_FORMAT = WEATHER_DOMAIN + ".smhi_{}"
 ENTITY_ID_SENSOR_FORMAT_HOME = ENTITY_ID_SENSOR_FORMAT.format(HOME_LOCATION_NAME)
-
-LOGGER = logging.getLogger(__package__)
diff --git a/homeassistant/components/sms/__init__.py b/homeassistant/components/sms/__init__.py
index b1af205fc10729be0e543049e2a174cd0757b90d..8752dfd90da8a1b9b0f549394b45d372796bc389 100644
--- a/homeassistant/components/sms/__init__.py
+++ b/homeassistant/components/sms/__init__.py
@@ -1,6 +1,5 @@
 """The sms component."""
 import asyncio
-import logging
 
 import voluptuous as vol
 
@@ -12,8 +11,6 @@ from homeassistant.helpers import config_validation as cv
 from .const import DOMAIN, SMS_GATEWAY
 from .gateway import create_sms_gateway
 
-_LOGGER = logging.getLogger(__name__)
-
 PLATFORMS = ["sensor"]
 
 CONFIG_SCHEMA = vol.Schema(
diff --git a/homeassistant/components/sochain/sensor.py b/homeassistant/components/sochain/sensor.py
index 608405dd1b400a9284670684ab34295c7519971c..8f70447133982a7285838345beb28f0103c8acc5 100644
--- a/homeassistant/components/sochain/sensor.py
+++ b/homeassistant/components/sochain/sensor.py
@@ -1,6 +1,5 @@
 """Support for watching multiple cryptocurrencies."""
 from datetime import timedelta
-import logging
 
 from pysochain import ChainSo
 import voluptuous as vol
@@ -11,8 +10,6 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTRIBUTION = "Data provided by chain.so"
 
 CONF_NETWORK = "network"
diff --git a/homeassistant/components/solax/sensor.py b/homeassistant/components/solax/sensor.py
index 3084aefd97cba31b4aa5c3368748037c605e3d01..bca507c4391cc484a826bccd24db5aaa1b27158c 100644
--- a/homeassistant/components/solax/sensor.py
+++ b/homeassistant/components/solax/sensor.py
@@ -1,7 +1,6 @@
 """Support for Solax inverter via local API."""
 import asyncio
 from datetime import timedelta
-import logging
 
 from solax import real_time_api
 from solax.inverter import InverterError
@@ -14,8 +13,6 @@ import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 from homeassistant.helpers.event import async_track_time_interval
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_PORT = 80
 
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
diff --git a/homeassistant/components/somfy/config_flow.py b/homeassistant/components/somfy/config_flow.py
index 80fc2192d8e5dbb947c54119cab8f3cd27b785f9..5e7b579397708ad96214a243afb08c90c2ffe83c 100644
--- a/homeassistant/components/somfy/config_flow.py
+++ b/homeassistant/components/somfy/config_flow.py
@@ -6,8 +6,6 @@ from homeassistant.helpers import config_entry_oauth2_flow
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @config_entries.HANDLERS.register(DOMAIN)
 class SomfyFlowHandler(config_entry_oauth2_flow.AbstractOAuth2FlowHandler):
diff --git a/homeassistant/components/somfy_mylink/__init__.py b/homeassistant/components/somfy_mylink/__init__.py
index 6c6333af5a666fe0760ebf30a1b8deacef92cdaa..8106cde0c18fd0e8996b74a58f2b4d68fb8ae7c5 100644
--- a/homeassistant/components/somfy_mylink/__init__.py
+++ b/homeassistant/components/somfy_mylink/__init__.py
@@ -1,6 +1,4 @@
 """Component for the Somfy MyLink device supporting the Synergy API."""
-import logging
-
 from somfy_mylink_synergy import SomfyMyLinkSynergy
 import voluptuous as vol
 
@@ -8,7 +6,6 @@ from homeassistant.const import CONF_HOST, CONF_PORT
 from homeassistant.helpers import config_validation as cv
 from homeassistant.helpers.discovery import async_load_platform
 
-_LOGGER = logging.getLogger(__name__)
 CONF_ENTITY_CONFIG = "entity_config"
 CONF_SYSTEM_ID = "system_id"
 CONF_REVERSE = "reverse"
diff --git a/homeassistant/components/songpal/__init__.py b/homeassistant/components/songpal/__init__.py
index 493a3ef4913162e1e8d2c3fe0bf6f53e27dbdcca..d6e31fb9a1cf3d4ba7defef87af5e405f5a73a2c 100644
--- a/homeassistant/components/songpal/__init__.py
+++ b/homeassistant/components/songpal/__init__.py
@@ -1,6 +1,5 @@
 """The songpal component."""
 from collections import OrderedDict
-import logging
 
 import voluptuous as vol
 
@@ -11,8 +10,6 @@ from homeassistant.helpers.typing import HomeAssistantType
 
 from .const import CONF_ENDPOINT, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 SONGPAL_CONFIG_SCHEMA = vol.Schema(
     {vol.Optional(CONF_NAME): cv.string, vol.Required(CONF_ENDPOINT): cv.string}
 )
diff --git a/homeassistant/components/spaceapi/__init__.py b/homeassistant/components/spaceapi/__init__.py
index ea5a64d97e7cf2ce6042a37bf9f3318bccb5dc97..571e0ab62f377c75cfff9f63ce254eb91d786165 100644
--- a/homeassistant/components/spaceapi/__init__.py
+++ b/homeassistant/components/spaceapi/__init__.py
@@ -1,6 +1,4 @@
 """Support for the SpaceAPI."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.http import HomeAssistantView
@@ -21,8 +19,6 @@ import homeassistant.core as ha
 import homeassistant.helpers.config_validation as cv
 import homeassistant.util.dt as dt_util
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_ADDRESS = "address"
 ATTR_SPACEFED = "spacefed"
 ATTR_CAM = "cam"
diff --git a/homeassistant/components/spc/alarm_control_panel.py b/homeassistant/components/spc/alarm_control_panel.py
index 86adc588038840c3b4e4bb16df26a7b5ed84b336..d2d082b08b0ae116732a468391d1462db0f22409 100644
--- a/homeassistant/components/spc/alarm_control_panel.py
+++ b/homeassistant/components/spc/alarm_control_panel.py
@@ -1,6 +1,4 @@
 """Support for Vanderbilt (formerly Siemens) SPC alarm systems."""
-import logging
-
 from pyspcwebgw.const import AreaMode
 
 import homeassistant.components.alarm_control_panel as alarm
@@ -21,8 +19,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from . import DATA_API, SIGNAL_UPDATE_ALARM
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def _get_alarm_state(area):
     """Get the alarm state."""
diff --git a/homeassistant/components/spc/binary_sensor.py b/homeassistant/components/spc/binary_sensor.py
index 1fda59207ec6f1a056611baa41f3ec5025139fbe..48023d09a994bc571b698dad919c532c8d028302 100644
--- a/homeassistant/components/spc/binary_sensor.py
+++ b/homeassistant/components/spc/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for Vanderbilt (formerly Siemens) SPC alarm systems."""
-import logging
-
 from pyspcwebgw.const import ZoneInput, ZoneType
 
 from homeassistant.components.binary_sensor import (
@@ -14,8 +12,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from . import DATA_API, SIGNAL_UPDATE_SENSOR
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def _get_device_class(zone_type):
     return {
diff --git a/homeassistant/components/spider/climate.py b/homeassistant/components/spider/climate.py
index 015606286e2bf787c8d54730e8146b6cbfe58141..d9477c2a4fb8581e15c446be65bb79ea634f71b9 100644
--- a/homeassistant/components/spider/climate.py
+++ b/homeassistant/components/spider/climate.py
@@ -1,7 +1,4 @@
 """Support for Spider thermostats."""
-
-import logging
-
 from homeassistant.components.climate import ClimateEntity
 from homeassistant.components.climate.const import (
     HVAC_MODE_COOL,
@@ -26,8 +23,6 @@ HA_STATE_TO_SPIDER = {
 
 SPIDER_STATE_TO_HA = {value: key for key, value in HA_STATE_TO_SPIDER.items()}
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config, async_add_entities):
     """Initialize a Spider thermostat."""
diff --git a/homeassistant/components/spider/switch.py b/homeassistant/components/spider/switch.py
index cea20d8c6bed329f78f35f4bb033289723751cf1..62f220bf80516b12b3e6843b2a9f5c04662aee49 100644
--- a/homeassistant/components/spider/switch.py
+++ b/homeassistant/components/spider/switch.py
@@ -1,12 +1,8 @@
 """Support for Spider switches."""
-import logging
-
 from homeassistant.components.switch import SwitchEntity
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config, async_add_entities):
     """Initialize a Spider thermostat."""
diff --git a/homeassistant/components/spotcrime/sensor.py b/homeassistant/components/spotcrime/sensor.py
index 2edaa3cf933ebd7e32277380d359fa3c201868c0..30aa80b5e7da5bede53432b015844c36bb02ce07 100644
--- a/homeassistant/components/spotcrime/sensor.py
+++ b/homeassistant/components/spotcrime/sensor.py
@@ -2,7 +2,6 @@
 
 from collections import defaultdict
 from datetime import timedelta
-import logging
 
 import spotcrime
 import voluptuous as vol
@@ -24,8 +23,6 @@ import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 from homeassistant.util import slugify
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_DAYS = "days"
 DEFAULT_DAYS = 1
 NAME = "spotcrime"
diff --git a/homeassistant/components/spotify/config_flow.py b/homeassistant/components/spotify/config_flow.py
index 14e45d58b39b888a7fc33405939bb8196f1ae4ec..ac6e101d4fe0c19a66165ae464bf716699b62daa 100644
--- a/homeassistant/components/spotify/config_flow.py
+++ b/homeassistant/components/spotify/config_flow.py
@@ -11,8 +11,6 @@ from homeassistant.helpers import config_entry_oauth2_flow
 
 from .const import DOMAIN, SPOTIFY_SCOPES
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class SpotifyFlowHandler(
     config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN
diff --git a/homeassistant/components/starline/account.py b/homeassistant/components/starline/account.py
index 3ee716ec85678d1a55c71f4ba9a7b5ee39f735c5..1cedcef8e841a22e89c61e1767fa6fd25667794b 100644
--- a/homeassistant/components/starline/account.py
+++ b/homeassistant/components/starline/account.py
@@ -9,13 +9,13 @@ from homeassistant.core import HomeAssistant
 from homeassistant.helpers.event import async_track_time_interval
 
 from .const import (
+    _LOGGER,
     DATA_EXPIRES,
     DATA_SLID_TOKEN,
     DATA_SLNET_TOKEN,
     DATA_USER_ID,
     DEFAULT_SCAN_INTERVAL,
     DOMAIN,
-    LOGGER,
 )
 
 
@@ -60,7 +60,7 @@ class StarlineAccount:
                 },
             )
         except Exception as err:  # pylint: disable=broad-except
-            LOGGER.error("Error updating SLNet token: %s", err)
+            _LOGGER.error("Error updating SLNet token: %s", err)
 
     def _update_data(self):
         """Update StarLine data."""
@@ -78,7 +78,7 @@ class StarlineAccount:
 
     def set_update_interval(self, interval: int) -> None:
         """Set StarLine API update interval."""
-        LOGGER.debug("Setting update interval: %ds", interval)
+        _LOGGER.debug("Setting update interval: %ds", interval)
         self._update_interval = interval
         if self._unsubscribe_auto_updater is not None:
             self._unsubscribe_auto_updater()
@@ -90,7 +90,7 @@ class StarlineAccount:
 
     def unload(self):
         """Unload StarLine API."""
-        LOGGER.debug("Unloading StarLine API.")
+        _LOGGER.debug("Unloading StarLine API.")
         if self._unsubscribe_auto_updater is not None:
             self._unsubscribe_auto_updater()
             self._unsubscribe_auto_updater = None
diff --git a/homeassistant/components/starline/config_flow.py b/homeassistant/components/starline/config_flow.py
index 8650f158cfc3697fb8d313d5fb2ee25daade912a..d6e8d6f98ead9f9aeb73a9e5ff186f73e73107f1 100644
--- a/homeassistant/components/starline/config_flow.py
+++ b/homeassistant/components/starline/config_flow.py
@@ -8,6 +8,7 @@ from homeassistant import config_entries, core
 from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
 
 from .const import (  # pylint: disable=unused-import
+    _LOGGER,
     CONF_APP_ID,
     CONF_APP_SECRET,
     CONF_CAPTCHA_CODE,
@@ -20,7 +21,6 @@ from .const import (  # pylint: disable=unused-import
     ERROR_AUTH_APP,
     ERROR_AUTH_MFA,
     ERROR_AUTH_USER,
-    LOGGER,
 )
 
 
@@ -182,7 +182,7 @@ class StarlineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
             )
             return self._async_form_auth_user(error)
         except Exception as err:  # pylint: disable=broad-except
-            LOGGER.error("Error auth StarLine: %s", err)
+            _LOGGER.error("Error auth StarLine: %s", err)
             return self._async_form_auth_app(ERROR_AUTH_APP)
 
     async def _async_authenticate_user(self, error=None):
@@ -215,7 +215,7 @@ class StarlineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
 
             raise Exception(data)
         except Exception as err:  # pylint: disable=broad-except
-            LOGGER.error("Error auth user: %s", err)
+            _LOGGER.error("Error auth user: %s", err)
             return self._async_form_auth_user(ERROR_AUTH_USER)
 
     async def _async_get_entry(self):
diff --git a/homeassistant/components/starline/const.py b/homeassistant/components/starline/const.py
index d76cd47b100de221b5a45128fcead184fad4b30f..64ba8fc3d2d75f91ef4c3e4ef756399a20a28ffb 100644
--- a/homeassistant/components/starline/const.py
+++ b/homeassistant/components/starline/const.py
@@ -1,7 +1,7 @@
 """StarLine constants."""
 import logging
 
-LOGGER = logging.getLogger(__package__)
+_LOGGER = logging.getLogger(__package__)
 
 DOMAIN = "starline"
 PLATFORMS = ["device_tracker", "binary_sensor", "sensor", "lock", "switch"]
diff --git a/homeassistant/components/stookalert/binary_sensor.py b/homeassistant/components/stookalert/binary_sensor.py
index aa792d106534f92dcf7729168db3dbbdc46c955d..a1c36e9a10ebb764003c292f697e65214d3382e7 100644
--- a/homeassistant/components/stookalert/binary_sensor.py
+++ b/homeassistant/components/stookalert/binary_sensor.py
@@ -1,6 +1,5 @@
 """This component provides support for Stookalert Binary Sensor."""
 from datetime import timedelta
-import logging
 
 import stookalert
 import voluptuous as vol
@@ -13,8 +12,6 @@ from homeassistant.components.binary_sensor import (
 from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME
 from homeassistant.helpers import config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 SCAN_INTERVAL = timedelta(minutes=60)
 CONF_PROVINCE = "province"
 DEFAULT_DEVICE_CLASS = DEVICE_CLASS_SAFETY
diff --git a/homeassistant/components/sun/trigger.py b/homeassistant/components/sun/trigger.py
index 756a73fc2b0f9d1a3b7fe1438db5cf60f7d63ae5..779d3078f13da801e8f740180d0aa03fe3071152 100644
--- a/homeassistant/components/sun/trigger.py
+++ b/homeassistant/components/sun/trigger.py
@@ -1,6 +1,5 @@
 """Offer sun based automation rules."""
 from datetime import timedelta
-import logging
 
 import voluptuous as vol
 
@@ -16,8 +15,6 @@ from homeassistant.helpers.event import async_track_sunrise, async_track_sunset
 
 # mypy: allow-untyped-defs, no-check-untyped-defs
 
-_LOGGER = logging.getLogger(__name__)
-
 TRIGGER_SCHEMA = vol.Schema(
     {
         vol.Required(CONF_PLATFORM): "sun",
diff --git a/homeassistant/components/switch/light.py b/homeassistant/components/switch/light.py
index c9dd355392821e976a1a62233de4b0919b921796..5128a49d8b7c170518ab24a7c5b326c70dd10d47 100644
--- a/homeassistant/components/switch/light.py
+++ b/homeassistant/components/switch/light.py
@@ -1,5 +1,4 @@
 """Light support for switch entities."""
-import logging
 from typing import Any, Callable, Optional, Sequence, cast
 
 import voluptuous as vol
@@ -25,8 +24,6 @@ from homeassistant.helpers.typing import (
 
 # mypy: allow-untyped-calls, allow-untyped-defs, no-check-untyped-defs
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "Light Switch"
 
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
diff --git a/homeassistant/components/switchbot/switch.py b/homeassistant/components/switchbot/switch.py
index 6d32f8cfd101ce95056f9bf1ecea32257544ea14..3dd931abe49a5ad07fc41fc216cf20b01c81fc81 100644
--- a/homeassistant/components/switchbot/switch.py
+++ b/homeassistant/components/switchbot/switch.py
@@ -1,5 +1,4 @@
 """Support for Switchbot."""
-import logging
 from typing import Any, Dict
 
 # pylint: disable=import-error, no-member
@@ -11,8 +10,6 @@ from homeassistant.const import CONF_MAC, CONF_NAME, CONF_PASSWORD
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.restore_state import RestoreEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "Switchbot"
 
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
diff --git a/homeassistant/components/switcher_kis/__init__.py b/homeassistant/components/switcher_kis/__init__.py
index 4a9a564ec3b3cac01c693d082dfa276f65167b71..23b69eefb746dbe0fcd41b4a5943e8d9c5411a82 100644
--- a/homeassistant/components/switcher_kis/__init__.py
+++ b/homeassistant/components/switcher_kis/__init__.py
@@ -1,8 +1,7 @@
 """Home Assistant Switcher Component."""
-
 from asyncio import QueueEmpty, TimeoutError as Asyncio_TimeoutError, wait_for
 from datetime import datetime, timedelta
-from logging import getLogger
+import logging
 from typing import Dict, Optional
 
 from aioswitcher.api import SwitcherV2Api
@@ -28,7 +27,7 @@ from homeassistant.helpers.typing import (
 )
 from homeassistant.loader import bind_hass
 
-_LOGGER = getLogger(__name__)
+_LOGGER = logging.getLogger(__name__)
 
 DOMAIN = "switcher_kis"
 
diff --git a/homeassistant/components/switcher_kis/switch.py b/homeassistant/components/switcher_kis/switch.py
index badab64391ec5433e23cf11f956ff945efb8b4b9..af922c3ab8b059344940a68dea437faf08c29f7c 100644
--- a/homeassistant/components/switcher_kis/switch.py
+++ b/homeassistant/components/switcher_kis/switch.py
@@ -1,6 +1,4 @@
 """Home Assistant Switcher Component Switch platform."""
-
-from logging import getLogger
 from typing import TYPE_CHECKING, Callable, Dict
 
 from aioswitcher.api import SwitcherV2Api
@@ -31,8 +29,6 @@ if TYPE_CHECKING:
     from aioswitcher.devices import SwitcherV2Device
 
 
-_LOGGER = getLogger(__name__)
-
 DEVICE_PROPERTIES_TO_HA_ATTRIBUTES = {
     "power_consumption": ATTR_CURRENT_POWER_W,
     "electric_current": ATTR_ELECTRIC_CURRENT,
diff --git a/homeassistant/components/switchmate/switch.py b/homeassistant/components/switchmate/switch.py
index e09e42fe75b2908c91a1246bc8800be4c346f8b7..a052b9051a1f6945f62931bad70d971423650904 100644
--- a/homeassistant/components/switchmate/switch.py
+++ b/homeassistant/components/switchmate/switch.py
@@ -1,6 +1,5 @@
 """Support for Switchmate."""
 from datetime import timedelta
-import logging
 
 # pylint: disable=import-error, no-member
 import switchmate
@@ -10,8 +9,6 @@ from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
 from homeassistant.const import CONF_MAC, CONF_NAME
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_FLIP_ON_OFF = "flip_on_off"
 DEFAULT_NAME = "Switchmate"
 
diff --git a/homeassistant/components/syslog/notify.py b/homeassistant/components/syslog/notify.py
index 67d4882e5c3e9b4b5c982087afdca59d7dff18fa..8ace605a0f55657d27d5edd5bdbdaa7907ec893a 100644
--- a/homeassistant/components/syslog/notify.py
+++ b/homeassistant/components/syslog/notify.py
@@ -1,5 +1,4 @@
 """Syslog notification service."""
-import logging
 import syslog
 
 import voluptuous as vol
@@ -11,8 +10,6 @@ from homeassistant.components.notify import (
     BaseNotificationService,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_FACILITY = "facility"
 CONF_OPTION = "option"
 CONF_PRIORITY = "priority"
diff --git a/homeassistant/components/tado/entity.py b/homeassistant/components/tado/entity.py
index 97a3e3bdc39efc7deaffc8bd7d724cb8be1fae12..d91896a4e128d65437c79a346b2966f594ec32d0 100644
--- a/homeassistant/components/tado/entity.py
+++ b/homeassistant/components/tado/entity.py
@@ -1,13 +1,8 @@
 """Base class for August entity."""
-
-import logging
-
 from homeassistant.helpers.entity import Entity
 
 from .const import DEFAULT_NAME, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class TadoZoneEntity(Entity):
     """Base implementation for tado device."""
diff --git a/homeassistant/components/tahoma/scene.py b/homeassistant/components/tahoma/scene.py
index 55b89dfcd471ed6a22d92324c614b60abad811c0..1d53b65d5d5695a83792676abcb53005eac2c47b 100644
--- a/homeassistant/components/tahoma/scene.py
+++ b/homeassistant/components/tahoma/scene.py
@@ -1,13 +1,10 @@
 """Support for Tahoma scenes."""
-import logging
 from typing import Any
 
 from homeassistant.components.scene import Scene
 
 from . import DOMAIN as TAHOMA_DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Tahoma scenes."""
diff --git a/homeassistant/components/tasmota/binary_sensor.py b/homeassistant/components/tasmota/binary_sensor.py
index 4e32ed2519419bf84687d236d6cbab3c1f586700..549452c19492cebb8ce61c014ff445b6675c5ca9 100644
--- a/homeassistant/components/tasmota/binary_sensor.py
+++ b/homeassistant/components/tasmota/binary_sensor.py
@@ -1,5 +1,4 @@
 """Support for Tasmota binary sensors."""
-import logging
 
 from homeassistant.components import binary_sensor
 from homeassistant.components.binary_sensor import BinarySensorEntity
@@ -11,8 +10,6 @@ from .const import DOMAIN as TASMOTA_DOMAIN
 from .discovery import TASMOTA_DISCOVERY_ENTITY_NEW
 from .mixins import TasmotaAvailability, TasmotaDiscoveryUpdate
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up Tasmota binary sensor dynamically through discovery."""
diff --git a/homeassistant/components/tasmota/config_flow.py b/homeassistant/components/tasmota/config_flow.py
index 397e735ae5d061e964d04e4a9a3a4a5889c50714..5d39fa024382f02be7ef0cb9bbfc7cb9fdc596f9 100644
--- a/homeassistant/components/tasmota/config_flow.py
+++ b/homeassistant/components/tasmota/config_flow.py
@@ -1,6 +1,4 @@
 """Config flow for Tasmota."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant import config_entries
@@ -12,8 +10,6 @@ from .const import (  # pylint:disable=unused-import
     DOMAIN,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class FlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
     """Handle a config flow."""
diff --git a/homeassistant/components/tasmota/device_automation.py b/homeassistant/components/tasmota/device_automation.py
index bc788bb3f095910f2fa56e2b321cc1ac315b7f08..6bbd8ce6d897758f76a203d985d4467ab8acc699 100644
--- a/homeassistant/components/tasmota/device_automation.py
+++ b/homeassistant/components/tasmota/device_automation.py
@@ -1,5 +1,4 @@
 """Provides device automations for Tasmota."""
-import logging
 
 from hatasmota.const import AUTOMATION_TYPE_TRIGGER
 
@@ -9,8 +8,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from . import device_trigger
 from .discovery import TASMOTA_DISCOVERY_ENTITY_NEW
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry):
     """Set up Tasmota device automation dynamically through discovery."""
diff --git a/homeassistant/components/tasmota/light.py b/homeassistant/components/tasmota/light.py
index b0993e3cdfc0a26a90800c3626ce26dcc3b481a6..00cedc4a6119a975307d70d90926169388807050 100644
--- a/homeassistant/components/tasmota/light.py
+++ b/homeassistant/components/tasmota/light.py
@@ -1,6 +1,4 @@
 """Support for Tasmota lights."""
-import logging
-
 from hatasmota.light import (
     LIGHT_TYPE_COLDWARM,
     LIGHT_TYPE_NONE,
@@ -33,8 +31,6 @@ from .const import DOMAIN as TASMOTA_DOMAIN
 from .discovery import TASMOTA_DISCOVERY_ENTITY_NEW
 from .mixins import TasmotaAvailability, TasmotaDiscoveryUpdate
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_BRIGHTNESS_MAX = 255
 TASMOTA_BRIGHTNESS_MAX = 100
 
diff --git a/homeassistant/components/tasmota/sensor.py b/homeassistant/components/tasmota/sensor.py
index 690a845d780dcd59cfdd743b1c4e7fa754030b22..189aa5731b3404613335a083e3790b26f941e247 100644
--- a/homeassistant/components/tasmota/sensor.py
+++ b/homeassistant/components/tasmota/sensor.py
@@ -1,5 +1,4 @@
 """Support for Tasmota sensors."""
-import logging
 from typing import Optional
 
 from hatasmota.const import (
@@ -60,8 +59,6 @@ from .const import DOMAIN as TASMOTA_DOMAIN
 from .discovery import TASMOTA_DISCOVERY_ENTITY_NEW
 from .mixins import TasmotaAvailability, TasmotaDiscoveryUpdate
 
-_LOGGER = logging.getLogger(__name__)
-
 DEVICE_CLASS = "device_class"
 ICON = "icon"
 
diff --git a/homeassistant/components/tasmota/switch.py b/homeassistant/components/tasmota/switch.py
index 2477d5888a7e26663dffccc39e645cedc89c7973..fe8f4b9555cd154196b450e6343a0909f3205e79 100644
--- a/homeassistant/components/tasmota/switch.py
+++ b/homeassistant/components/tasmota/switch.py
@@ -1,5 +1,4 @@
 """Support for Tasmota switches."""
-import logging
 
 from homeassistant.components import switch
 from homeassistant.components.switch import SwitchEntity
@@ -10,8 +9,6 @@ from .const import DOMAIN as TASMOTA_DOMAIN
 from .discovery import TASMOTA_DISCOVERY_ENTITY_NEW
 from .mixins import TasmotaAvailability, TasmotaDiscoveryUpdate
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up Tasmota switch dynamically through discovery."""
diff --git a/homeassistant/components/tautulli/sensor.py b/homeassistant/components/tautulli/sensor.py
index 3c61559bcfa0e31dcff6188f2f26f81727407ee5..ed96bb62ace041c1d0758e0efca938aee6128f50 100644
--- a/homeassistant/components/tautulli/sensor.py
+++ b/homeassistant/components/tautulli/sensor.py
@@ -1,6 +1,5 @@
 """A platform which allows you to get information from Tautulli."""
 from datetime import timedelta
-import logging
 
 from pytautulli import Tautulli
 import voluptuous as vol
@@ -22,8 +21,6 @@ import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 from homeassistant.util import Throttle
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_MONITORED_USERS = "monitored_users"
 
 DEFAULT_NAME = "Tautulli"
diff --git a/homeassistant/components/tcp/binary_sensor.py b/homeassistant/components/tcp/binary_sensor.py
index 1648ab5e247ae87277f52df0752314f8ee770ec5..5437cef02dea120c5f32d1246180657e3693d784 100644
--- a/homeassistant/components/tcp/binary_sensor.py
+++ b/homeassistant/components/tcp/binary_sensor.py
@@ -1,12 +1,8 @@
 """Provides a binary sensor which gets its values from a TCP socket."""
-import logging
-
 from homeassistant.components.binary_sensor import BinarySensorEntity
 
 from .sensor import CONF_VALUE_ON, PLATFORM_SCHEMA, TcpSensor
 
-_LOGGER = logging.getLogger(__name__)
-
 PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({})
 
 
diff --git a/homeassistant/components/tellduslive/binary_sensor.py b/homeassistant/components/tellduslive/binary_sensor.py
index 3f82936568912d65daf1520ed52f9862d8867443..45a49e2c1fb72f5f648fad0866686fb600542a6e 100644
--- a/homeassistant/components/tellduslive/binary_sensor.py
+++ b/homeassistant/components/tellduslive/binary_sensor.py
@@ -1,14 +1,10 @@
 """Support for binary sensors using Tellstick Net."""
-import logging
-
 from homeassistant.components import binary_sensor, tellduslive
 from homeassistant.components.binary_sensor import BinarySensorEntity
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from .entry import TelldusLiveEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up tellduslive sensors dynamically."""
diff --git a/homeassistant/components/tellduslive/cover.py b/homeassistant/components/tellduslive/cover.py
index 246b22dc157adf90af35a9578f84d208d693ab98..735219d7a8c62737801080e0139ea1784de456f5 100644
--- a/homeassistant/components/tellduslive/cover.py
+++ b/homeassistant/components/tellduslive/cover.py
@@ -1,14 +1,10 @@
 """Support for Tellstick covers using Tellstick Net."""
-import logging
-
 from homeassistant.components import cover, tellduslive
 from homeassistant.components.cover import CoverEntity
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from .entry import TelldusLiveEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up tellduslive sensors dynamically."""
diff --git a/homeassistant/components/tellduslive/sensor.py b/homeassistant/components/tellduslive/sensor.py
index e322481813a82c2166d43492f3c474338b2ad07e..3ced0217ea99f6b3da0557e56ede5ad5ec5d2850 100644
--- a/homeassistant/components/tellduslive/sensor.py
+++ b/homeassistant/components/tellduslive/sensor.py
@@ -1,6 +1,4 @@
 """Support for Tellstick Net/Telstick Live sensors."""
-import logging
-
 from homeassistant.components import sensor, tellduslive
 from homeassistant.const import (
     DEVICE_CLASS_HUMIDITY,
@@ -19,8 +17,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from .entry import TelldusLiveEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 SENSOR_TYPE_TEMPERATURE = "temp"
 SENSOR_TYPE_HUMIDITY = "humidity"
 SENSOR_TYPE_RAINRATE = "rrate"
diff --git a/homeassistant/components/tellduslive/switch.py b/homeassistant/components/tellduslive/switch.py
index 05a3c166213a79fbecbfc16194ef700d630ad544..9dd8ca939271c0ea05e1e3c18c66aaa6fb275ca8 100644
--- a/homeassistant/components/tellduslive/switch.py
+++ b/homeassistant/components/tellduslive/switch.py
@@ -1,14 +1,10 @@
 """Support for Tellstick switches using Tellstick Net."""
-import logging
-
 from homeassistant.components import switch, tellduslive
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from homeassistant.helpers.entity import ToggleEntity
 
 from .entry import TelldusLiveEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up tellduslive sensors dynamically."""
diff --git a/homeassistant/components/template/__init__.py b/homeassistant/components/template/__init__.py
index a0f3a6a4a651e8dfbcbab1f190a107eb26704723..079569a932462e93bd633dbc63d7b535608c6eac 100644
--- a/homeassistant/components/template/__init__.py
+++ b/homeassistant/components/template/__init__.py
@@ -1,14 +1,9 @@
 """The template component."""
-
-import logging
-
 from homeassistant.const import SERVICE_RELOAD
 from homeassistant.helpers.reload import async_reload_integration_platforms
 
 from .const import DOMAIN, EVENT_TEMPLATE_RELOADED, PLATFORMS
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_reload_service(hass):
     """Create the reload service for the template domain."""
diff --git a/homeassistant/components/template/binary_sensor.py b/homeassistant/components/template/binary_sensor.py
index 2e50448c03715e691e671ad70d8054b9ae235a29..0fd3205f20c0f459caaca86129f9f5c1728b1e4c 100644
--- a/homeassistant/components/template/binary_sensor.py
+++ b/homeassistant/components/template/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for exposing a templated binary sensor."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.binary_sensor import (
@@ -30,8 +28,6 @@ from homeassistant.helpers.template import result_as_boolean
 from .const import CONF_AVAILABILITY_TEMPLATE, DOMAIN, PLATFORMS
 from .template_entity import TemplateEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_DELAY_ON = "delay_on"
 CONF_DELAY_OFF = "delay_off"
 CONF_ATTRIBUTE_TEMPLATES = "attribute_templates"
diff --git a/homeassistant/components/template/lock.py b/homeassistant/components/template/lock.py
index fa28436180eb4d4c4259bd65ce3021cf1f1cb22a..2cd8bc0026619058bbbd48a75a41dc66a964185c 100644
--- a/homeassistant/components/template/lock.py
+++ b/homeassistant/components/template/lock.py
@@ -1,6 +1,4 @@
 """Support for locks which integrates with other components."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.lock import PLATFORM_SCHEMA, LockEntity
@@ -21,8 +19,6 @@ from homeassistant.helpers.script import Script
 from .const import CONF_AVAILABILITY_TEMPLATE, DOMAIN, PLATFORMS
 from .template_entity import TemplateEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_LOCK = "lock"
 CONF_UNLOCK = "unlock"
 
diff --git a/homeassistant/components/template/sensor.py b/homeassistant/components/template/sensor.py
index 754b3da27ac61952677ea88bf98666e4415652e7..aea14884812f5cd90ff0b89022cef77050605e86 100644
--- a/homeassistant/components/template/sensor.py
+++ b/homeassistant/components/template/sensor.py
@@ -1,5 +1,4 @@
 """Allows the creation of a sensor that breaks out state_attributes."""
-import logging
 from typing import Optional
 
 import voluptuous as vol
@@ -32,8 +31,6 @@ from .template_entity import TemplateEntity
 
 CONF_ATTRIBUTE_TEMPLATES = "attribute_templates"
 
-_LOGGER = logging.getLogger(__name__)
-
 SENSOR_SCHEMA = vol.All(
     cv.deprecated(ATTR_ENTITY_ID),
     vol.Schema(
diff --git a/homeassistant/components/template/switch.py b/homeassistant/components/template/switch.py
index d255d5b610cdd343538cd0fc9286d60371065b72..511338b5aa117142644951ab7b1ab552cb3230e9 100644
--- a/homeassistant/components/template/switch.py
+++ b/homeassistant/components/template/switch.py
@@ -1,5 +1,4 @@
 """Support for switches which integrates with other components."""
-import logging
 
 import voluptuous as vol
 
@@ -30,7 +29,6 @@ from homeassistant.helpers.script import Script
 from .const import CONF_AVAILABILITY_TEMPLATE, DOMAIN, PLATFORMS
 from .template_entity import TemplateEntity
 
-_LOGGER = logging.getLogger(__name__)
 _VALID_STATES = [STATE_ON, STATE_OFF, "true", "false"]
 
 ON_ACTION = "turn_on"
diff --git a/homeassistant/components/tesla/binary_sensor.py b/homeassistant/components/tesla/binary_sensor.py
index 3c3777afc1fd1ea37676df325dfcba6818feed10..77315ef1e3c32c08a84a787e627443a88d66b9bf 100644
--- a/homeassistant/components/tesla/binary_sensor.py
+++ b/homeassistant/components/tesla/binary_sensor.py
@@ -1,12 +1,9 @@
 """Support for Tesla binary sensor."""
-import logging
 
 from homeassistant.components.binary_sensor import DEVICE_CLASSES, BinarySensorEntity
 
 from . import DOMAIN as TESLA_DOMAIN, TeslaDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Tesla binary_sensors by config_entry."""
diff --git a/homeassistant/components/tesla/device_tracker.py b/homeassistant/components/tesla/device_tracker.py
index 46265a96ae4c28f200f54077e55ce4c3f8f005b2..cac89d58d3a009377d91ecbe48908e83d03473ee 100644
--- a/homeassistant/components/tesla/device_tracker.py
+++ b/homeassistant/components/tesla/device_tracker.py
@@ -1,5 +1,4 @@
 """Support for tracking Tesla cars."""
-import logging
 from typing import Optional
 
 from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
@@ -7,8 +6,6 @@ from homeassistant.components.device_tracker.config_entry import TrackerEntity
 
 from . import DOMAIN as TESLA_DOMAIN, TeslaDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Tesla binary_sensors by config_entry."""
diff --git a/homeassistant/components/tesla/sensor.py b/homeassistant/components/tesla/sensor.py
index 50be1edc87d04903d5773cdc7688cb89f1c9c663..3b66845c78621aec22a33772db347e76ece19f8c 100644
--- a/homeassistant/components/tesla/sensor.py
+++ b/homeassistant/components/tesla/sensor.py
@@ -1,5 +1,4 @@
 """Support for the Tesla sensors."""
-import logging
 from typing import Optional
 
 from homeassistant.components.sensor import DEVICE_CLASSES
@@ -14,8 +13,6 @@ from homeassistant.util.distance import convert
 
 from . import DOMAIN as TESLA_DOMAIN, TeslaDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Tesla binary_sensors by config_entry."""
diff --git a/homeassistant/components/thethingsnetwork/__init__.py b/homeassistant/components/thethingsnetwork/__init__.py
index 65626a381ecd9f42248a0a323cbc2fe2a4846373..c31b4dc7bcdd5a47b45a2c5f4f545bf63cefd91c 100644
--- a/homeassistant/components/thethingsnetwork/__init__.py
+++ b/homeassistant/components/thethingsnetwork/__init__.py
@@ -1,12 +1,9 @@
 """Support for The Things network."""
-import logging
 
 import voluptuous as vol
 
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_ACCESS_KEY = "access_key"
 CONF_APP_ID = "app_id"
 
diff --git a/homeassistant/components/thinkingcleaner/sensor.py b/homeassistant/components/thinkingcleaner/sensor.py
index ec8d6a5ef2b05362190c507fa34442165c915aca..966930f1eb1610e6198d839c1a56a9e5b89fa97c 100644
--- a/homeassistant/components/thinkingcleaner/sensor.py
+++ b/homeassistant/components/thinkingcleaner/sensor.py
@@ -1,6 +1,5 @@
 """Support for ThinkingCleaner sensors."""
 from datetime import timedelta
-import logging
 
 from pythinkingcleaner import Discovery, ThinkingCleaner
 import voluptuous as vol
@@ -11,8 +10,6 @@ from homeassistant.const import CONF_HOST, PERCENTAGE
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
-
 MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
 MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(milliseconds=100)
 
diff --git a/homeassistant/components/thinkingcleaner/switch.py b/homeassistant/components/thinkingcleaner/switch.py
index 6ef1a6f9556c9155e483d4fd5bd41cd360b7e923..6a1d20f95098f121ced7f132c2583de16b38cbef 100644
--- a/homeassistant/components/thinkingcleaner/switch.py
+++ b/homeassistant/components/thinkingcleaner/switch.py
@@ -1,6 +1,5 @@
 """Support for ThinkingCleaner switches."""
 from datetime import timedelta
-import logging
 import time
 
 from pythinkingcleaner import Discovery, ThinkingCleaner
@@ -12,8 +11,6 @@ from homeassistant.const import CONF_HOST, STATE_OFF, STATE_ON
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import ToggleEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
 MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(milliseconds=100)
 
diff --git a/homeassistant/components/tibber/config_flow.py b/homeassistant/components/tibber/config_flow.py
index 6f93a898e2f6f5c2d0b9458994f577c7c32fd783..8dce1e66a5a584e47145f470cf1932bedc1858a4 100644
--- a/homeassistant/components/tibber/config_flow.py
+++ b/homeassistant/components/tibber/config_flow.py
@@ -1,6 +1,5 @@
 """Adds config flow for Tibber integration."""
 import asyncio
-import logging
 
 import aiohttp
 import tibber
@@ -12,8 +11,6 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
 
 from .const import DOMAIN  # pylint:disable=unused-import
 
-_LOGGER = logging.getLogger(__name__)
-
 DATA_SCHEMA = vol.Schema({vol.Required(CONF_ACCESS_TOKEN): str})
 
 
diff --git a/homeassistant/components/tof/sensor.py b/homeassistant/components/tof/sensor.py
index d9ad178cab284b074cea5f9b73cea947232cb0b2..17b2d1010bfb82ec2148e7677eacdb026c0b9013 100644
--- a/homeassistant/components/tof/sensor.py
+++ b/homeassistant/components/tof/sensor.py
@@ -2,7 +2,6 @@
 
 import asyncio
 from functools import partial
-import logging
 
 from VL53L1X2 import VL53L1X  # pylint: disable=import-error
 import voluptuous as vol
@@ -13,8 +12,6 @@ from homeassistant.const import CONF_NAME, LENGTH_MILLIMETERS
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_I2C_ADDRESS = "i2c_address"
 CONF_I2C_BUS = "i2c_bus"
 CONF_XSHUT = "xshut"
diff --git a/homeassistant/components/toon/__init__.py b/homeassistant/components/toon/__init__.py
index e2171f0229025998e8cfec6d07197ae0ede8fd6e..d1753ad4d026afa63cf546e8f83b0335c493bd7d 100644
--- a/homeassistant/components/toon/__init__.py
+++ b/homeassistant/components/toon/__init__.py
@@ -1,6 +1,5 @@
 """Support for Toon van Eneco devices."""
 import asyncio
-import logging
 
 import voluptuous as vol
 
@@ -35,8 +34,6 @@ ENTITY_COMPONENTS = {
     SWITCH_DOMAIN,
 }
 
-_LOGGER = logging.getLogger(__name__)
-
 # Validation of the user's configuration
 CONFIG_SCHEMA = vol.Schema(
     {
diff --git a/homeassistant/components/toon/binary_sensor.py b/homeassistant/components/toon/binary_sensor.py
index 135b25dddff981e3a540b77c862ed36870f59605..fe14435f2aba5c42a54d280350bd3b6397ebdfb7 100644
--- a/homeassistant/components/toon/binary_sensor.py
+++ b/homeassistant/components/toon/binary_sensor.py
@@ -1,5 +1,4 @@
 """Support for Toon binary sensors."""
-import logging
 from typing import Optional
 
 from homeassistant.components.binary_sensor import BinarySensorEntity
@@ -25,8 +24,6 @@ from .models import (
     ToonEntity,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistantType, entry: ConfigEntry, async_add_entities
diff --git a/homeassistant/components/toon/climate.py b/homeassistant/components/toon/climate.py
index 06f64262d2b2629f8aeacfc6da44b09389b94a73..ba3ef8ee807f2ea6071a89d288e60a71d9f1fd58 100644
--- a/homeassistant/components/toon/climate.py
+++ b/homeassistant/components/toon/climate.py
@@ -1,5 +1,4 @@
 """Support for Toon thermostat."""
-import logging
 from typing import Any, Dict, List, Optional
 
 from toonapi import (
@@ -29,8 +28,6 @@ from .const import DEFAULT_MAX_TEMP, DEFAULT_MIN_TEMP, DOMAIN
 from .helpers import toon_exception_handler
 from .models import ToonDisplayDeviceEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistantType, entry: ConfigEntry, async_add_entities
diff --git a/homeassistant/components/toon/models.py b/homeassistant/components/toon/models.py
index 4047ac0d744203270cd795e8fc557a0ac9bea535..edcbed369a387e9822babaa0e99348dfa78a4ced 100644
--- a/homeassistant/components/toon/models.py
+++ b/homeassistant/components/toon/models.py
@@ -1,5 +1,4 @@
 """DataUpdate Coordinator, and base Entity and Device models for Toon."""
-import logging
 from typing import Any, Dict, Optional
 
 from homeassistant.helpers.update_coordinator import CoordinatorEntity
@@ -7,8 +6,6 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity
 from .const import DOMAIN
 from .coordinator import ToonDataUpdateCoordinator
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class ToonEntity(CoordinatorEntity):
     """Defines a base Toon entity."""
diff --git a/homeassistant/components/toon/oauth2.py b/homeassistant/components/toon/oauth2.py
index feeb44b656a7cd85c1b470f96701ee54b33c55c4..2622e0a902774ca9e5f45dc4703e282e002b174c 100644
--- a/homeassistant/components/toon/oauth2.py
+++ b/homeassistant/components/toon/oauth2.py
@@ -1,5 +1,4 @@
 """OAuth2 implementations for Toon."""
-import logging
 from typing import Any, Optional, cast
 
 from homeassistant.core import HomeAssistant
@@ -8,8 +7,6 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
 
 from . import config_flow
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def register_oauth2_implementations(
     hass: HomeAssistant, client_id: str, client_secret: str
diff --git a/homeassistant/components/toon/sensor.py b/homeassistant/components/toon/sensor.py
index e686ff282113a8427af187dd9a4b5b9043ee5120..52d3a68f2c1b8e6ce1978bf62f615993307b0693 100644
--- a/homeassistant/components/toon/sensor.py
+++ b/homeassistant/components/toon/sensor.py
@@ -1,5 +1,4 @@
 """Support for Toon sensors."""
-import logging
 from typing import Optional
 
 from homeassistant.config_entries import ConfigEntry
@@ -27,8 +26,6 @@ from .models import (
     ToonWaterMeterDeviceEntity,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistant, entry: ConfigEntry, async_add_entities
diff --git a/homeassistant/components/toon/switch.py b/homeassistant/components/toon/switch.py
index 22bdd6b100ee400d5bf5de5bd732f7dbaea10adb..d529dd07075fee0204a90370a64e7130bdb62a72 100644
--- a/homeassistant/components/toon/switch.py
+++ b/homeassistant/components/toon/switch.py
@@ -1,5 +1,4 @@
 """Support for Toon switches."""
-import logging
 from typing import Any
 
 from toonapi import (
@@ -27,8 +26,6 @@ from .coordinator import ToonDataUpdateCoordinator
 from .helpers import toon_exception_handler
 from .models import ToonDisplayDeviceEntity, ToonEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistantType, entry: ConfigEntry, async_add_entities
diff --git a/homeassistant/components/torque/sensor.py b/homeassistant/components/torque/sensor.py
index b4b44bdfb4f72ea208479d88a8aea2d1a8481c40..4b52a565d873e27c7a05fa695a65cffba7f07181 100644
--- a/homeassistant/components/torque/sensor.py
+++ b/homeassistant/components/torque/sensor.py
@@ -1,5 +1,4 @@
 """Support for the Torque OBD application."""
-import logging
 import re
 
 import voluptuous as vol
@@ -11,8 +10,6 @@ from homeassistant.core import callback
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
-
 API_PATH = "/api/torque"
 
 DEFAULT_NAME = "vehicle"
diff --git a/homeassistant/components/totalconnect/config_flow.py b/homeassistant/components/totalconnect/config_flow.py
index 3bc15a441d13a5904e82d3c0e6d69a314203225f..2608a3c812cdbdd82c63d08b877bc37371cdf92f 100644
--- a/homeassistant/components/totalconnect/config_flow.py
+++ b/homeassistant/components/totalconnect/config_flow.py
@@ -1,6 +1,4 @@
 """Config flow for the Total Connect component."""
-import logging
-
 from total_connect_client import TotalConnectClient
 import voluptuous as vol
 
@@ -9,8 +7,6 @@ from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
 
 from .const import DOMAIN  # pylint: disable=unused-import
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class TotalConnectConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
     """Total Connect config flow."""
diff --git a/homeassistant/components/touchline/climate.py b/homeassistant/components/touchline/climate.py
index 16709793ec1663e708eaea97c04d9212438ab252..3193b6f847ca340459a73ddfe5f3f27544fb11a5 100644
--- a/homeassistant/components/touchline/climate.py
+++ b/homeassistant/components/touchline/climate.py
@@ -1,6 +1,4 @@
 """Platform for Roth Touchline floor heating controller."""
-import logging
-
 from pytouchline import PyTouchline
 import voluptuous as vol
 
@@ -13,8 +11,6 @@ from homeassistant.components.climate.const import (
 from homeassistant.const import ATTR_TEMPERATURE, CONF_HOST, TEMP_CELSIUS
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 PRESET_MODES = {
     "Normal": {"mode": 0, "program": 0},
     "Night": {"mode": 1, "program": 0},
diff --git a/homeassistant/components/traccar/__init__.py b/homeassistant/components/traccar/__init__.py
index 5203ea5ec90f3881a2eb834518353fac4e98ea89..c19a9cdd27e89537e10fb0891ff8be4f077fc333 100644
--- a/homeassistant/components/traccar/__init__.py
+++ b/homeassistant/components/traccar/__init__.py
@@ -1,6 +1,4 @@
 """Support for Traccar."""
-import logging
-
 from aiohttp import web
 import voluptuous as vol
 
@@ -23,8 +21,6 @@ from .const import (
     DOMAIN,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 TRACKER_UPDATE = f"{DOMAIN}_tracker_update"
 
 
diff --git a/homeassistant/components/tradfri/light.py b/homeassistant/components/tradfri/light.py
index 939968852d93f9e683a3904c7a1218c51544e810..bad4ce282b937f73e1647057890f9bad8bd86e80 100644
--- a/homeassistant/components/tradfri/light.py
+++ b/homeassistant/components/tradfri/light.py
@@ -1,6 +1,4 @@
 """Support for IKEA Tradfri lights."""
-import logging
-
 from homeassistant.components.light import (
     ATTR_BRIGHTNESS,
     ATTR_COLOR_TEMP,
@@ -29,8 +27,6 @@ from .const import (
     SUPPORTED_LIGHT_FEATURES,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Load Tradfri lights based on a config entry."""
diff --git a/homeassistant/components/transmission/sensor.py b/homeassistant/components/transmission/sensor.py
index 69388de11450e8b9b8884b1c97929e6d15e107bd..ef1e68e2d0a4f51d58030aaf8d6cd2303da58d20 100644
--- a/homeassistant/components/transmission/sensor.py
+++ b/homeassistant/components/transmission/sensor.py
@@ -1,6 +1,4 @@
 """Support for monitoring the Transmission BitTorrent client API."""
-import logging
-
 from homeassistant.const import CONF_NAME, DATA_RATE_MEGABYTES_PER_SECOND, STATE_IDLE
 from homeassistant.core import callback
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -14,8 +12,6 @@ from .const import (
     SUPPORTED_ORDER_MODES,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Transmission sensors."""
diff --git a/homeassistant/components/transport_nsw/sensor.py b/homeassistant/components/transport_nsw/sensor.py
index e877e2d2e436f0add37797dc6298fcfe42fdf6ee..2aa27f8c4b39a7a5a1b38026ee799011ed8e11ac 100644
--- a/homeassistant/components/transport_nsw/sensor.py
+++ b/homeassistant/components/transport_nsw/sensor.py
@@ -1,6 +1,5 @@
 """Support for Transport NSW (AU) to query next leave event."""
 from datetime import timedelta
-import logging
 
 from TransportNSW import TransportNSW
 import voluptuous as vol
@@ -16,8 +15,6 @@ from homeassistant.const import (
 import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_STOP_ID = "stop_id"
 ATTR_ROUTE = "route"
 ATTR_DUE_IN = "due"
diff --git a/homeassistant/components/twentemilieu/__init__.py b/homeassistant/components/twentemilieu/__init__.py
index 15583b75499bf3e665a7a2bcb26fc2f196c0cd3e..06c2cb27f357804bf7b31a15588649f4adab69e2 100644
--- a/homeassistant/components/twentemilieu/__init__.py
+++ b/homeassistant/components/twentemilieu/__init__.py
@@ -1,7 +1,6 @@
 """Support for Twente Milieu."""
 import asyncio
 from datetime import timedelta
-import logging
 from typing import Optional
 
 from twentemilieu import TwenteMilieu
@@ -24,8 +23,6 @@ from homeassistant.helpers.typing import ConfigType, HomeAssistantType
 
 SCAN_INTERVAL = timedelta(seconds=3600)
 
-_LOGGER = logging.getLogger(__name__)
-
 SERVICE_UPDATE = "update"
 SERVICE_SCHEMA = vol.Schema({vol.Optional(CONF_ID): cv.string})
 
diff --git a/homeassistant/components/twentemilieu/config_flow.py b/homeassistant/components/twentemilieu/config_flow.py
index 071f035f4f9d3ea4f2c6ed068077a367b03b3fb6..76c9f33b3e9ff8cc462e3c516330666e66727c36 100644
--- a/homeassistant/components/twentemilieu/config_flow.py
+++ b/homeassistant/components/twentemilieu/config_flow.py
@@ -1,6 +1,4 @@
 """Config flow to configure the Twente Milieu integration."""
-import logging
-
 from twentemilieu import (
     TwenteMilieu,
     TwenteMilieuAddressError,
@@ -19,8 +17,6 @@ from homeassistant.config_entries import ConfigFlow
 from homeassistant.const import CONF_ID
 from homeassistant.helpers.aiohttp_client import async_get_clientsession
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @config_entries.HANDLERS.register(DOMAIN)
 class TwenteMilieuFlowHandler(ConfigFlow):
diff --git a/homeassistant/components/twentemilieu/sensor.py b/homeassistant/components/twentemilieu/sensor.py
index b1be9a071e4b4a5e867c7a47a4d3f489ef77caae..92194e1217235e1fc053784165ea782cc7d5b363 100644
--- a/homeassistant/components/twentemilieu/sensor.py
+++ b/homeassistant/components/twentemilieu/sensor.py
@@ -1,5 +1,4 @@
 """Support for Twente Milieu sensors."""
-import logging
 from typing import Any, Dict
 
 from twentemilieu import (
@@ -20,8 +19,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from homeassistant.helpers.entity import Entity
 from homeassistant.helpers.typing import HomeAssistantType
 
-_LOGGER = logging.getLogger(__name__)
-
 PARALLEL_UPDATES = 1
 
 
diff --git a/homeassistant/components/unifi/device_tracker.py b/homeassistant/components/unifi/device_tracker.py
index 4c5d3309c08aa740d060be18fa17ef246f4c32e6..a3352631885d0fe36fb89ac2d7f746b96615b82d 100644
--- a/homeassistant/components/unifi/device_tracker.py
+++ b/homeassistant/components/unifi/device_tracker.py
@@ -1,6 +1,5 @@
 """Track devices using UniFi controllers."""
 from datetime import timedelta
-import logging
 
 from aiounifi.api import SOURCE_DATA, SOURCE_EVENT
 from aiounifi.events import (
@@ -29,8 +28,6 @@ from .const import ATTR_MANUFACTURER, DOMAIN as UNIFI_DOMAIN
 from .unifi_client import UniFiClient
 from .unifi_entity_base import UniFiBase
 
-LOGGER = logging.getLogger(__name__)
-
 CLIENT_TRACKER = "client"
 DEVICE_TRACKER = "device"
 
diff --git a/homeassistant/components/unifi/sensor.py b/homeassistant/components/unifi/sensor.py
index ef38877533f104f0795bf27fcd61ea8e7968b8b1..c0b8cea09c216350a7dfb4a7620b82f3cf14fc42 100644
--- a/homeassistant/components/unifi/sensor.py
+++ b/homeassistant/components/unifi/sensor.py
@@ -1,6 +1,4 @@
 """Support for bandwidth sensors with UniFi clients."""
-import logging
-
 from homeassistant.components.sensor import DEVICE_CLASS_TIMESTAMP, DOMAIN
 from homeassistant.const import DATA_MEGABYTES
 from homeassistant.core import callback
@@ -10,8 +8,6 @@ import homeassistant.util.dt as dt_util
 from .const import DOMAIN as UNIFI_DOMAIN
 from .unifi_client import UniFiClient
 
-LOGGER = logging.getLogger(__name__)
-
 RX_SENSOR = "rx"
 TX_SENSOR = "tx"
 UPTIME_SENSOR = "uptime"
diff --git a/homeassistant/components/unifi/switch.py b/homeassistant/components/unifi/switch.py
index 013572c11e624c955e5d9504f803db49c4345705..9bdb35baf4d40c8ff29443f6594675a0907750bf 100644
--- a/homeassistant/components/unifi/switch.py
+++ b/homeassistant/components/unifi/switch.py
@@ -17,7 +17,7 @@ from homeassistant.helpers.restore_state import RestoreEntity
 from .const import DOMAIN as UNIFI_DOMAIN
 from .unifi_client import UniFiClient
 
-LOGGER = logging.getLogger(__name__)
+_LOGGER = logging.getLogger(__name__)
 
 BLOCK_SWITCH = "block"
 POE_SWITCH = "poe"
@@ -225,7 +225,7 @@ class UniFiPOEClientSwitch(UniFiClient, SwitchEntity, RestoreEntity):
         try:
             return self.device.ports[self.client.sw_port]
         except (AttributeError, KeyError, TypeError):
-            LOGGER.warning(
+            _LOGGER.warning(
                 "Entity %s reports faulty device %s or port %s",
                 self.entity_id,
                 self.client.sw_mac,
diff --git a/homeassistant/components/unifi/unifi_client.py b/homeassistant/components/unifi/unifi_client.py
index 224a057176c528a5e9d19ed2fe8dfd9875d0f4fb..17f5a473211f79905e8e189d40c35a260b7937e4 100644
--- a/homeassistant/components/unifi/unifi_client.py
+++ b/homeassistant/components/unifi/unifi_client.py
@@ -1,13 +1,8 @@
 """Base class for UniFi clients."""
-
-import logging
-
 from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
 
 from .unifi_entity_base import UniFiBase
 
-LOGGER = logging.getLogger(__name__)
-
 
 class UniFiClient(UniFiBase):
     """Base class for UniFi clients."""
diff --git a/homeassistant/components/unifi/unifi_entity_base.py b/homeassistant/components/unifi/unifi_entity_base.py
index 46a7123e4c977deb2b0a1b0d681d3d336a5987af..42820cf69b09b0a79152702d49f81d110bb194c1 100644
--- a/homeassistant/components/unifi/unifi_entity_base.py
+++ b/homeassistant/components/unifi/unifi_entity_base.py
@@ -6,7 +6,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from homeassistant.helpers.entity import Entity
 from homeassistant.helpers.entity_registry import async_entries_for_device
 
-LOGGER = logging.getLogger(__name__)
+_LOGGER = logging.getLogger(__name__)
 
 
 class UniFiBase(Entity):
@@ -26,7 +26,9 @@ class UniFiBase(Entity):
 
     async def async_added_to_hass(self) -> None:
         """Entity created."""
-        LOGGER.debug("New %s entity %s (%s)", self.TYPE, self.entity_id, self._item.mac)
+        _LOGGER.debug(
+            "New %s entity %s (%s)", self.TYPE, self.entity_id, self._item.mac
+        )
         for signal, method in (
             (self.controller.signal_reachable, self.async_update_callback),
             (self.controller.signal_options_update, self.options_updated),
@@ -37,7 +39,7 @@ class UniFiBase(Entity):
 
     async def async_will_remove_from_hass(self) -> None:
         """Disconnect object when removed."""
-        LOGGER.debug(
+        _LOGGER.debug(
             "Removing %s entity %s (%s)", self.TYPE, self.entity_id, self._item.mac
         )
         self._item.remove_callback(self.async_update_callback)
@@ -46,7 +48,7 @@ class UniFiBase(Entity):
     @callback
     def async_update_callback(self) -> None:
         """Update the entity's state."""
-        LOGGER.debug(
+        _LOGGER.debug(
             "Updating %s entity %s (%s)", self.TYPE, self.entity_id, self._item.mac
         )
         self.async_write_ha_state()
diff --git a/homeassistant/components/universal/media_player.py b/homeassistant/components/universal/media_player.py
index aedc27c2a29fc7b5cee64f748842dc55ad00c33e..8fff0e80dfb8728c6b8ac3e93442a14efa7d3a75 100644
--- a/homeassistant/components/universal/media_player.py
+++ b/homeassistant/components/universal/media_player.py
@@ -1,6 +1,5 @@
 """Combination of multiple media players for a universal controller."""
 from copy import copy
-import logging
 
 import voluptuous as vol
 
@@ -75,8 +74,6 @@ from homeassistant.helpers.event import TrackTemplate, async_track_template_resu
 from homeassistant.helpers.reload import async_setup_reload_service
 from homeassistant.helpers.service import async_call_from_config
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_ACTIVE_CHILD = "active_child"
 ATTR_DATA = "data"
 
diff --git a/homeassistant/components/velbus/binary_sensor.py b/homeassistant/components/velbus/binary_sensor.py
index 8c4cc5a4043a13a46f8c1c8e31046b7479a33555..74263d872340c17d16abc0c19e639ab1176d630b 100644
--- a/homeassistant/components/velbus/binary_sensor.py
+++ b/homeassistant/components/velbus/binary_sensor.py
@@ -1,13 +1,9 @@
 """Support for Velbus Binary Sensors."""
-import logging
-
 from homeassistant.components.binary_sensor import BinarySensorEntity
 
 from . import VelbusEntity
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, entry, async_add_entities):
     """Set up Velbus binary sensor based on config_entry."""
diff --git a/homeassistant/components/velbus/sensor.py b/homeassistant/components/velbus/sensor.py
index d8644b4569a0d708894f4e37c6f9853dadb1dab3..095108b440115cf8507dcc1cc4552038f478c7ea 100644
--- a/homeassistant/components/velbus/sensor.py
+++ b/homeassistant/components/velbus/sensor.py
@@ -1,13 +1,9 @@
 """Support for Velbus sensors."""
-import logging
-
 from homeassistant.const import DEVICE_CLASS_POWER, ENERGY_KILO_WATT_HOUR
 
 from . import VelbusEntity
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, entry, async_add_entities):
     """Set up Velbus sensor based on config_entry."""
diff --git a/homeassistant/components/vera/binary_sensor.py b/homeassistant/components/vera/binary_sensor.py
index 2e66d38e2492aced922279f9b91404d4284b5992..a84764209b20030bf047b23d6e08a278967a7f5f 100644
--- a/homeassistant/components/vera/binary_sensor.py
+++ b/homeassistant/components/vera/binary_sensor.py
@@ -1,5 +1,4 @@
 """Support for Vera binary sensors."""
-import logging
 from typing import Callable, List, Optional
 
 import pyvera as veraApi
@@ -16,8 +15,6 @@ from homeassistant.helpers.entity import Entity
 from . import VeraDevice
 from .common import ControllerData, get_controller_data
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistant,
diff --git a/homeassistant/components/vera/climate.py b/homeassistant/components/vera/climate.py
index 0946de4a37961dea057ab2a68b65156b0f3c1729..70694af012f22989b3af28fbc53c0cefc23c78c5 100644
--- a/homeassistant/components/vera/climate.py
+++ b/homeassistant/components/vera/climate.py
@@ -1,5 +1,4 @@
 """Support for Vera thermostats."""
-import logging
 from typing import Any, Callable, List, Optional
 
 import pyvera as veraApi
@@ -28,8 +27,6 @@ from homeassistant.util import convert
 from . import VeraDevice
 from .common import ControllerData, get_controller_data
 
-_LOGGER = logging.getLogger(__name__)
-
 FAN_OPERATION_LIST = [FAN_ON, FAN_AUTO]
 
 SUPPORT_FLAGS = SUPPORT_TARGET_TEMPERATURE | SUPPORT_FAN_MODE
diff --git a/homeassistant/components/vera/common.py b/homeassistant/components/vera/common.py
index 66a2d6879ddf0289635d70701f39325ad6cd9ac5..fce6475f930c0a65a2a6ff11869f9208c67cd7eb 100644
--- a/homeassistant/components/vera/common.py
+++ b/homeassistant/components/vera/common.py
@@ -1,5 +1,4 @@
 """Common vera code."""
-import logging
 from typing import DefaultDict, List, NamedTuple, Set
 
 import pyvera as pv
@@ -11,8 +10,6 @@ from homeassistant.helpers.event import call_later
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class ControllerData(NamedTuple):
     """Controller data."""
diff --git a/homeassistant/components/vera/cover.py b/homeassistant/components/vera/cover.py
index 49b15e91eb225b9536e7f390f6445a7cb296a1fc..69e412bdadeac7d73e2dc430d7847f92137e83d9 100644
--- a/homeassistant/components/vera/cover.py
+++ b/homeassistant/components/vera/cover.py
@@ -1,5 +1,4 @@
 """Support for Vera cover - curtains, rollershutters etc."""
-import logging
 from typing import Any, Callable, List
 
 import pyvera as veraApi
@@ -17,8 +16,6 @@ from homeassistant.helpers.entity import Entity
 from . import VeraDevice
 from .common import ControllerData, get_controller_data
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistant,
diff --git a/homeassistant/components/vera/light.py b/homeassistant/components/vera/light.py
index 47d2d039d2aceeb346e5e5b81bc95a1b532a4ff5..7daaf095a5ce87dd47ad8acd7502a8c4c8d67078 100644
--- a/homeassistant/components/vera/light.py
+++ b/homeassistant/components/vera/light.py
@@ -1,5 +1,4 @@
 """Support for Vera lights."""
-import logging
 from typing import Any, Callable, List, Optional, Tuple
 
 import pyvera as veraApi
@@ -21,8 +20,6 @@ import homeassistant.util.color as color_util
 from . import VeraDevice
 from .common import ControllerData, get_controller_data
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistant,
diff --git a/homeassistant/components/vera/lock.py b/homeassistant/components/vera/lock.py
index 46f8c6f189e5fb793932952c5b61ccb7ebb55af6..36a5f4cf2f3e2aa414fe6dd4a10036473bf95b41 100644
--- a/homeassistant/components/vera/lock.py
+++ b/homeassistant/components/vera/lock.py
@@ -1,5 +1,4 @@
 """Support for Vera locks."""
-import logging
 from typing import Any, Callable, Dict, List, Optional
 
 import pyvera as veraApi
@@ -17,8 +16,6 @@ from homeassistant.helpers.entity import Entity
 from . import VeraDevice
 from .common import ControllerData, get_controller_data
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_LAST_USER_NAME = "changed_by_name"
 ATTR_LOW_BATTERY = "low_battery"
 
diff --git a/homeassistant/components/vera/scene.py b/homeassistant/components/vera/scene.py
index 8bd4473e1c828e7764e16cdcc22c6a97ebcbf040..a031aadb66cd797310fe3d1017ea2292fda0d15f 100644
--- a/homeassistant/components/vera/scene.py
+++ b/homeassistant/components/vera/scene.py
@@ -1,5 +1,4 @@
 """Support for Vera scenes."""
-import logging
 from typing import Any, Callable, Dict, List, Optional
 
 import pyvera as veraApi
@@ -13,8 +12,6 @@ from homeassistant.util import slugify
 from .common import ControllerData, get_controller_data
 from .const import VERA_ID_FORMAT
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistant,
diff --git a/homeassistant/components/vera/sensor.py b/homeassistant/components/vera/sensor.py
index 9c3dd097a78d2bc2b97dfea66df5a9db705831cb..e39b752bbf3539c53b6a88bbe7d8e8290806598e 100644
--- a/homeassistant/components/vera/sensor.py
+++ b/homeassistant/components/vera/sensor.py
@@ -1,6 +1,5 @@
 """Support for Vera sensors."""
 from datetime import timedelta
-import logging
 from typing import Callable, List, Optional, cast
 
 import pyvera as veraApi
@@ -15,8 +14,6 @@ from homeassistant.util import convert
 from . import VeraDevice
 from .common import ControllerData, get_controller_data
 
-_LOGGER = logging.getLogger(__name__)
-
 SCAN_INTERVAL = timedelta(seconds=5)
 
 
diff --git a/homeassistant/components/vera/switch.py b/homeassistant/components/vera/switch.py
index 9e8360bf67346b5e347f5638eb9051f85258b002..d0cbeba669c765026e32f519333fb34b831cc616 100644
--- a/homeassistant/components/vera/switch.py
+++ b/homeassistant/components/vera/switch.py
@@ -1,5 +1,4 @@
 """Support for Vera switches."""
-import logging
 from typing import Any, Callable, List, Optional
 
 import pyvera as veraApi
@@ -17,8 +16,6 @@ from homeassistant.util import convert
 from . import VeraDevice
 from .common import ControllerData, get_controller_data
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistant,
diff --git a/homeassistant/components/verisure/binary_sensor.py b/homeassistant/components/verisure/binary_sensor.py
index 206a4072aceae8b5614cd2bd2bf8bddefa3625f5..5a7f4386eced255449aaa88e50788347b09f5683 100644
--- a/homeassistant/components/verisure/binary_sensor.py
+++ b/homeassistant/components/verisure/binary_sensor.py
@@ -1,6 +1,4 @@
 """Support for Verisure binary sensors."""
-import logging
-
 from homeassistant.components.binary_sensor import (
     DEVICE_CLASS_CONNECTIVITY,
     BinarySensorEntity,
@@ -8,8 +6,6 @@ from homeassistant.components.binary_sensor import (
 
 from . import CONF_DOOR_WINDOW, HUB as hub
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Verisure binary sensors."""
diff --git a/homeassistant/components/verisure/sensor.py b/homeassistant/components/verisure/sensor.py
index ff1c31f73026844c6db62a6c775fbf9c7b2a9722..437e45ba72a8bf051030b23d8b77a2176d9393af 100644
--- a/homeassistant/components/verisure/sensor.py
+++ b/homeassistant/components/verisure/sensor.py
@@ -1,13 +1,9 @@
 """Support for Verisure sensors."""
-import logging
-
 from homeassistant.const import PERCENTAGE, TEMP_CELSIUS
 from homeassistant.helpers.entity import Entity
 
 from . import CONF_HYDROMETERS, CONF_MOUSE, CONF_THERMOMETERS, HUB as hub
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Verisure platform."""
diff --git a/homeassistant/components/verisure/switch.py b/homeassistant/components/verisure/switch.py
index 8025b22f402f0361f7f5fea0e0e73d899aefc3c2..4615e0a2a494abdce7fbb0097e4b73f662341075 100644
--- a/homeassistant/components/verisure/switch.py
+++ b/homeassistant/components/verisure/switch.py
@@ -1,13 +1,10 @@
 """Support for Verisure Smartplugs."""
-import logging
 from time import monotonic
 
 from homeassistant.components.switch import SwitchEntity
 
 from . import CONF_SMARTPLUGS, HUB as hub
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Verisure switch platform."""
diff --git a/homeassistant/components/version/sensor.py b/homeassistant/components/version/sensor.py
index dcfdc11537672ff7bfe7e48c525b01c5e1f36883..c030383a4a692b55914119c7fa16cae0169542e9 100644
--- a/homeassistant/components/version/sensor.py
+++ b/homeassistant/components/version/sensor.py
@@ -1,6 +1,5 @@
 """Sensor that can display the current Home Assistant versions."""
 from datetime import timedelta
-import logging
 
 from pyhaversion import (
     DockerVersion,
@@ -18,8 +17,6 @@ import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 from homeassistant.util import Throttle
 
-_LOGGER = logging.getLogger(__name__)
-
 ALL_IMAGES = [
     "default",
     "intel-nuc",
diff --git a/homeassistant/components/vesync/config_flow.py b/homeassistant/components/vesync/config_flow.py
index 90db4db14b8676ec0651e0685cb6e30dd3b3d987..f930619d00b53b4a8cb93d6c30a321fee02620cf 100644
--- a/homeassistant/components/vesync/config_flow.py
+++ b/homeassistant/components/vesync/config_flow.py
@@ -1,6 +1,5 @@
 """Config flow utilities."""
 from collections import OrderedDict
-import logging
 
 from pyvesync import VeSync
 import voluptuous as vol
@@ -11,8 +10,6 @@ from homeassistant.core import callback
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @callback
 def configured_instances(hass):
diff --git a/homeassistant/components/vivotek/camera.py b/homeassistant/components/vivotek/camera.py
index b1c7d2bb2a79f9d4edc4d4081325ef8ae60410e8..953d64f0ff681f588f8bb91e16f829098bc46a2c 100644
--- a/homeassistant/components/vivotek/camera.py
+++ b/homeassistant/components/vivotek/camera.py
@@ -1,7 +1,4 @@
 """Support for Vivotek IP Cameras."""
-
-import logging
-
 from libpyvivotek import VivotekCamera
 import voluptuous as vol
 
@@ -19,8 +16,6 @@ from homeassistant.const import (
 )
 from homeassistant.helpers import config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_FRAMERATE = "framerate"
 CONF_SECURITY_LEVEL = "security_level"
 CONF_STREAM_PATH = "stream_path"
diff --git a/homeassistant/components/volumio/media_player.py b/homeassistant/components/volumio/media_player.py
index 4edf44cc814c225469f93ad1d296bef1e7c2a71d..89fb17affc819944e3e9b6d7889eb240a47e0336 100644
--- a/homeassistant/components/volumio/media_player.py
+++ b/homeassistant/components/volumio/media_player.py
@@ -5,7 +5,6 @@ Volumio rest API: https://volumio.github.io/docs/API/REST_API.html
 """
 from datetime import timedelta
 import json
-import logging
 
 from homeassistant.components.media_player import MediaPlayerEntity
 from homeassistant.components.media_player.const import (
@@ -38,7 +37,6 @@ from .browse_media import browse_node, browse_top_level
 from .const import DATA_INFO, DATA_VOLUMIO, DOMAIN
 
 _CONFIGURING = {}
-_LOGGER = logging.getLogger(__name__)
 
 SUPPORT_VOLUMIO = (
     SUPPORT_PAUSE
diff --git a/homeassistant/components/volvooncall/binary_sensor.py b/homeassistant/components/volvooncall/binary_sensor.py
index 0dba6186ef94a6a195222a143054aa0a98e52936..f08b4509bd1e7043cbcdeaafabcab35dfa9c7d51 100644
--- a/homeassistant/components/volvooncall/binary_sensor.py
+++ b/homeassistant/components/volvooncall/binary_sensor.py
@@ -1,12 +1,8 @@
 """Support for VOC."""
-import logging
-
 from homeassistant.components.binary_sensor import DEVICE_CLASSES, BinarySensorEntity
 
 from . import DATA_KEY, VolvoEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Set up the Volvo sensors."""
diff --git a/homeassistant/components/volvooncall/device_tracker.py b/homeassistant/components/volvooncall/device_tracker.py
index 5e3909c9bed40a866b1964d04bba9b83306ecf4a..eab42156c9aa04975e203840abffdf299e85d9e2 100644
--- a/homeassistant/components/volvooncall/device_tracker.py
+++ b/homeassistant/components/volvooncall/device_tracker.py
@@ -1,14 +1,10 @@
 """Support for tracking a Volvo."""
-import logging
-
 from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
 from homeassistant.helpers.dispatcher import async_dispatcher_connect
 from homeassistant.util import slugify
 
 from . import DATA_KEY, SIGNAL_STATE_UPDATED
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_scanner(hass, config, async_see, discovery_info=None):
     """Set up the Volvo tracker."""
diff --git a/homeassistant/components/volvooncall/lock.py b/homeassistant/components/volvooncall/lock.py
index efb8423777be5c248c3806228cbd188c0d0415f7..6d9adcf1e1b8c3c8ef26746b03645cd12579a7d4 100644
--- a/homeassistant/components/volvooncall/lock.py
+++ b/homeassistant/components/volvooncall/lock.py
@@ -1,12 +1,8 @@
 """Support for Volvo On Call locks."""
-import logging
-
 from homeassistant.components.lock import LockEntity
 
 from . import DATA_KEY, VolvoEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Set up the Volvo On Call lock."""
diff --git a/homeassistant/components/volvooncall/sensor.py b/homeassistant/components/volvooncall/sensor.py
index 5132a7b8949603595c0630c086ccf24b532976c4..0915408860db359433770caa8887cf9a624c8c56 100644
--- a/homeassistant/components/volvooncall/sensor.py
+++ b/homeassistant/components/volvooncall/sensor.py
@@ -1,10 +1,6 @@
 """Support for Volvo On Call sensors."""
-import logging
-
 from . import DATA_KEY, VolvoEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Set up the Volvo sensors."""
diff --git a/homeassistant/components/volvooncall/switch.py b/homeassistant/components/volvooncall/switch.py
index da0f61c1d8f4ba5434b7011e8475979d781ecf53..535cfe75e5037ffa8455755800f070a4f5652eb0 100644
--- a/homeassistant/components/volvooncall/switch.py
+++ b/homeassistant/components/volvooncall/switch.py
@@ -1,12 +1,8 @@
 """Support for Volvo heater."""
-import logging
-
 from homeassistant.helpers.entity import ToggleEntity
 
 from . import DATA_KEY, VolvoEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
     """Set up a Volvo switch."""
diff --git a/homeassistant/components/watson_tts/tts.py b/homeassistant/components/watson_tts/tts.py
index 67dfa32e673f5b2fa3cc886833b53afe39b36259..27bfff9550bc57ef69c6688f9a2f9415d698013d 100644
--- a/homeassistant/components/watson_tts/tts.py
+++ b/homeassistant/components/watson_tts/tts.py
@@ -1,6 +1,4 @@
 """Support for IBM Watson TTS integration."""
-import logging
-
 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
 from ibm_watson import TextToSpeechV1
 import voluptuous as vol
@@ -8,8 +6,6 @@ import voluptuous as vol
 from homeassistant.components.tts import PLATFORM_SCHEMA, Provider
 import homeassistant.helpers.config_validation as cv
 
-_LOGGER = logging.getLogger(__name__)
-
 CONF_URL = "watson_url"
 CONF_APIKEY = "watson_apikey"
 ATTR_CREDENTIALS = "credentials"
diff --git a/homeassistant/components/webhook/trigger.py b/homeassistant/components/webhook/trigger.py
index 0cdc7f103f52f4eb83065c5d29c90adddbfeb8d9..81c4c2813cd8e0a3b5d34753929a5444cf796723 100644
--- a/homeassistant/components/webhook/trigger.py
+++ b/homeassistant/components/webhook/trigger.py
@@ -1,6 +1,5 @@
 """Offer webhook triggered automation rules."""
 from functools import partial
-import logging
 
 from aiohttp import hdrs
 import voluptuous as vol
@@ -13,8 +12,6 @@ import homeassistant.helpers.config_validation as cv
 
 DEPENDENCIES = ("webhook",)
 
-_LOGGER = logging.getLogger(__name__)
-
 TRIGGER_SCHEMA = vol.Schema(
     {vol.Required(CONF_PLATFORM): "webhook", vol.Required(CONF_WEBHOOK_ID): cv.string}
 )
diff --git a/homeassistant/components/websocket_api/commands.py b/homeassistant/components/websocket_api/commands.py
index 2106e745351a5d3064736ea65d8ec659ef481291..80ea945834bfee75aae2dd04161b538ecef8830d 100644
--- a/homeassistant/components/websocket_api/commands.py
+++ b/homeassistant/components/websocket_api/commands.py
@@ -1,6 +1,5 @@
 """Commands part of Websocket API."""
 import asyncio
-import logging
 
 import voluptuous as vol
 
@@ -22,8 +21,6 @@ from homeassistant.loader import IntegrationNotFound, async_get_integration
 
 from . import const, decorators, messages
 
-_LOGGER = logging.getLogger(__name__)
-
 # mypy: allow-untyped-calls, allow-untyped-defs
 
 
diff --git a/homeassistant/components/websocket_api/decorators.py b/homeassistant/components/websocket_api/decorators.py
index d4a4cff1a8ff373984f14af85796cbb95ff1ffbd..283734f75784e14131d41209d05d9f60dfa75188 100644
--- a/homeassistant/components/websocket_api/decorators.py
+++ b/homeassistant/components/websocket_api/decorators.py
@@ -1,7 +1,6 @@
 """Decorators for the Websocket API."""
 import asyncio
 from functools import wraps
-import logging
 from typing import Awaitable, Callable
 
 from homeassistant.core import HomeAssistant, callback
@@ -12,8 +11,6 @@ from .connection import ActiveConnection
 
 # mypy: allow-untyped-calls, allow-untyped-defs
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def _handle_async_response(func, hass, connection, msg):
     """Create a response and handle exception."""
diff --git a/homeassistant/components/wilight/config_flow.py b/homeassistant/components/wilight/config_flow.py
index 724bbb6547d2c09c18e3d06afcdf73190c26ed26..6bc81e363aa5da1c3e5700ef34cbbbdb7bf21154 100644
--- a/homeassistant/components/wilight/config_flow.py
+++ b/homeassistant/components/wilight/config_flow.py
@@ -1,5 +1,4 @@
 """Config flow to configure WiLight."""
-import logging
 from urllib.parse import urlparse
 
 import pywilight
@@ -18,8 +17,6 @@ WILIGHT_MANUFACTURER = "All Automacao Ltda"
 # List the components supported by this integration.
 ALLOWED_WILIGHT_COMPONENTS = ["light"]
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class WiLightFlowHandler(ConfigFlow, domain=DOMAIN):
     """Handle a WiLight config flow."""
diff --git a/homeassistant/components/wink/alarm_control_panel.py b/homeassistant/components/wink/alarm_control_panel.py
index 89dc6a468150ab9d8587e517e8ef672119c951ae..5c45cc7b03dc2164575d7a6e75c58544394d1d5c 100644
--- a/homeassistant/components/wink/alarm_control_panel.py
+++ b/homeassistant/components/wink/alarm_control_panel.py
@@ -1,6 +1,4 @@
 """Support Wink alarm control panels."""
-import logging
-
 import pywink
 
 import homeassistant.components.alarm_control_panel as alarm
@@ -16,8 +14,6 @@ from homeassistant.const import (
 
 from . import DOMAIN, WinkDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 STATE_ALARM_PRIVACY = "Private"
 
 
diff --git a/homeassistant/components/wink/fan.py b/homeassistant/components/wink/fan.py
index d1d4e30ada3045681fc7e7abf99a41f7cf66629b..535e7094fcdf9f9ed8350a45a9aa4307c014a5e0 100644
--- a/homeassistant/components/wink/fan.py
+++ b/homeassistant/components/wink/fan.py
@@ -1,6 +1,4 @@
 """Support for Wink fans."""
-import logging
-
 import pywink
 
 from homeassistant.components.fan import (
@@ -14,8 +12,6 @@ from homeassistant.components.fan import (
 
 from . import DOMAIN, WinkDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 SPEED_AUTO = "auto"
 SPEED_LOWEST = "lowest"
 SUPPORTED_FEATURES = SUPPORT_DIRECTION + SUPPORT_SET_SPEED
diff --git a/homeassistant/components/wink/lock.py b/homeassistant/components/wink/lock.py
index 221d6d8165efaad9290853e1a8575e168cc3f188..f82b74e7712310c25fb37bcc299aee58f15da522 100644
--- a/homeassistant/components/wink/lock.py
+++ b/homeassistant/components/wink/lock.py
@@ -1,6 +1,4 @@
 """Support for Wink locks."""
-import logging
-
 import pywink
 import voluptuous as vol
 
@@ -16,8 +14,6 @@ import homeassistant.helpers.config_validation as cv
 
 from . import DOMAIN, WinkDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 SERVICE_SET_VACATION_MODE = "set_lock_vacation_mode"
 SERVICE_SET_ALARM_MODE = "set_lock_alarm_mode"
 SERVICE_SET_ALARM_SENSITIVITY = "set_lock_alarm_sensitivity"
diff --git a/homeassistant/components/wink/scene.py b/homeassistant/components/wink/scene.py
index 753e2c24278d6b85f21c06ede5555dbba09e7743..3f4724957f80ee6c0a07dd347e96fe06c76d66bd 100644
--- a/homeassistant/components/wink/scene.py
+++ b/homeassistant/components/wink/scene.py
@@ -1,5 +1,4 @@
 """Support for Wink scenes."""
-import logging
 from typing import Any
 
 import pywink
@@ -8,8 +7,6 @@ from homeassistant.components.scene import Scene
 
 from . import DOMAIN, WinkDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Wink platform."""
diff --git a/homeassistant/components/wink/switch.py b/homeassistant/components/wink/switch.py
index cf2264e7eeb758061a91690ef1b42fc604e8fb09..2632036095ad3731d65f2d292f4498190f4d200a 100644
--- a/homeassistant/components/wink/switch.py
+++ b/homeassistant/components/wink/switch.py
@@ -1,14 +1,10 @@
 """Support for Wink switches."""
-import logging
-
 import pywink
 
 from homeassistant.helpers.entity import ToggleEntity
 
 from . import DOMAIN, WinkDevice
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the Wink platform."""
diff --git a/homeassistant/components/wirelesstag/binary_sensor.py b/homeassistant/components/wirelesstag/binary_sensor.py
index b92cdeb0bca7f9622303e93142b51642fc2abf1f..ef97867e82988696eace8e00e56555889a4e32ca 100644
--- a/homeassistant/components/wirelesstag/binary_sensor.py
+++ b/homeassistant/components/wirelesstag/binary_sensor.py
@@ -1,6 +1,4 @@
 """Binary sensor support for Wireless Sensor Tags."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensorEntity
@@ -15,8 +13,6 @@ from . import (
     WirelessTagBaseSensor,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 # On means in range, Off means out of range
 SENSOR_PRESENCE = "presence"
 
diff --git a/homeassistant/components/wirelesstag/switch.py b/homeassistant/components/wirelesstag/switch.py
index 9027f92aec06a1e850b5a0b283bfc8803cc070d4..11a5308d8d9fa74f832d2460261e67a1fd9d8ba7 100644
--- a/homeassistant/components/wirelesstag/switch.py
+++ b/homeassistant/components/wirelesstag/switch.py
@@ -1,6 +1,4 @@
 """Switch implementation for Wireless Sensor Tags (wirelesstag.net)."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
@@ -9,8 +7,6 @@ import homeassistant.helpers.config_validation as cv
 
 from . import DOMAIN as WIRELESSTAG_DOMAIN, WirelessTagBaseSensor
 
-_LOGGER = logging.getLogger(__name__)
-
 ARM_TEMPERATURE = "temperature"
 ARM_HUMIDITY = "humidity"
 ARM_MOTION = "motion"
diff --git a/homeassistant/components/withings/config_flow.py b/homeassistant/components/withings/config_flow.py
index e1efa3406f240f2b9abc1f81bd95c5f463b43cbc..d04327808de0fc611913f55edb176abdd6da39ac 100644
--- a/homeassistant/components/withings/config_flow.py
+++ b/homeassistant/components/withings/config_flow.py
@@ -10,8 +10,6 @@ from homeassistant.components.withings import const
 from homeassistant.helpers import config_entry_oauth2_flow
 from homeassistant.util import slugify
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class WithingsFlowHandler(
     config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=const.DOMAIN
diff --git a/homeassistant/components/wled/config_flow.py b/homeassistant/components/wled/config_flow.py
index a3113335fb5dec957b487f5c466986fd289de36c..4d0f6bf1606fd340cf951f00ecbe3a1e7c9e43ca 100644
--- a/homeassistant/components/wled/config_flow.py
+++ b/homeassistant/components/wled/config_flow.py
@@ -1,5 +1,4 @@
 """Config flow to configure the WLED integration."""
-import logging
 from typing import Any, Dict, Optional
 
 import voluptuous as vol
@@ -16,8 +15,6 @@ from homeassistant.helpers.typing import ConfigType
 
 from .const import DOMAIN  # pylint: disable=unused-import
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class WLEDFlowHandler(ConfigFlow, domain=DOMAIN):
     """Handle a WLED config flow."""
diff --git a/homeassistant/components/wled/light.py b/homeassistant/components/wled/light.py
index 1e57dd3c1d3faf7af5a9bda9af8b33da2125857d..9c6d027b05857838c2ccb545f3e6ed70c1c8697e 100644
--- a/homeassistant/components/wled/light.py
+++ b/homeassistant/components/wled/light.py
@@ -1,6 +1,5 @@
 """Support for LED lights."""
 from functools import partial
-import logging
 from typing import Any, Callable, Dict, List, Optional, Tuple, Union
 
 import voluptuous as vol
@@ -45,8 +44,6 @@ from .const import (
     SERVICE_EFFECT,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 PARALLEL_UPDATES = 1
 
 
diff --git a/homeassistant/components/wled/sensor.py b/homeassistant/components/wled/sensor.py
index 06445d03ba947aef017381af329e928252f9bff3..89d76776a82fb9520ab21c0714696465271cbc63 100644
--- a/homeassistant/components/wled/sensor.py
+++ b/homeassistant/components/wled/sensor.py
@@ -1,6 +1,5 @@
 """Support for WLED sensors."""
 from datetime import timedelta
-import logging
 from typing import Any, Callable, Dict, List, Optional
 
 from homeassistant.components.sensor import DEVICE_CLASS_CURRENT
@@ -19,8 +18,6 @@ from homeassistant.util.dt import utcnow
 from . import WLEDDataUpdateCoordinator, WLEDDeviceEntity
 from .const import ATTR_LED_COUNT, ATTR_MAX_POWER, CURRENT_MA, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(
     hass: HomeAssistantType,
diff --git a/homeassistant/components/wled/switch.py b/homeassistant/components/wled/switch.py
index 440819927b1db0e806036c4e77c8862d167da50f..38ebd0e9b29881090a8f6cd597ddeb566b969226 100644
--- a/homeassistant/components/wled/switch.py
+++ b/homeassistant/components/wled/switch.py
@@ -1,5 +1,4 @@
 """Support for WLED switches."""
-import logging
 from typing import Any, Callable, Dict, List, Optional
 
 from homeassistant.components.switch import SwitchEntity
@@ -16,8 +15,6 @@ from .const import (
     DOMAIN,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 PARALLEL_UPDATES = 1
 
 
diff --git a/homeassistant/components/wolflink/sensor.py b/homeassistant/components/wolflink/sensor.py
index 1cae006824bee4ba9b77bec3d3d7d5c50c4a7b1f..201979d4dc33494062baf622d47c7a043b702a94 100644
--- a/homeassistant/components/wolflink/sensor.py
+++ b/homeassistant/components/wolflink/sensor.py
@@ -1,6 +1,4 @@
 """The Wolf SmartSet sensors."""
-import logging
-
 from wolf_smartset.models import (
     HoursParameter,
     ListItemParameter,
@@ -22,8 +20,6 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity
 
 from .const import COORDINATOR, DEVICE_ID, DOMAIN, PARAMETERS, STATES
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up all entries for Wolf Platform."""
diff --git a/homeassistant/components/worldclock/sensor.py b/homeassistant/components/worldclock/sensor.py
index 3a3853d9f68aa13a169a82c2f022bad642e9db52..e02dc3a0d5c7ab124230a75375bc6516e0b07c83 100644
--- a/homeassistant/components/worldclock/sensor.py
+++ b/homeassistant/components/worldclock/sensor.py
@@ -1,6 +1,4 @@
 """Support for showing the time in a different time zone."""
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components.sensor import PLATFORM_SCHEMA
@@ -11,8 +9,6 @@ import homeassistant.util.dt as dt_util
 
 CONF_TIME_FORMAT = "time_format"
 
-_LOGGER = logging.getLogger(__name__)
-
 DEFAULT_NAME = "Worldclock Sensor"
 ICON = "mdi:clock"
 DEFAULT_TIME_STR_FORMAT = "%H:%M"
diff --git a/homeassistant/components/xbox/config_flow.py b/homeassistant/components/xbox/config_flow.py
index 9c4ff6f7df2a8b89ffd684cb329f858b53e7e573..1d1f0cd8465a153bf114c4cd98ae777a3516716d 100644
--- a/homeassistant/components/xbox/config_flow.py
+++ b/homeassistant/components/xbox/config_flow.py
@@ -6,8 +6,6 @@ from homeassistant.helpers import config_entry_oauth2_flow
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class OAuth2FlowHandler(
     config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN
diff --git a/homeassistant/components/xbox/media_player.py b/homeassistant/components/xbox/media_player.py
index 9856904e2bdaffbdbd448d056ce95a88c53bad08..41aaa7eeb9cb528cb14998cac57acb5aeb93fbe8 100644
--- a/homeassistant/components/xbox/media_player.py
+++ b/homeassistant/components/xbox/media_player.py
@@ -1,5 +1,4 @@
 """Xbox Media Player Support."""
-import logging
 import re
 from typing import List, Optional
 
@@ -35,8 +34,6 @@ from . import ConsoleData, XboxUpdateCoordinator
 from .browse_media import build_item_response
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 SUPPORT_XBOX = (
     SUPPORT_TURN_ON
     | SUPPORT_TURN_OFF
diff --git a/homeassistant/components/xbox/media_source.py b/homeassistant/components/xbox/media_source.py
index 14bc1af548922e537f6c8a4add0310a1ee507a8b..5615e11ea7feb45c756bd52281739be8e28ab8a0 100644
--- a/homeassistant/components/xbox/media_source.py
+++ b/homeassistant/components/xbox/media_source.py
@@ -1,6 +1,5 @@
 """Xbox Media Source Implementation."""
 from dataclasses import dataclass
-import logging
 from typing import List, Tuple
 
 # pylint: disable=no-name-in-module
@@ -31,8 +30,6 @@ from homeassistant.util import dt as dt_util
 from .browse_media import _find_media_image
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 MIME_TYPE_MAP = {
     "gameclips": "video/mp4",
     "screenshots": "image/png",
diff --git a/homeassistant/components/xiaomi_aqara/cover.py b/homeassistant/components/xiaomi_aqara/cover.py
index fbe7ae334e66e5bee6bb37425f03f1b655bb0933..0ef74da83ff4c8706244ba13102187c3b56d594f 100644
--- a/homeassistant/components/xiaomi_aqara/cover.py
+++ b/homeassistant/components/xiaomi_aqara/cover.py
@@ -1,13 +1,9 @@
 """Support for Xiaomi curtain."""
-import logging
-
 from homeassistant.components.cover import ATTR_POSITION, CoverEntity
 
 from . import XiaomiDevice
 from .const import DOMAIN, GATEWAYS_KEY
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_CURTAIN_LEVEL = "curtain_level"
 
 DATA_KEY_PROTO_V1 = "status"
diff --git a/homeassistant/components/xiaomi_aqara/lock.py b/homeassistant/components/xiaomi_aqara/lock.py
index db8587299958638c0e11361c15d1803dc7371e50..7c5334e0f5c56572064ad93d6128d326e4d42cea 100644
--- a/homeassistant/components/xiaomi_aqara/lock.py
+++ b/homeassistant/components/xiaomi_aqara/lock.py
@@ -1,6 +1,4 @@
 """Support for Xiaomi Aqara locks."""
-import logging
-
 from homeassistant.components.lock import LockEntity
 from homeassistant.const import STATE_LOCKED, STATE_UNLOCKED
 from homeassistant.core import callback
@@ -9,8 +7,6 @@ from homeassistant.helpers.event import async_call_later
 from . import XiaomiDevice
 from .const import DOMAIN, GATEWAYS_KEY
 
-_LOGGER = logging.getLogger(__name__)
-
 FINGER_KEY = "fing_verified"
 PASSWORD_KEY = "psw_verified"
 CARD_KEY = "card_verified"
diff --git a/homeassistant/components/xiaomi_miio/__init__.py b/homeassistant/components/xiaomi_miio/__init__.py
index 6957862ab7a50af51fca22721f376c6b73b01b54..7ff1ed999c46c09ef41ba4e7e0c475fb078fbe10 100644
--- a/homeassistant/components/xiaomi_miio/__init__.py
+++ b/homeassistant/components/xiaomi_miio/__init__.py
@@ -1,6 +1,4 @@
 """Support for Xiaomi Miio."""
-import logging
-
 from homeassistant import config_entries, core
 from homeassistant.const import CONF_HOST, CONF_TOKEN
 from homeassistant.helpers import device_registry as dr
@@ -9,8 +7,6 @@ from .config_flow import CONF_FLOW_TYPE, CONF_GATEWAY
 from .const import DOMAIN
 from .gateway import ConnectXiaomiGateway
 
-_LOGGER = logging.getLogger(__name__)
-
 GATEWAY_PLATFORMS = ["alarm_control_panel", "sensor", "light"]
 
 
diff --git a/homeassistant/components/xs1/climate.py b/homeassistant/components/xs1/climate.py
index 60b6ca3c7c998c2fbc28f2095493ae576d6420b3..238fe2b83428cfdf2629f2433fb1c2067ca72036 100644
--- a/homeassistant/components/xs1/climate.py
+++ b/homeassistant/components/xs1/climate.py
@@ -1,6 +1,4 @@
 """Support for XS1 climate devices."""
-import logging
-
 from xs1_api_client.api_constants import ActuatorType
 
 from homeassistant.components.climate import ClimateEntity
@@ -12,8 +10,6 @@ from homeassistant.const import ATTR_TEMPERATURE
 
 from . import ACTUATORS, DOMAIN as COMPONENT_DOMAIN, SENSORS, XS1DeviceEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 MIN_TEMP = 8
 MAX_TEMP = 25
 
diff --git a/homeassistant/components/xs1/sensor.py b/homeassistant/components/xs1/sensor.py
index 5c963ecafa383bc481f480ab6f9415fde2175e8c..9e6afa40fa47cba7833470bc05325b92cd1e6ddd 100644
--- a/homeassistant/components/xs1/sensor.py
+++ b/homeassistant/components/xs1/sensor.py
@@ -1,14 +1,10 @@
 """Support for XS1 sensors."""
-import logging
-
 from xs1_api_client.api_constants import ActuatorType
 
 from homeassistant.helpers.entity import Entity
 
 from . import ACTUATORS, DOMAIN as COMPONENT_DOMAIN, SENSORS, XS1DeviceEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the XS1 sensor platform."""
diff --git a/homeassistant/components/xs1/switch.py b/homeassistant/components/xs1/switch.py
index cbb05b9aa621174779054cc103e935f9a6c4019e..a69c8e965eb5cab284512e9f0a559dc16c5631b8 100644
--- a/homeassistant/components/xs1/switch.py
+++ b/homeassistant/components/xs1/switch.py
@@ -1,5 +1,4 @@
 """Support for XS1 switches."""
-import logging
 
 from xs1_api_client.api_constants import ActuatorType
 
@@ -7,8 +6,6 @@ from homeassistant.helpers.entity import ToggleEntity
 
 from . import ACTUATORS, DOMAIN as COMPONENT_DOMAIN, XS1DeviceEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the XS1 switch platform."""
diff --git a/homeassistant/components/zha/climate.py b/homeassistant/components/zha/climate.py
index 7ffb727bacce4e71f29458ede12526850a3e5cfb..728d0f482175f3d7c736936e26eec93bf8995c56 100644
--- a/homeassistant/components/zha/climate.py
+++ b/homeassistant/components/zha/climate.py
@@ -7,7 +7,6 @@ at https://home-assistant.io/components/zha.climate/
 from datetime import datetime, timedelta
 import enum
 import functools
-import logging
 from random import randint
 from typing import List, Optional, Tuple
 
@@ -145,8 +144,6 @@ SYSTEM_MODE_2_HVAC = {
 
 ZCL_TEMP = 100
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up the Zigbee Home Automation sensor from config entry."""
diff --git a/homeassistant/components/zha/core/channels/__init__.py b/homeassistant/components/zha/core/channels/__init__.py
index f0ef6f382c497931bf32cb87dedce4468d7c8cdb..dca80e9fcb3d32f30e1443c140716ee067c3e85f 100644
--- a/homeassistant/components/zha/core/channels/__init__.py
+++ b/homeassistant/components/zha/core/channels/__init__.py
@@ -1,6 +1,5 @@
 """Channels module for Zigbee Home Automation."""
 import asyncio
-import logging
 from typing import Any, Dict, List, Optional, Tuple, Union
 
 import zigpy.zcl.clusters.closures
@@ -30,7 +29,6 @@ from .. import (
     typing as zha_typing,
 )
 
-_LOGGER = logging.getLogger(__name__)
 ChannelsDict = Dict[str, zha_typing.ChannelType]
 
 
diff --git a/homeassistant/components/zha/core/channels/closures.py b/homeassistant/components/zha/core/channels/closures.py
index 5641deffb60dac0ddeb8c1e0f05bf016533effce..0760427d46ba04f3a6e755579d2df0205ef9ef49 100644
--- a/homeassistant/components/zha/core/channels/closures.py
+++ b/homeassistant/components/zha/core/channels/closures.py
@@ -1,6 +1,4 @@
 """Closures channels module for Zigbee Home Automation."""
-import logging
-
 import zigpy.zcl.clusters.closures as closures
 
 from homeassistant.core import callback
@@ -9,8 +7,6 @@ from .. import registries
 from ..const import REPORT_CONFIG_IMMEDIATE, SIGNAL_ATTR_UPDATED
 from .base import ClientChannel, ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(closures.DoorLock.cluster_id)
 class DoorLockChannel(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/channels/general.py b/homeassistant/components/zha/core/channels/general.py
index 4738047c8c6d22e4a08ee059fa67bba37506e828..2cb744ec0636f6a104bc086b997cc382e23d6b83 100644
--- a/homeassistant/components/zha/core/channels/general.py
+++ b/homeassistant/components/zha/core/channels/general.py
@@ -1,6 +1,5 @@
 """General channels module for Zigbee Home Automation."""
 import asyncio
-import logging
 from typing import Any, List, Optional
 
 import zigpy.exceptions
@@ -23,8 +22,6 @@ from ..const import (
 )
 from .base import ClientChannel, ZigbeeChannel, parse_and_log_command
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(general.Alarms.cluster_id)
 class Alarms(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/channels/homeautomation.py b/homeassistant/components/zha/core/channels/homeautomation.py
index e18f4ae9c17a1a6926838a8cd7ec6b1b678a8158..03812be05484d0cdd239407e9e1af4eb9df0fbc9 100644
--- a/homeassistant/components/zha/core/channels/homeautomation.py
+++ b/homeassistant/components/zha/core/channels/homeautomation.py
@@ -1,5 +1,4 @@
 """Home automation channels module for Zigbee Home Automation."""
-import logging
 from typing import Optional
 
 import zigpy.zcl.clusters.homeautomation as homeautomation
@@ -12,8 +11,6 @@ from ..const import (
 )
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(
     homeautomation.ApplianceEventAlerts.cluster_id
diff --git a/homeassistant/components/zha/core/channels/hvac.py b/homeassistant/components/zha/core/channels/hvac.py
index 17fbb86fc63ea7ed5dafc5eb45518b3f731c30b7..1eedf51cd00dacb14704dca3a3ef84995ce553ca 100644
--- a/homeassistant/components/zha/core/channels/hvac.py
+++ b/homeassistant/components/zha/core/channels/hvac.py
@@ -6,7 +6,6 @@ https://home-assistant.io/integrations/zha/
 """
 import asyncio
 from collections import namedtuple
-import logging
 from typing import Any, Dict, List, Optional, Tuple, Union
 
 from zigpy.exceptions import ZigbeeException
@@ -25,8 +24,6 @@ from ..const import (
 from ..helpers import retryable_req
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 AttributeUpdateRecord = namedtuple("AttributeUpdateRecord", "attr_id, attr_name, value")
 REPORT_CONFIG_CLIMATE = (REPORT_CONFIG_MIN_INT, REPORT_CONFIG_MAX_INT, 25)
 REPORT_CONFIG_CLIMATE_DEMAND = (REPORT_CONFIG_MIN_INT, REPORT_CONFIG_MAX_INT, 5)
diff --git a/homeassistant/components/zha/core/channels/lighting.py b/homeassistant/components/zha/core/channels/lighting.py
index 2b80a1092bb0274012def98cae69d535463d5974..ac88ba1c2c06e136693970e29365fbb551654a08 100644
--- a/homeassistant/components/zha/core/channels/lighting.py
+++ b/homeassistant/components/zha/core/channels/lighting.py
@@ -1,14 +1,10 @@
 """Lighting channels module for Zigbee Home Automation."""
-import logging
-
 import zigpy.zcl.clusters.lighting as lighting
 
 from .. import registries, typing as zha_typing
 from ..const import REPORT_CONFIG_DEFAULT
 from .base import ClientChannel, ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(lighting.Ballast.cluster_id)
 class Ballast(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/channels/lightlink.py b/homeassistant/components/zha/core/channels/lightlink.py
index 25f3ebf96867b49b2226be467e8fe03d5c73c04b..9a357d76eb7007da8eb4aa9efb71a20dba6d27ec 100644
--- a/homeassistant/components/zha/core/channels/lightlink.py
+++ b/homeassistant/components/zha/core/channels/lightlink.py
@@ -1,13 +1,9 @@
 """Lightlink channels module for Zigbee Home Automation."""
-import logging
-
 import zigpy.zcl.clusters.lightlink as lightlink
 
 from .. import registries
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.CHANNEL_ONLY_CLUSTERS.register(lightlink.LightLink.cluster_id)
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(lightlink.LightLink.cluster_id)
diff --git a/homeassistant/components/zha/core/channels/manufacturerspecific.py b/homeassistant/components/zha/core/channels/manufacturerspecific.py
index cc56c10d06a3dcda9296b1d202c26c1fea219702..8b840e763173daf4c19c981cec02be0fc914a245 100644
--- a/homeassistant/components/zha/core/channels/manufacturerspecific.py
+++ b/homeassistant/components/zha/core/channels/manufacturerspecific.py
@@ -1,6 +1,4 @@
 """Manufacturer specific channels module for Zigbee Home Automation."""
-import logging
-
 from homeassistant.core import callback
 
 from .. import registries
@@ -16,8 +14,6 @@ from ..const import (
 )
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(registries.SMARTTHINGS_HUMIDITY_CLUSTER)
 class SmartThingsHumidity(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/channels/measurement.py b/homeassistant/components/zha/core/channels/measurement.py
index f05177de600112901ff79c60770d871f0fb85660..949b7cbc13894fe0015ebc1777f60c6a799e67f5 100644
--- a/homeassistant/components/zha/core/channels/measurement.py
+++ b/homeassistant/components/zha/core/channels/measurement.py
@@ -1,6 +1,4 @@
 """Measurement channels module for Zigbee Home Automation."""
-import logging
-
 import zigpy.zcl.clusters.measurement as measurement
 
 from .. import registries
@@ -12,8 +10,6 @@ from ..const import (
 )
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(measurement.FlowMeasurement.cluster_id)
 class FlowMeasurement(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/channels/protocol.py b/homeassistant/components/zha/core/channels/protocol.py
index 083e0f55841e361759ace45a49643b7aff4ee9c3..4162809da7a4bafd54ba199888a67fc4bbfe6b95 100644
--- a/homeassistant/components/zha/core/channels/protocol.py
+++ b/homeassistant/components/zha/core/channels/protocol.py
@@ -1,13 +1,9 @@
 """Protocol channels module for Zigbee Home Automation."""
-import logging
-
 import zigpy.zcl.clusters.protocol as protocol
 
 from .. import registries
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(protocol.AnalogInputExtended.cluster_id)
 class AnalogInputExtended(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/channels/security.py b/homeassistant/components/zha/core/channels/security.py
index b2b6f74c0de3e84d7465b224fd66edc05b38f437..126dc76157215d952383494baf4d0520f46dc0cd 100644
--- a/homeassistant/components/zha/core/channels/security.py
+++ b/homeassistant/components/zha/core/channels/security.py
@@ -5,7 +5,6 @@ For more details about this component, please refer to the documentation at
 https://home-assistant.io/integrations/zha/
 """
 import asyncio
-import logging
 
 from zigpy.exceptions import ZigbeeException
 import zigpy.zcl.clusters.security as security
@@ -23,8 +22,6 @@ from ..const import (
 )
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(security.IasAce.cluster_id)
 class IasAce(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/channels/smartenergy.py b/homeassistant/components/zha/core/channels/smartenergy.py
index a4bd2bf2d40104f738d2144cb4f083095636574d..d30f891dee1b362d1371f8ac508fe7f8465ec1cf 100644
--- a/homeassistant/components/zha/core/channels/smartenergy.py
+++ b/homeassistant/components/zha/core/channels/smartenergy.py
@@ -1,6 +1,4 @@
 """Smart energy channels module for Zigbee Home Automation."""
-import logging
-
 import zigpy.zcl.clusters.smartenergy as smartenergy
 
 from homeassistant.const import (
@@ -16,8 +14,6 @@ from .. import registries, typing as zha_typing
 from ..const import REPORT_CONFIG_DEFAULT
 from .base import ZigbeeChannel
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @registries.ZIGBEE_CHANNEL_REGISTRY.register(smartenergy.Calendar.cluster_id)
 class Calendar(ZigbeeChannel):
diff --git a/homeassistant/components/zha/core/helpers.py b/homeassistant/components/zha/core/helpers.py
index 0e967a7a123a207034a300fe974c239246761e24..9b62cef4ace2f99346960185a1a74e2bb3e58b1f 100644
--- a/homeassistant/components/zha/core/helpers.py
+++ b/homeassistant/components/zha/core/helpers.py
@@ -25,8 +25,6 @@ from homeassistant.core import State, callback
 from .const import CLUSTER_TYPE_IN, CLUSTER_TYPE_OUT, DATA_ZHA, DATA_ZHA_GATEWAY
 from .registries import BINDABLE_CLUSTERS
 
-_LOGGER = logging.getLogger(__name__)
-
 ClusterPair = collections.namedtuple("ClusterPair", "source_cluster target_cluster")
 
 
diff --git a/homeassistant/components/zha/core/store.py b/homeassistant/components/zha/core/store.py
index ab560820f19a0161d9777aa1d662cdc0164bb064..051fcaa29252b13b0d99c2ca64981563168b481d 100644
--- a/homeassistant/components/zha/core/store.py
+++ b/homeassistant/components/zha/core/store.py
@@ -2,7 +2,6 @@
 # pylint: disable=unused-import
 from collections import OrderedDict
 import datetime
-import logging
 import time
 from typing import MutableMapping, Optional, cast
 
@@ -14,8 +13,6 @@ from homeassistant.loader import bind_hass
 
 from .typing import ZhaDeviceType
 
-_LOGGER = logging.getLogger(__name__)
-
 DATA_REGISTRY = "zha_storage"
 
 STORAGE_KEY = "zha.storage"
diff --git a/homeassistant/components/zha/device_tracker.py b/homeassistant/components/zha/device_tracker.py
index 824435e6337994a5525274e0c58aae0c746cd9ad..53191789eba2e9e0962e7444c18d240be0572574 100644
--- a/homeassistant/components/zha/device_tracker.py
+++ b/homeassistant/components/zha/device_tracker.py
@@ -1,6 +1,5 @@
 """Support for the ZHA platform."""
 import functools
-import logging
 import time
 
 from homeassistant.components.device_tracker import DOMAIN, SOURCE_TYPE_ROUTER
@@ -21,7 +20,6 @@ from .entity import ZhaEntity
 from .sensor import Battery
 
 STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN)
-_LOGGER = logging.getLogger(__name__)
 
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
diff --git a/homeassistant/components/zha/fan.py b/homeassistant/components/zha/fan.py
index ac8edd10be52e2090c14c19d5118c1e2d360f2db..9983967f7644f121aefe31e7a5171be7e0dd65a1 100644
--- a/homeassistant/components/zha/fan.py
+++ b/homeassistant/components/zha/fan.py
@@ -1,6 +1,5 @@
 """Fans on Zigbee Home Automation networks."""
 import functools
-import logging
 from typing import List
 
 from zigpy.exceptions import ZigbeeException
@@ -30,8 +29,6 @@ from .core.const import (
 from .core.registries import ZHA_ENTITIES
 from .entity import ZhaEntity, ZhaGroupEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 # Additional speeds in zigbee's ZCL
 # Spec is unclear as to what this value means. On King Of Fans HBUniversal
 # receiver, this means Very High.
diff --git a/homeassistant/components/zha/lock.py b/homeassistant/components/zha/lock.py
index d951e7ada19a7840edc58884dfd546635817701b..5cc7d7c56f6cb42e9bfc1b9eddc35871e84e2de2 100644
--- a/homeassistant/components/zha/lock.py
+++ b/homeassistant/components/zha/lock.py
@@ -1,6 +1,5 @@
 """Locks on Zigbee Home Automation networks."""
 import functools
-import logging
 
 from zigpy.zcl.foundation import Status
 
@@ -24,10 +23,7 @@ from .core.const import (
 from .core.registries import ZHA_ENTITIES
 from .entity import ZhaEntity
 
-_LOGGER = logging.getLogger(__name__)
-
-""" The first state is Zigbee 'Not fully locked' """
-
+# The first state is Zigbee 'Not fully locked'
 STATE_LIST = [STATE_UNLOCKED, STATE_LOCKED, STATE_UNLOCKED]
 STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN)
 
diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py
index fe305f3c25faf120c953bc314e396d5fe2a77f2a..302637cc0682bd372ea93af1ce23be23254e9dfa 100644
--- a/homeassistant/components/zha/sensor.py
+++ b/homeassistant/components/zha/sensor.py
@@ -1,6 +1,5 @@
 """Sensors on Zigbee Home Automation networks."""
 import functools
-import logging
 import numbers
 
 from homeassistant.components.sensor import (
@@ -45,7 +44,6 @@ from .core.registries import SMARTTHINGS_HUMIDITY_CLUSTER, ZHA_ENTITIES
 from .entity import ZhaEntity
 
 PARALLEL_UPDATES = 5
-_LOGGER = logging.getLogger(__name__)
 
 BATTERY_SIZES = {
     0: "No battery",
diff --git a/homeassistant/components/zha/switch.py b/homeassistant/components/zha/switch.py
index 07c40c7175e3c6d6d9a1b2e5fce42ba85e774420..60db9ec0a08b8b1b4907c533a8a0b4fffc2698c1 100644
--- a/homeassistant/components/zha/switch.py
+++ b/homeassistant/components/zha/switch.py
@@ -1,6 +1,5 @@
 """Switches on Zigbee Home Automation networks."""
 import functools
-import logging
 from typing import Any, List
 
 from zigpy.zcl.clusters.general import OnOff
@@ -22,7 +21,6 @@ from .core.const import (
 from .core.registries import ZHA_ENTITIES
 from .entity import ZhaEntity, ZhaGroupEntity
 
-_LOGGER = logging.getLogger(__name__)
 STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN)
 GROUP_MATCH = functools.partial(ZHA_ENTITIES.group_match, DOMAIN)
 
diff --git a/homeassistant/components/zodiac/sensor.py b/homeassistant/components/zodiac/sensor.py
index 06bd52f6bf5a1ecfa57def33f6f481d7e23e6403..5113c5c6e1821f030a8741bb8acd5bd6ce7aca0c 100644
--- a/homeassistant/components/zodiac/sensor.py
+++ b/homeassistant/components/zodiac/sensor.py
@@ -1,6 +1,4 @@
 """Support for tracking the zodiac sign."""
-import logging
-
 from homeassistant.helpers.entity import Entity
 from homeassistant.util.dt import as_local, utcnow
 
@@ -29,8 +27,6 @@ from .const import (
     SIGN_VIRGO,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 ZODIAC_BY_DATE = (
     (
         (21, 3),
diff --git a/homeassistant/components/zwave/config_flow.py b/homeassistant/components/zwave/config_flow.py
index 6357d9929b101145e4ccbeeb281bb3f5bdd9800c..18c5d2f6f4eb70b05e323aa4bded6f5ac6491405 100644
--- a/homeassistant/components/zwave/config_flow.py
+++ b/homeassistant/components/zwave/config_flow.py
@@ -1,7 +1,6 @@
 """Config flow to configure Z-Wave."""
 # pylint: disable=import-outside-toplevel
 from collections import OrderedDict
-import logging
 
 import voluptuous as vol
 
@@ -14,8 +13,6 @@ from .const import (
     DOMAIN,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @config_entries.HANDLERS.register(DOMAIN)
 class ZwaveFlowHandler(config_entries.ConfigFlow):
diff --git a/homeassistant/components/zwave/fan.py b/homeassistant/components/zwave/fan.py
index a2dbc3a4eab844036c06b00a4eeb539890a16cb6..df6f5d8b8f5a9605d875647ff7fd00111cce9a99 100644
--- a/homeassistant/components/zwave/fan.py
+++ b/homeassistant/components/zwave/fan.py
@@ -1,5 +1,4 @@
 """Support for Z-Wave fans."""
-import logging
 import math
 
 from homeassistant.components.fan import (
@@ -16,8 +15,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from . import ZWaveDeviceEntity
 
-_LOGGER = logging.getLogger(__name__)
-
 SPEED_LIST = [SPEED_OFF, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH]
 
 SUPPORTED_FEATURES = SUPPORT_SET_SPEED
diff --git a/homeassistant/components/zwave/node_entity.py b/homeassistant/components/zwave/node_entity.py
index a9a4bf22b8b3266235553ca6893c4515d8cbc5f1..064f21c69b430730e73d63406a2c986fc50e253d 100644
--- a/homeassistant/components/zwave/node_entity.py
+++ b/homeassistant/components/zwave/node_entity.py
@@ -1,7 +1,6 @@
 """Entity class that represents Z-Wave node."""
 # pylint: disable=import-outside-toplevel
 from itertools import count
-import logging
 
 from homeassistant.const import ATTR_BATTERY_LEVEL, ATTR_ENTITY_ID, ATTR_WAKEUP
 from homeassistant.core import callback
@@ -23,8 +22,6 @@ from .const import (
 )
 from .util import is_node_parsed, node_device_id_and_name, node_name
 
-_LOGGER = logging.getLogger(__name__)
-
 ATTR_QUERY_STAGE = "query_stage"
 ATTR_AWAKE = "is_awake"
 ATTR_READY = "is_ready"
diff --git a/homeassistant/components/zwave/sensor.py b/homeassistant/components/zwave/sensor.py
index b551e436352674f19632a097cdb8fe4b2c1cbc8f..aae38382f2e7203366a3d1c7e14d4e336a47a7d0 100644
--- a/homeassistant/components/zwave/sensor.py
+++ b/homeassistant/components/zwave/sensor.py
@@ -1,6 +1,4 @@
 """Support for Z-Wave sensors."""
-import logging
-
 from homeassistant.components.sensor import DEVICE_CLASS_BATTERY, DOMAIN
 from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
 from homeassistant.core import callback
@@ -8,8 +6,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from . import ZWaveDeviceEntity, const
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up Z-Wave Sensor from Config Entry."""
diff --git a/homeassistant/components/zwave/switch.py b/homeassistant/components/zwave/switch.py
index c5770bf7702aa3d1116f8c9b5f344f5b3013c627..06606dac938b0dd64379a883bd643fff8facd9a9 100644
--- a/homeassistant/components/zwave/switch.py
+++ b/homeassistant/components/zwave/switch.py
@@ -1,5 +1,4 @@
 """Support for Z-Wave switches."""
-import logging
 import time
 
 from homeassistant.components.switch import DOMAIN, SwitchEntity
@@ -8,8 +7,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
 
 from . import ZWaveDeviceEntity, workaround
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def async_setup_entry(hass, config_entry, async_add_entities):
     """Set up Z-Wave Switch from Config Entry."""
diff --git a/homeassistant/components/zwave/websocket_api.py b/homeassistant/components/zwave/websocket_api.py
index 24bf8d80a754c059e8cf88e1f03afac6bff8dae4..5e3a49df63ce38393589bb346d05af7c451ac837 100644
--- a/homeassistant/components/zwave/websocket_api.py
+++ b/homeassistant/components/zwave/websocket_api.py
@@ -1,7 +1,4 @@
 """Web socket API for Z-Wave."""
-
-import logging
-
 import voluptuous as vol
 
 from homeassistant.components import websocket_api
@@ -17,8 +14,6 @@ from .const import (
     DATA_ZWAVE_CONFIG,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 TYPE = "type"
 ID = "id"
 
diff --git a/homeassistant/helpers/aiohttp_client.py b/homeassistant/helpers/aiohttp_client.py
index d20e34cca36e2015f8fd8d3dbe208a115257b662..e33492c21a8f0bf8f03ae9e5d183cf89a3576090 100644
--- a/homeassistant/helpers/aiohttp_client.py
+++ b/homeassistant/helpers/aiohttp_client.py
@@ -1,6 +1,5 @@
 """Helper for aiohttp webclient stuff."""
 import asyncio
-import logging
 from ssl import SSLContext
 import sys
 from typing import Any, Awaitable, Optional, Union, cast
@@ -18,8 +17,6 @@ from homeassistant.helpers.typing import HomeAssistantType
 from homeassistant.loader import bind_hass
 from homeassistant.util import ssl as ssl_util
 
-_LOGGER = logging.getLogger(__name__)
-
 DATA_CONNECTOR = "aiohttp_connector"
 DATA_CONNECTOR_NOTVERIFY = "aiohttp_connector_notverify"
 DATA_CLIENTSESSION = "aiohttp_clientsession"
diff --git a/homeassistant/helpers/area_registry.py b/homeassistant/helpers/area_registry.py
index e97b613ab165a4fb329f70bd5dc432d8adcdac97..347e552a0126b91825693ef13402d77797551a57 100644
--- a/homeassistant/helpers/area_registry.py
+++ b/homeassistant/helpers/area_registry.py
@@ -1,7 +1,6 @@
 """Provide a way to connect devices to one physical location."""
 from asyncio import Event
 from collections import OrderedDict
-import logging
 from typing import Dict, Iterable, List, MutableMapping, Optional, cast
 
 import attr
@@ -12,8 +11,6 @@ import homeassistant.util.uuid as uuid_util
 
 from .typing import HomeAssistantType
 
-_LOGGER = logging.getLogger(__name__)
-
 DATA_REGISTRY = "area_registry"
 EVENT_AREA_REGISTRY_UPDATED = "area_registry_updated"
 STORAGE_KEY = "core.area_registry"
diff --git a/homeassistant/helpers/json.py b/homeassistant/helpers/json.py
index 4acb9fd500aa44e77fab8d4214459989397bdab8..3168310dc5935e959d72a6c036e568069837488c 100644
--- a/homeassistant/helpers/json.py
+++ b/homeassistant/helpers/json.py
@@ -1,11 +1,8 @@
 """Helpers to help with encoding Home Assistant objects in JSON."""
 from datetime import datetime
 import json
-import logging
 from typing import Any
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class JSONEncoder(json.JSONEncoder):
     """JSONEncoder that supports Home Assistant objects."""
diff --git a/homeassistant/util/distance.py b/homeassistant/util/distance.py
index 70fc9ad4eaa1e5ac6fe2391cb798924c5a2636c4..3ae809b2a9f2202c1ead95ad3ed8ef085c5b143e 100644
--- a/homeassistant/util/distance.py
+++ b/homeassistant/util/distance.py
@@ -1,6 +1,4 @@
 """Distance util functions."""
-
-import logging
 from numbers import Number
 
 from homeassistant.const import (
@@ -12,8 +10,6 @@ from homeassistant.const import (
     UNIT_NOT_RECOGNIZED_TEMPLATE,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 VALID_UNITS = [LENGTH_KILOMETERS, LENGTH_MILES, LENGTH_FEET, LENGTH_METERS]
 
 
diff --git a/homeassistant/util/pressure.py b/homeassistant/util/pressure.py
index 046b65122a97298a42e9f8be3fb5c98f7d570219..22ad86a6896fcfaa86d4f277327a0a9766d6cc29 100644
--- a/homeassistant/util/pressure.py
+++ b/homeassistant/util/pressure.py
@@ -1,6 +1,4 @@
 """Pressure util functions."""
-
-import logging
 from numbers import Number
 
 from homeassistant.const import (
@@ -13,8 +11,6 @@ from homeassistant.const import (
     UNIT_NOT_RECOGNIZED_TEMPLATE,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 VALID_UNITS = [PRESSURE_PA, PRESSURE_HPA, PRESSURE_MBAR, PRESSURE_INHG, PRESSURE_PSI]
 
 UNIT_CONVERSION = {
diff --git a/homeassistant/util/timeout.py b/homeassistant/util/timeout.py
index 1193c701712fd6dbef676b4321735f5433e75f2f..8c3d38a37003700628811f239566c995e2e1a0cb 100644
--- a/homeassistant/util/timeout.py
+++ b/homeassistant/util/timeout.py
@@ -7,7 +7,6 @@ from __future__ import annotations
 
 import asyncio
 import enum
-import logging
 from types import TracebackType
 from typing import Any, Dict, List, Optional, Type, Union
 
@@ -15,8 +14,6 @@ from .async_ import run_callback_threadsafe
 
 ZONE_GLOBAL = "global"
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class _State(str, enum.Enum):
     """States of a task."""
diff --git a/homeassistant/util/unit_system.py b/homeassistant/util/unit_system.py
index bac66cd28bc5f030170fed989846c98ff9819544..9e0d0c2c9797976147e7115af48b2791e62eac96 100644
--- a/homeassistant/util/unit_system.py
+++ b/homeassistant/util/unit_system.py
@@ -1,6 +1,4 @@
 """Unit system helper class and methods."""
-
-import logging
 from numbers import Number
 from typing import Optional
 
@@ -33,8 +31,6 @@ from homeassistant.util import (
     volume as volume_util,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 LENGTH_UNITS = distance_util.VALID_UNITS
 
 MASS_UNITS = [MASS_POUNDS, MASS_OUNCES, MASS_KILOGRAMS, MASS_GRAMS]
diff --git a/homeassistant/util/volume.py b/homeassistant/util/volume.py
index 30185e4346cbbc3515aa026380f2f9a2649f6f4f..5d94f848cd87f07f5691ad5216bbb9abb7ee4960 100644
--- a/homeassistant/util/volume.py
+++ b/homeassistant/util/volume.py
@@ -1,6 +1,4 @@
 """Volume conversion util functions."""
-
-import logging
 from numbers import Number
 
 from homeassistant.const import (
@@ -12,8 +10,6 @@ from homeassistant.const import (
     VOLUME_MILLILITERS,
 )
 
-_LOGGER = logging.getLogger(__name__)
-
 VALID_UNITS = [VOLUME_LITERS, VOLUME_MILLILITERS, VOLUME_GALLONS, VOLUME_FLUID_OUNCE]
 
 
diff --git a/script/hassfest/translations.py b/script/hassfest/translations.py
index 7a9208da7d14596e8507d587cc1509b72ba69e5e..6f94b88816cfc39da77dcad006d14b919d078700 100644
--- a/script/hassfest/translations.py
+++ b/script/hassfest/translations.py
@@ -2,7 +2,6 @@
 from functools import partial
 from itertools import chain
 import json
-import logging
 import re
 from typing import Dict
 
@@ -15,8 +14,6 @@ from script.translations import upload
 
 from .model import Config, Integration
 
-_LOGGER = logging.getLogger(__name__)
-
 UNDEFINED = 0
 REQUIRED = 1
 REMOVED = 2
diff --git a/script/scaffold/templates/config_flow_oauth2/integration/config_flow.py b/script/scaffold/templates/config_flow_oauth2/integration/config_flow.py
index 2343e1d79f81f690c6a6315bdbafa414c2a5abae..8670c8a7b431f4d33e095a03ba3d830a37dd41a9 100644
--- a/script/scaffold/templates/config_flow_oauth2/integration/config_flow.py
+++ b/script/scaffold/templates/config_flow_oauth2/integration/config_flow.py
@@ -6,8 +6,6 @@ from homeassistant.helpers import config_entry_oauth2_flow
 
 from .const import DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class OAuth2FlowHandler(
     config_entry_oauth2_flow.AbstractOAuth2FlowHandler, domain=DOMAIN
diff --git a/tests/components/bond/test_cover.py b/tests/components/bond/test_cover.py
index a9083a900e676b89c73f6a27d1cc3600abeb9f71..dbb8ee0f3b73f6a6f55eaf7a793b2c140eb030fc 100644
--- a/tests/components/bond/test_cover.py
+++ b/tests/components/bond/test_cover.py
@@ -1,6 +1,5 @@
 """Tests for the Bond cover device."""
 from datetime import timedelta
-import logging
 
 from bond_api import Action, DeviceType
 
@@ -24,8 +23,6 @@ from .common import (
 
 from tests.common import async_fire_time_changed
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def shades(name: str):
     """Create motorized shades with given name."""
diff --git a/tests/components/bond/test_light.py b/tests/components/bond/test_light.py
index 17b8c87978f150e01ff4a18b149fd83396efdff4..70b585a76dab7bb2b4056ffe239f41706e226a55 100644
--- a/tests/components/bond/test_light.py
+++ b/tests/components/bond/test_light.py
@@ -1,6 +1,5 @@
 """Tests for the Bond light device."""
 from datetime import timedelta
-import logging
 
 from bond_api import Action, DeviceType
 
@@ -29,8 +28,6 @@ from .common import (
 
 from tests.common import async_fire_time_changed
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def ceiling_fan(name: str):
     """Create a ceiling fan (that has built-in light) with given name."""
diff --git a/tests/components/bond/test_switch.py b/tests/components/bond/test_switch.py
index 2755a491a860c16fc964e063f2a9008cc9bd60bf..f2568f5fb9940d6c0425b266f14455d31341c9c7 100644
--- a/tests/components/bond/test_switch.py
+++ b/tests/components/bond/test_switch.py
@@ -1,6 +1,5 @@
 """Tests for the Bond switch device."""
 from datetime import timedelta
-import logging
 
 from bond_api import Action, DeviceType
 
@@ -19,8 +18,6 @@ from .common import (
 
 from tests.common import async_fire_time_changed
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def generic_device(name: str):
     """Create a generic device with given name."""
diff --git a/tests/components/google_assistant/test_trait.py b/tests/components/google_assistant/test_trait.py
index d415c4f24769a0f84aea53221527eca5f60cacfd..d1f5f9a1293961664869ac0d8c9de6c2e5bacdfc 100644
--- a/tests/components/google_assistant/test_trait.py
+++ b/tests/components/google_assistant/test_trait.py
@@ -1,6 +1,5 @@
 """Tests for the Google Assistant traits."""
 from datetime import datetime, timedelta
-import logging
 
 import pytest
 
@@ -57,8 +56,6 @@ from . import BASIC_CONFIG, MockConfig
 from tests.async_mock import patch
 from tests.common import async_mock_service
 
-_LOGGER = logging.getLogger(__name__)
-
 REQ_ID = "ff36a3cc-ec34-11e6-b1a0-64510650abcf"
 
 BASIC_DATA = helpers.RequestData(
diff --git a/tests/components/hue/test_light.py b/tests/components/hue/test_light.py
index 630e74cb1af7ead03d463efa82dbf6a73aeedfe1..2029c32c82f8ac256c22e1fb15788048ac515648 100644
--- a/tests/components/hue/test_light.py
+++ b/tests/components/hue/test_light.py
@@ -1,6 +1,5 @@
 """Philips Hue lights platform tests."""
 import asyncio
-import logging
 
 import aiohue
 
@@ -11,8 +10,6 @@ from homeassistant.util import color
 
 from tests.async_mock import Mock
 
-_LOGGER = logging.getLogger(__name__)
-
 HUE_LIGHT_NS = "homeassistant.components.light.hue."
 GROUP_RESPONSE = {
     "1": {
diff --git a/tests/components/hue/test_sensor_base.py b/tests/components/hue/test_sensor_base.py
index e50ac71c03a2807d9e222f0adf1a596eaa12fadc..fcf3513bc7c94bd992c35af886baa1d8aeb8a695 100644
--- a/tests/components/hue/test_sensor_base.py
+++ b/tests/components/hue/test_sensor_base.py
@@ -1,6 +1,5 @@
 """Philips Hue sensors platform tests."""
 import asyncio
-import logging
 
 import aiohue
 
@@ -10,8 +9,6 @@ from .conftest import create_mock_bridge, setup_bridge_for_sensors as setup_brid
 
 from tests.async_mock import Mock
 
-_LOGGER = logging.getLogger(__name__)
-
 PRESENCE_SENSOR_1_PRESENT = {
     "state": {"presence": True, "lastupdated": "2019-01-01T01:00:00"},
     "swupdate": {"state": "noupdates", "lastinstall": "2019-01-01T00:00:00"},
diff --git a/tests/components/insteon/mock_devices.py b/tests/components/insteon/mock_devices.py
index e57d06d210cf6c689338a3960d9c7449bd3cc5b9..f2afd6083a3993fe9a935d10e60d5860d4192b9e 100644
--- a/tests/components/insteon/mock_devices.py
+++ b/tests/components/insteon/mock_devices.py
@@ -1,6 +1,4 @@
 """Mock devices object to test Insteon."""
-import logging
-
 from pyinsteon.address import Address
 from pyinsteon.device_types import (
     GeneralController_MiniRemote_4,
@@ -10,8 +8,6 @@ from pyinsteon.device_types import (
 
 from tests.async_mock import AsyncMock, MagicMock
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class MockSwitchLinc(SwitchedLightingControl_SwitchLinc):
     """Mock SwitchLinc device."""
diff --git a/tests/components/insteon/test_init.py b/tests/components/insteon/test_init.py
index eed1ee76e8ccdf926b814ac3d19e821ef626807f..73620df67761bcb53c08577171ec60c183c0a36f 100644
--- a/tests/components/insteon/test_init.py
+++ b/tests/components/insteon/test_init.py
@@ -1,6 +1,5 @@
 """Test the init file for the Insteon component."""
 import asyncio
-import logging
 
 from pyinsteon.address import Address
 
@@ -44,8 +43,6 @@ from .mock_devices import MockDevices
 from tests.async_mock import patch
 from tests.common import MockConfigEntry
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def mock_successful_connection(*args, **kwargs):
     """Return a successful connection."""
diff --git a/tests/components/logbook/test_init.py b/tests/components/logbook/test_init.py
index 78772b0ba83c8c7d9bb500d4b110f94ddabbb78a..7c16faf2361932f1a1a8c9c8bed62db54bfe03fb 100644
--- a/tests/components/logbook/test_init.py
+++ b/tests/components/logbook/test_init.py
@@ -3,7 +3,6 @@
 import collections
 from datetime import datetime, timedelta
 import json
-import logging
 import unittest
 
 import pytest
@@ -42,8 +41,6 @@ from tests.async_mock import Mock, patch
 from tests.common import get_test_home_assistant, init_recorder_component, mock_platform
 from tests.components.recorder.common import trigger_db_commit
 
-_LOGGER = logging.getLogger(__name__)
-
 
 class TestComponentLogbook(unittest.TestCase):
     """Test the History component."""
diff --git a/tests/components/mobile_app/test_entity.py b/tests/components/mobile_app/test_entity.py
index 1ec97c8c4e23c54905ad7e2d63fb16858b6c28f6..ba121d766acfbc0b4a65f1b77b93d93db0cda47a 100644
--- a/tests/components/mobile_app/test_entity.py
+++ b/tests/components/mobile_app/test_entity.py
@@ -1,12 +1,7 @@
 """Entity tests for mobile_app."""
-
-import logging
-
 from homeassistant.const import PERCENTAGE, STATE_UNKNOWN
 from homeassistant.helpers import device_registry
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def test_sensor(hass, create_registrations, webhook_client):
     """Test that sensors can be registered and updated."""
diff --git a/tests/components/mobile_app/test_webhook.py b/tests/components/mobile_app/test_webhook.py
index a75cc4fe92c33de918bfe5802aaa304647775171..b56b56f239a229418e8ab04c3969911ced34cfdc 100644
--- a/tests/components/mobile_app/test_webhook.py
+++ b/tests/components/mobile_app/test_webhook.py
@@ -1,6 +1,4 @@
 """Webhook tests for mobile_app."""
-import logging
-
 import pytest
 
 from homeassistant.components.camera import SUPPORT_STREAM as CAMERA_SUPPORT_STREAM
@@ -16,8 +14,6 @@ from .const import CALL_SERVICE, FIRE_EVENT, REGISTER_CLEARTEXT, RENDER_TEMPLATE
 from tests.async_mock import patch
 from tests.common import async_mock_service
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def encrypt_payload(secret_key, payload):
     """Return a encrypted payload given a key and dictionary of data."""
diff --git a/tests/components/modbus/conftest.py b/tests/components/modbus/conftest.py
index 36495acc9c5d11db1a95f92be4e8be27aa37b30a..226ce572b5854ea854e86d7c3c22f84cbb1b2461 100644
--- a/tests/components/modbus/conftest.py
+++ b/tests/components/modbus/conftest.py
@@ -1,5 +1,4 @@
 """The tests for the Modbus sensor component."""
-import logging
 from unittest import mock
 
 import pytest
@@ -17,8 +16,6 @@ import homeassistant.util.dt as dt_util
 
 from tests.common import MockModule, async_fire_time_changed, mock_integration
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.fixture()
 def mock_hub(hass):
diff --git a/tests/components/modbus/test_modbus_binary_sensor.py b/tests/components/modbus/test_modbus_binary_sensor.py
index 53021b57849b0e9a93d1028750797b110122eab7..91374cde22da4cf43802c50fd174edfdc99647a1 100644
--- a/tests/components/modbus/test_modbus_binary_sensor.py
+++ b/tests/components/modbus/test_modbus_binary_sensor.py
@@ -1,6 +1,5 @@
 """The tests for the Modbus sensor component."""
 from datetime import timedelta
-import logging
 
 import pytest
 
@@ -16,8 +15,6 @@ from homeassistant.const import CONF_NAME, STATE_OFF, STATE_ON
 
 from .conftest import run_base_read_test, setup_base_test
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.mark.parametrize(
     "cfg,regs,expected",
diff --git a/tests/components/modbus/test_modbus_sensor.py b/tests/components/modbus/test_modbus_sensor.py
index f523115bb874f2d8d252dc3fb7d861d48dec1b79..68cdbffa462bc41231d31114e396ee1261b1acca 100644
--- a/tests/components/modbus/test_modbus_sensor.py
+++ b/tests/components/modbus/test_modbus_sensor.py
@@ -1,6 +1,5 @@
 """The tests for the Modbus sensor component."""
 from datetime import timedelta
-import logging
 
 import pytest
 
@@ -26,8 +25,6 @@ from homeassistant.const import CONF_NAME
 
 from .conftest import run_base_read_test, setup_base_test
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.mark.parametrize(
     "cfg,regs,expected",
diff --git a/tests/components/modbus/test_modbus_switch.py b/tests/components/modbus/test_modbus_switch.py
index 1f8ebe91a287a0036f5ec1ccb2837b53688d179a..75255389bea90f8ef2f3318c79b43ec8636ea73c 100644
--- a/tests/components/modbus/test_modbus_switch.py
+++ b/tests/components/modbus/test_modbus_switch.py
@@ -1,6 +1,5 @@
 """The tests for the Modbus switch component."""
 from datetime import timedelta
-import logging
 
 import pytest
 
@@ -10,8 +9,6 @@ from homeassistant.const import CONF_NAME, CONF_SLAVE, STATE_OFF, STATE_ON
 
 from .conftest import run_base_read_test, setup_base_test
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.mark.parametrize(
     "regs,expected",
diff --git a/tests/components/mqtt_json/test_device_tracker.py b/tests/components/mqtt_json/test_device_tracker.py
index d0f798c18ae870a57654ad010b7d4b72541836f9..89b37e28b524d603da38e1ec3853dec2a866e026 100644
--- a/tests/components/mqtt_json/test_device_tracker.py
+++ b/tests/components/mqtt_json/test_device_tracker.py
@@ -15,8 +15,6 @@ from homeassistant.setup import async_setup_component
 from tests.async_mock import patch
 from tests.common import async_fire_mqtt_message
 
-_LOGGER = logging.getLogger(__name__)
-
 LOCATION_MESSAGE = {
     "longitude": 1.0,
     "gps_accuracy": 60,
diff --git a/tests/components/qwikswitch/test_init.py b/tests/components/qwikswitch/test_init.py
index 5a68a6e6e7b3a55ab8e7295d5fb1756fbc1c7d1c..7d92d40f98700e0f190485b40ea5a3ddc2b06ac2 100644
--- a/tests/components/qwikswitch/test_init.py
+++ b/tests/components/qwikswitch/test_init.py
@@ -1,6 +1,5 @@
 """Test qwikswitch sensors."""
 import asyncio
-import logging
 
 from aiohttp.client_exceptions import ClientError
 import pytest
@@ -12,8 +11,6 @@ from homeassistant.setup import async_setup_component
 from tests.async_mock import Mock
 from tests.test_util.aiohttp import AiohttpClientMockResponse, MockLongPollSideEffect
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.fixture
 def qs_devices():
diff --git a/tests/components/remember_the_milk/test_init.py b/tests/components/remember_the_milk/test_init.py
index a743f61057d11141e13187f53c1bc19059dc4651..e03475c91318a5effab7c6dffe30a0eb3e54d23f 100644
--- a/tests/components/remember_the_milk/test_init.py
+++ b/tests/components/remember_the_milk/test_init.py
@@ -1,15 +1,10 @@
 """Tests for the Remember The Milk component."""
-
-import logging
-
 import homeassistant.components.remember_the_milk as rtm
 
 from .const import JSON_STRING, PROFILE, TOKEN
 
 from tests.async_mock import Mock, mock_open, patch
 
-_LOGGER = logging.getLogger(__name__)
-
 
 def test_create_new(hass):
     """Test creating a new config file."""
diff --git a/tests/components/rflink/test_cover.py b/tests/components/rflink/test_cover.py
index 392008e838daf67ea7429145d9852e83e629bc1e..fd3f5b843145772832775fc5b604f18fda684ddf 100644
--- a/tests/components/rflink/test_cover.py
+++ b/tests/components/rflink/test_cover.py
@@ -4,9 +4,6 @@ Test setup of RFLink covers component/platform. State tracking and
 control of RFLink cover devices.
 
 """
-
-import logging
-
 from homeassistant.components.rflink import EVENT_BUTTON_PRESSED
 from homeassistant.const import (
     ATTR_ENTITY_ID,
@@ -37,8 +34,6 @@ CONFIG = {
     },
 }
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def test_default_setup(hass, monkeypatch):
     """Test all basic functionality of the RFLink cover component."""
diff --git a/tests/components/sma/test_sensor.py b/tests/components/sma/test_sensor.py
index f12af1f38498d1670abb7401557d0d0971785a92..8aa8c3e5b4cc07571e29466277ad8e69aa1f26f3 100644
--- a/tests/components/sma/test_sensor.py
+++ b/tests/components/sma/test_sensor.py
@@ -1,13 +1,10 @@
 """SMA sensor tests."""
-import logging
-
 from homeassistant.components.sensor import DOMAIN
 from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT, VOLT
 from homeassistant.setup import async_setup_component
 
 from tests.common import assert_setup_component
 
-_LOGGER = logging.getLogger(__name__)
 BASE_CFG = {
     "platform": "sma",
     "host": "1.1.1.1",
diff --git a/tests/components/stream/common.py b/tests/components/stream/common.py
index 2359a7710353fdf3c94cac91ece86e1a991fd8fe..c99cdef79841f500bc303b71a3640fe84d684550 100644
--- a/tests/components/stream/common.py
+++ b/tests/components/stream/common.py
@@ -1,7 +1,6 @@
 """Collection of test helpers."""
 from fractions import Fraction
 import io
-import logging
 
 import av
 import numpy as np
@@ -9,8 +8,6 @@ import numpy as np
 from homeassistant.components.stream import Stream
 from homeassistant.components.stream.const import ATTR_STREAMS, DOMAIN
 
-_LOGGER = logging.getLogger(__name__)
-
 AUDIO_SAMPLE_RATE = 8000
 
 
diff --git a/tests/components/tag/test_init.py b/tests/components/tag/test_init.py
index ecb927c1c5cd495994eb10b364d7153e0b6ca739..442d3263f0a2b651e07a85b3f32ba55b302ea89c 100644
--- a/tests/components/tag/test_init.py
+++ b/tests/components/tag/test_init.py
@@ -1,6 +1,4 @@
 """Tests for the tag component."""
-import logging
-
 import pytest
 
 from homeassistant.components.tag import DOMAIN, TAGS, async_scan_tag
@@ -10,8 +8,6 @@ from homeassistant.util import dt as dt_util
 
 from tests.async_mock import patch
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.fixture
 def storage_setup(hass, hass_storage):
diff --git a/tests/components/template/test_alarm_control_panel.py b/tests/components/template/test_alarm_control_panel.py
index 7860622e6588ff7fd24ecc78c561391c133234f6..abb2e7b4765027775670e7f90c2f76c6de143794 100644
--- a/tests/components/template/test_alarm_control_panel.py
+++ b/tests/components/template/test_alarm_control_panel.py
@@ -1,6 +1,4 @@
 """The tests for the Template alarm control panel platform."""
-import logging
-
 from homeassistant import setup
 from homeassistant.const import (
     STATE_ALARM_ARMED_AWAY,
@@ -15,8 +13,6 @@ from homeassistant.const import (
 from tests.common import async_mock_service
 from tests.components.alarm_control_panel import common
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def test_template_state_text(hass):
     """Test the state text of a template."""
diff --git a/tests/components/template/test_cover.py b/tests/components/template/test_cover.py
index 7202d8a3a1b3aefa418a452515f3871fa4d58d39..08c789633fc393311c045c0684fe601931d6d5c3 100644
--- a/tests/components/template/test_cover.py
+++ b/tests/components/template/test_cover.py
@@ -1,6 +1,4 @@
 """The tests the cover command line platform."""
-import logging
-
 import pytest
 
 from homeassistant import setup
@@ -25,8 +23,6 @@ from homeassistant.const import (
 
 from tests.common import assert_setup_component, async_mock_service
 
-_LOGGER = logging.getLogger(__name__)
-
 ENTITY_COVER = "cover.test_template_cover"
 
 
diff --git a/tests/components/template/test_fan.py b/tests/components/template/test_fan.py
index 20ab78f958db9437b55e843574d972e8d30b68df..8e7c519def9d6e918951b31b4633d2b0bc828982 100644
--- a/tests/components/template/test_fan.py
+++ b/tests/components/template/test_fan.py
@@ -1,6 +1,4 @@
 """The tests for the Template fan platform."""
-import logging
-
 import pytest
 import voluptuous as vol
 
@@ -20,9 +18,6 @@ from homeassistant.const import STATE_OFF, STATE_ON, STATE_UNAVAILABLE
 from tests.common import assert_setup_component, async_mock_service
 from tests.components.fan import common
 
-_LOGGER = logging.getLogger(__name__)
-
-
 _TEST_FAN = "fan.test_fan"
 # Represent for fan's state
 _STATE_INPUT_BOOLEAN = "input_boolean.state"
diff --git a/tests/components/template/test_lock.py b/tests/components/template/test_lock.py
index f054a67cbbc1e064cb1db67d9c91fe4dc10ea2fe..a00ca3b7e91cf1eba35f324571470f6548bd9687 100644
--- a/tests/components/template/test_lock.py
+++ b/tests/components/template/test_lock.py
@@ -1,6 +1,4 @@
 """The tests for the Template lock platform."""
-import logging
-
 import pytest
 
 from homeassistant import setup
@@ -9,8 +7,6 @@ from homeassistant.const import ATTR_ENTITY_ID, STATE_OFF, STATE_ON, STATE_UNAVA
 
 from tests.common import assert_setup_component, async_mock_service
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.fixture
 def calls(hass):
diff --git a/tests/components/template/test_vacuum.py b/tests/components/template/test_vacuum.py
index 23b03262a78d5b771fc13e4eadba975f91d1767e..e18f8ecc059007e667ec56dbdc5ed4d13ce300ab 100644
--- a/tests/components/template/test_vacuum.py
+++ b/tests/components/template/test_vacuum.py
@@ -1,6 +1,4 @@
 """The tests for the Template vacuum platform."""
-import logging
-
 import pytest
 
 from homeassistant import setup
@@ -17,8 +15,6 @@ from homeassistant.const import STATE_OFF, STATE_ON, STATE_UNAVAILABLE, STATE_UN
 from tests.common import assert_setup_component, async_mock_service
 from tests.components.vacuum import common
 
-_LOGGER = logging.getLogger(__name__)
-
 _TEST_VACUUM = "vacuum.test_vacuum"
 _STATE_INPUT_SELECT = "input_select.state"
 _SPOT_CLEANING_INPUT_BOOLEAN = "input_boolean.spot_cleaning"
diff --git a/tests/components/utility_meter/test_init.py b/tests/components/utility_meter/test_init.py
index f946ce352a52866fc980019ba63d6352aed01a58..c3a5d829a05abae3295657946cfa90a64728aef6 100644
--- a/tests/components/utility_meter/test_init.py
+++ b/tests/components/utility_meter/test_init.py
@@ -1,6 +1,5 @@
 """The tests for the utility_meter component."""
 from datetime import timedelta
-import logging
 
 from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
 from homeassistant.components.utility_meter.const import (
@@ -21,8 +20,6 @@ import homeassistant.util.dt as dt_util
 
 from tests.async_mock import patch
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def test_services(hass):
     """Test energy sensor reset service."""
diff --git a/tests/components/utility_meter/test_sensor.py b/tests/components/utility_meter/test_sensor.py
index 1fff168b7488e9462aaa36695a774bb31e50f911..6a2de3a1cd0afa84f5f3e9d7ed347c416ae78cd0 100644
--- a/tests/components/utility_meter/test_sensor.py
+++ b/tests/components/utility_meter/test_sensor.py
@@ -1,7 +1,6 @@
 """The tests for the utility_meter sensor platform."""
 from contextlib import contextmanager
 from datetime import timedelta
-import logging
 
 from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
 from homeassistant.components.utility_meter.const import (
@@ -23,8 +22,6 @@ import homeassistant.util.dt as dt_util
 from tests.async_mock import patch
 from tests.common import async_fire_time_changed
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @contextmanager
 def alter_time(retval):
diff --git a/tests/components/vizio/const.py b/tests/components/vizio/const.py
index 6ec746b2c54c809b04b7b8c89dd1a6cb94d045ca..963947f1bd3f650584389518d9b308c1ec4db6d0 100644
--- a/tests/components/vizio/const.py
+++ b/tests/components/vizio/const.py
@@ -1,6 +1,4 @@
 """Constants for the Vizio integration tests."""
-import logging
-
 from homeassistant.components.media_player import (
     DEVICE_CLASS_SPEAKER,
     DEVICE_CLASS_TV,
@@ -30,8 +28,6 @@ from homeassistant.const import (
 )
 from homeassistant.util import slugify
 
-_LOGGER = logging.getLogger(__name__)
-
 NAME = "Vizio"
 NAME2 = "Vizio2"
 HOST = "192.168.1.1:9000"
diff --git a/tests/components/vizio/test_config_flow.py b/tests/components/vizio/test_config_flow.py
index 2506a685e430e6734741a55653e1dae2b2ecff65..5cbc2fa55645d470c93df5b82b5f50508056943e 100644
--- a/tests/components/vizio/test_config_flow.py
+++ b/tests/components/vizio/test_config_flow.py
@@ -1,6 +1,4 @@
 """Tests for Vizio config flow."""
-import logging
-
 import pytest
 import voluptuous as vol
 
@@ -55,8 +53,6 @@ from .const import (
 
 from tests.common import MockConfigEntry
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def test_user_flow_minimum_fields(
     hass: HomeAssistantType,
diff --git a/tests/components/vizio/test_media_player.py b/tests/components/vizio/test_media_player.py
index c4620b0702582eb9e2bb280abf19e5677266b0dc..996d46e08a7e2e3cd7f346f76bdc9ea669525169 100644
--- a/tests/components/vizio/test_media_player.py
+++ b/tests/components/vizio/test_media_player.py
@@ -1,7 +1,6 @@
 """Tests for Vizio config flow."""
 from contextlib import asynccontextmanager
 from datetime import timedelta
-import logging
 from typing import Any, Dict, List, Optional
 
 import pytest
@@ -78,8 +77,6 @@ from .const import (
 from tests.async_mock import call, patch
 from tests.common import MockConfigEntry, async_fire_time_changed
 
-_LOGGER = logging.getLogger(__name__)
-
 
 async def _add_config_entry_to_hass(
     hass: HomeAssistantType, config_entry: MockConfigEntry
diff --git a/tests/components/zha/test_gateway.py b/tests/components/zha/test_gateway.py
index 718c7cdba19b004a54a9f35c0da8aa5476762d03..5d7f66bacd50f55126b356b1efb0784a7aaebe08 100644
--- a/tests/components/zha/test_gateway.py
+++ b/tests/components/zha/test_gateway.py
@@ -1,6 +1,5 @@
 """Test ZHA Gateway."""
 import asyncio
-import logging
 import time
 from unittest.mock import patch
 
@@ -17,7 +16,6 @@ from .common import async_enable_traffic, async_find_group_entity_id, get_zha_ga
 
 IEEE_GROUPABLE_DEVICE = "01:2d:6f:00:0a:90:69:e8"
 IEEE_GROUPABLE_DEVICE2 = "02:2d:6f:00:0a:90:69:e8"
-_LOGGER = logging.getLogger(__name__)
 
 
 @pytest.fixture
diff --git a/tests/helpers/test_collection.py b/tests/helpers/test_collection.py
index f2224858bb585465638e9e3dfe0fb2b4a9015a51..11f1534defb10a2fac8ba056bf550c94b91fbe16 100644
--- a/tests/helpers/test_collection.py
+++ b/tests/helpers/test_collection.py
@@ -8,7 +8,7 @@ from homeassistant.helpers import collection, entity, entity_component, storage
 
 from tests.common import flush_store
 
-LOGGER = logging.getLogger(__name__)
+_LOGGER = logging.getLogger(__name__)
 
 
 def track_changes(coll: collection.ObservableCollection):
@@ -85,7 +85,7 @@ def test_id_manager():
 
 async def test_observable_collection():
     """Test observerable collection."""
-    coll = collection.ObservableCollection(LOGGER)
+    coll = collection.ObservableCollection(_LOGGER)
     assert coll.async_items() == []
     coll.data["bla"] = 1
     assert coll.async_items() == [1]
@@ -99,7 +99,7 @@ async def test_observable_collection():
 async def test_yaml_collection():
     """Test a YAML collection."""
     id_manager = collection.IDManager()
-    coll = collection.YamlCollection(LOGGER, id_manager)
+    coll = collection.YamlCollection(_LOGGER, id_manager)
     changes = track_changes(coll)
     await coll.async_load(
         [{"id": "mock-1", "name": "Mock 1"}, {"id": "mock-2", "name": "Mock 2"}]
@@ -144,7 +144,7 @@ async def test_yaml_collection_skipping_duplicate_ids():
     """Test YAML collection skipping duplicate IDs."""
     id_manager = collection.IDManager()
     id_manager.add_collection({"existing": True})
-    coll = collection.YamlCollection(LOGGER, id_manager)
+    coll = collection.YamlCollection(_LOGGER, id_manager)
     changes = track_changes(coll)
     await coll.async_load(
         [{"id": "mock-1", "name": "Mock 1"}, {"id": "existing", "name": "Mock 2"}]
@@ -169,7 +169,7 @@ async def test_storage_collection(hass):
         }
     )
     id_manager = collection.IDManager()
-    coll = MockStorageCollection(store, LOGGER, id_manager)
+    coll = MockStorageCollection(store, _LOGGER, id_manager)
     changes = track_changes(coll)
 
     await coll.async_load()
@@ -222,8 +222,8 @@ async def test_storage_collection(hass):
 
 async def test_attach_entity_component_collection(hass):
     """Test attaching collection to entity component."""
-    ent_comp = entity_component.EntityComponent(LOGGER, "test", hass)
-    coll = collection.ObservableCollection(LOGGER)
+    ent_comp = entity_component.EntityComponent(_LOGGER, "test", hass)
+    coll = collection.ObservableCollection(_LOGGER)
     collection.attach_entity_component_collection(ent_comp, coll, MockEntity)
 
     await coll.notify_change(
@@ -252,7 +252,7 @@ async def test_attach_entity_component_collection(hass):
 async def test_storage_collection_websocket(hass, hass_ws_client):
     """Test exposing a storage collection via websockets."""
     store = storage.Store(hass, 1, "test-data")
-    coll = MockStorageCollection(store, LOGGER)
+    coll = MockStorageCollection(store, _LOGGER)
     changes = track_changes(coll)
     collection.StorageCollectionWebsocket(
         coll,
diff --git a/tests/helpers/test_update_coordinator.py b/tests/helpers/test_update_coordinator.py
index ee3c4af6daf5eb25afe92409bbedaeb9ed04ec81..72b9bff60f1ccde8f9815979daddb9e25bebe998 100644
--- a/tests/helpers/test_update_coordinator.py
+++ b/tests/helpers/test_update_coordinator.py
@@ -14,7 +14,7 @@ from homeassistant.util.dt import utcnow
 from tests.async_mock import AsyncMock, Mock, patch
 from tests.common import async_fire_time_changed
 
-LOGGER = logging.getLogger(__name__)
+_LOGGER = logging.getLogger(__name__)
 
 
 def get_crd(hass, update_interval):
@@ -28,7 +28,7 @@ def get_crd(hass, update_interval):
 
     crd = update_coordinator.DataUpdateCoordinator[int](
         hass,
-        LOGGER,
+        _LOGGER,
         name="test",
         update_method=refresh,
         update_interval=update_interval,
diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py
index 59e77dc13883a9d9930f515e6b18569a9b44df91..ed31724b58b558226266ebe26b41603af7b3aab9 100644
--- a/tests/test_bootstrap.py
+++ b/tests/test_bootstrap.py
@@ -1,7 +1,6 @@
 """Test the bootstrapping."""
 # pylint: disable=protected-access
 import asyncio
-import logging
 import os
 from unittest.mock import Mock
 
@@ -25,8 +24,6 @@ from tests.common import (
 ORIG_TIMEZONE = dt_util.DEFAULT_TIME_ZONE
 VERSION_PATH = os.path.join(get_test_config_dir(), config_util.VERSION_FILE)
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.fixture(autouse=True)
 def apply_mock_storage(hass_storage):
diff --git a/tests/test_setup.py b/tests/test_setup.py
index 3d34d1e13835ffa02a550763ed9cca17aaa34b83..ebcb10937796448c9d3bc4d7715f6d69bd642edb 100644
--- a/tests/test_setup.py
+++ b/tests/test_setup.py
@@ -1,7 +1,6 @@
 """Test component/platform setup."""
 # pylint: disable=protected-access
 import asyncio
-import logging
 import os
 import threading
 
@@ -34,8 +33,6 @@ from tests.common import (
 ORIG_TIMEZONE = dt_util.DEFAULT_TIME_ZONE
 VERSION_PATH = os.path.join(get_test_config_dir(), config_util.VERSION_FILE)
 
-_LOGGER = logging.getLogger(__name__)
-
 
 @pytest.fixture(autouse=True)
 def mock_handlers():