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,12 +1,10 @@
|
|||
"""Entity to track connections to websocket API."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
|
||||
from .const import (
|
||||
DATA_CONNECTIONS,
|
||||
|
@ -19,7 +17,7 @@ async def async_setup_platform(
|
|||
hass: HomeAssistant,
|
||||
config: ConfigType,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
discovery_info: dict[str, Any] | None = None,
|
||||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Set up the API streams platform."""
|
||||
entity = APICount()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue