Cleanup unused loggers (components N-Z + tests) (#41982)

This commit is contained in:
Philip Allgaier 2020-10-17 04:24:08 +02:00 committed by GitHub
parent ad6ce5fa83
commit dde6305549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
326 changed files with 84 additions and 1156 deletions

View file

@ -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.