mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Add type hints to get_scanner/async_get_scanner (#63836)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
"""Support for ClearPass Policy Manager."""
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
@@ -11,7 +13,9 @@ from homeassistant.components.device_tracker import (
|
||||
DeviceScanner,
|
||||
)
|
||||
from homeassistant.const import CONF_API_KEY, CONF_CLIENT_ID, CONF_HOST
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
SCAN_INTERVAL = timedelta(seconds=120)
|
||||
|
||||
@@ -28,7 +32,7 @@ PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_scanner(hass, config):
|
||||
def get_scanner(hass: HomeAssistant, config: ConfigType) -> DeviceScanner | None:
|
||||
"""Initialize Scanner."""
|
||||
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user