Move esphome imports at top-level (#29064)
This commit is contained in:
1 parent
87de5db535
commit
8a413b152d
6 files changed
+16
-30
No files matched your search
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user