Move esphome imports at top-level (#29064)

This commit is contained in:
Quentame 2019-11-26 03:00:58 +01:00 committed by Paulus Schoutsen
parent 87de5db535
commit 8a413b152d
6 changed files with 16 additions and 30 deletions

View file

@ -1,5 +1,4 @@
"""Support for ESPHome binary sensors."""
import logging
from typing import Optional
from aioesphomeapi import BinarySensorInfo, BinarySensorState
@ -8,8 +7,6 @@ from homeassistant.components.binary_sensor import BinarySensorDevice
from . import EsphomeEntity, platform_async_setup_entry
_LOGGER = logging.getLogger(__name__)
async def async_setup_entry(hass, entry, async_add_entities):
"""Set up ESPHome binary sensors based on a config entry."""