Adjust pylint plugin to enforce platform type hints (#64836)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d15d081646
commit
78e92d1662
18 changed files with 94 additions and 47 deletions
|
@ -1,7 +1,6 @@
|
|||
"""Support for GTFS (Google/General Transport Format Schema)."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
import datetime
|
||||
import logging
|
||||
import os
|
||||
|
@ -20,6 +19,7 @@ from homeassistant.components.sensor import (
|
|||
from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME, CONF_OFFSET, STATE_UNKNOWN
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
from homeassistant.util import slugify
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
@ -480,7 +480,7 @@ def get_next_departure(
|
|||
def setup_platform(
|
||||
hass: HomeAssistant,
|
||||
config: ConfigType,
|
||||
add_entities: Callable[[list], None],
|
||||
add_entities: AddEntitiesCallback,
|
||||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Set up the GTFS sensor."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue