Add init type hints [b-c] (#63100)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-02 17:05:18 +01:00 committed by GitHub
parent 5d037a079d
commit 9e16f87ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 45 additions and 23 deletions

View file

@ -4,13 +4,15 @@ import logging
from Adafruit_BBIO import GPIO # pylint: disable=import-error
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
DOMAIN = "bbb_gpio"
_LOGGER = logging.getLogger(__name__)
def setup(hass, config):
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the BeagleBone Black GPIO component."""
_LOGGER.warning(
"The BeagleBone Black GPIO integration is deprecated and will be removed "