Move esphome imports at top-level (#29064)
This commit is contained in:
parent
87de5db535
commit
8a413b152d
6 changed files with 16 additions and 30 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue