Remove integrations from mypy ignored modules (#64358)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-18 13:26:12 +01:00 committed by GitHub
parent d1a2ce4b78
commit 45313e3f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 30 deletions

View file

@ -6,6 +6,7 @@ This component is part of the device_tracker platform.
from __future__ import annotations
import logging
from typing import Any
from awesomeversion import AwesomeVersion
from fortiosapi import FortiOSAPI
@ -13,7 +14,7 @@ import voluptuous as vol
from homeassistant.components.device_tracker import (
DOMAIN,
PLATFORM_SCHEMA,
PLATFORM_SCHEMA as BASE_PLATFORM_SCHEMA,
DeviceScanner,
)
from homeassistant.const import CONF_HOST, CONF_TOKEN, CONF_VERIFY_SSL
@ -25,7 +26,7 @@ _LOGGER = logging.getLogger(__name__)
DEFAULT_VERIFY_SSL = False
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
PLATFORM_SCHEMA = BASE_PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_HOST): cv.string,
vol.Required(CONF_TOKEN): cv.string,
@ -71,8 +72,8 @@ class FortiOSDeviceScanner(DeviceScanner):
def __init__(self, fgt) -> None:
"""Initialize the scanner."""
self._clients = {}
self._clients_json = {}
self._clients: list[str] = []
self._clients_json: dict[str, Any] = {}
self._fgt = fgt
def update(self):