Add init type hints [a] (#63098)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
055fb99938
commit
545e321002
18 changed files with 50 additions and 32 deletions
|
@ -10,7 +10,9 @@ from homeassistant.const import (
|
|||
EVENT_HOMEASSISTANT_START,
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -21,7 +23,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
)
|
||||
|
||||
|
||||
def setup(hass, config):
|
||||
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the Arduino component."""
|
||||
_LOGGER.warning(
|
||||
"The %s integration has been deprecated. Please move your "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue