mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Eliminate extra include (#67316)
This commit is contained in:
parent
02d4739b28
commit
01fa6e7513
@ -12,7 +12,6 @@ import RFXtrx as rfxtrxmod
|
||||
import async_timeout
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import (
|
||||
ATTR_DEVICE_ID,
|
||||
@ -87,9 +86,7 @@ PLATFORMS = [
|
||||
]
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant, entry: config_entries.ConfigEntry
|
||||
) -> bool:
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up the RFXtrx component."""
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
|
||||
@ -163,7 +160,7 @@ def _get_device_lookup(devices):
|
||||
return lookup
|
||||
|
||||
|
||||
async def async_setup_internal(hass, entry: config_entries.ConfigEntry):
|
||||
async def async_setup_internal(hass, entry: ConfigEntry):
|
||||
"""Set up the RFXtrx component."""
|
||||
config = entry.data
|
||||
|
||||
@ -285,7 +282,7 @@ async def async_setup_internal(hass, entry: config_entries.ConfigEntry):
|
||||
|
||||
async def async_setup_platform_entry(
|
||||
hass: HomeAssistant,
|
||||
config_entry: config_entries.ConfigEntry,
|
||||
config_entry: ConfigEntry,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
supported: Callable[[rfxtrxmod.RFXtrxEvent], bool],
|
||||
constructor: Callable[
|
||||
|
Loading…
x
Reference in New Issue
Block a user