Remove unused mypy ignore statements (#78292)

pull/78307/head
epenet 2022-09-12 15:25:11 +02:00 committed by GitHub
parent e83594a179
commit 253d355526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 0 additions and 44 deletions

View File

@ -16,8 +16,6 @@ from homeassistant.helpers.typing import ConfigType
from . import DOMAIN, BinarySensorDeviceClass
# mypy: allow-untyped-defs, no-check-untyped-defs
DEVICE_CLASS_NONE = "none"
CONF_BAT_LOW = "bat_low"

View File

@ -75,8 +75,6 @@ from .const import ( # noqa: F401
from .img_util import scale_jpeg_camera_image
from .prefs import CameraPreferences
# mypy: allow-untyped-calls
_LOGGER = logging.getLogger(__name__)
SERVICE_ENABLE_MOTION: Final = "enable_motion_detection"

View File

@ -35,8 +35,6 @@ from .const import (
CONF_UNIT_TIME,
)
# mypy: allow-untyped-defs, no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
ATTR_SOURCE_ID = "source"

View File

@ -13,8 +13,6 @@ from homeassistant.helpers.typing import ConfigType
from . import DEVICE_TRIGGER_BASE_SCHEMA
from .const import CONF_CHANGED_STATES
# mypy: allow-untyped-calls, allow-untyped-defs
ENTITY_TRIGGERS = [
{
# Trigger when entity is turned on or off

View File

@ -33,8 +33,6 @@ from .const import (
CONF_TURNED_ON,
)
# mypy: allow-untyped-calls, allow-untyped-defs
ENTITY_ACTIONS = [
{
# Turn entity off

View File

@ -16,8 +16,6 @@ from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.typing import ConfigType
# mypy: allow-untyped-defs, no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
ATTR_DISTANCE = "distance"

View File

@ -7,8 +7,6 @@ from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.trigger import TriggerActionType, TriggerInfo
from homeassistant.helpers.typing import ConfigType
# mypy: allow-untyped-defs
EVENT_START = "start"
EVENT_SHUTDOWN = "shutdown"

View File

@ -27,9 +27,6 @@ from homeassistant.helpers.event import (
from homeassistant.helpers.trigger import TriggerActionType, TriggerInfo
from homeassistant.helpers.typing import ConfigType
# mypy: allow-incomplete-defs, allow-untyped-calls, allow-untyped-defs
# mypy: no-check-untyped-defs
def validate_above_below(value):
"""Validate that above and below can co-exist."""

View File

@ -29,9 +29,6 @@ from homeassistant.helpers.event import (
from homeassistant.helpers.trigger import TriggerActionType, TriggerInfo
from homeassistant.helpers.typing import ConfigType
# mypy: allow-incomplete-defs, allow-untyped-calls, allow-untyped-defs
# mypy: no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
CONF_ENTITY_ID = "entity_id"

View File

@ -23,8 +23,6 @@ from homeassistant.helpers.trigger import TriggerActionType, TriggerInfo
from homeassistant.helpers.typing import ConfigType
import homeassistant.util.dt as dt_util
# mypy: allow-untyped-defs, no-check-untyped-defs
_TIME_TRIGGER_SCHEMA = vol.Any(
cv.time,
vol.All(str, cv.entity_domain(["input_datetime", "sensor"])),

View File

@ -8,8 +8,6 @@ from homeassistant.helpers.event import async_track_time_change
from homeassistant.helpers.trigger import TriggerActionType, TriggerInfo
from homeassistant.helpers.typing import ConfigType
# mypy: allow-untyped-defs, no-check-untyped-defs
CONF_HOURS = "hours"
CONF_MINUTES = "minutes"
CONF_SECONDS = "seconds"

View File

@ -36,8 +36,6 @@ from .models import (
)
from .util import execute_stmt_lambda_element, session_scope
# mypy: allow-untyped-defs, no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
STATE_KEY = "state"

View File

@ -31,8 +31,6 @@ from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import bind_hass
# mypy: allow-untyped-calls, allow-untyped-defs, no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
ATTR_ACTIVITY = "activity"

View File

@ -29,8 +29,6 @@ from homeassistant.helpers.typing import ConfigType
from . import ATTR_STATE_CLASS, DOMAIN, SensorDeviceClass
# mypy: allow-untyped-defs, no-check-untyped-defs
DEVICE_CLASS_NONE = "none"
CONF_IS_APPARENT_POWER = "is_apparent_power"

View File

@ -28,8 +28,6 @@ from homeassistant.helpers.typing import ConfigType
from . import ATTR_STATE_CLASS, DOMAIN, SensorDeviceClass
# mypy: allow-untyped-defs, no-check-untyped-defs
DEVICE_CLASS_NONE = "none"
CONF_APPARENT_POWER = "apparent_power"

View File

@ -31,8 +31,6 @@ from .const import (
SpeechResultState,
)
# mypy: allow-untyped-defs, no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)

View File

@ -16,8 +16,6 @@ from homeassistant.helpers.template import Template, result_as_boolean
from homeassistant.helpers.trigger import TriggerActionType, TriggerInfo
from homeassistant.helpers.typing import ConfigType
# mypy: allow-untyped-defs, no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
TRIGGER_SCHEMA = IF_ACTION_SCHEMA = cv.TRIGGER_BASE_SCHEMA.extend(

View File

@ -26,8 +26,6 @@ from homeassistant.helpers.script import (
from .. import trace
# mypy: allow-untyped-calls, allow-untyped-defs
TRACE_DOMAINS = ("automation", "script")

View File

@ -40,8 +40,6 @@ from homeassistant.helpers.icon import icon_for_battery_level
from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import bind_hass
# mypy: allow-untyped-defs, no-check-untyped-defs
_LOGGER = logging.getLogger(__name__)
DOMAIN = "vacuum"

View File

@ -36,8 +36,6 @@ from homeassistant.helpers.temperature import display_temp as show_temp
from homeassistant.helpers.typing import ConfigType
from homeassistant.util.temperature import convert as convert_temperature
# mypy: allow-untyped-defs, no-check-untyped-defs
DEFAULT_MIN_TEMP = 110
DEFAULT_MAX_TEMP = 140

View File

@ -14,8 +14,6 @@ from homeassistant.helpers.typing import ConfigType
from . import DOMAIN, async_register, async_unregister
# mypy: allow-untyped-defs
DEPENDENCIES = ("webhook",)
TRIGGER_SCHEMA = cv.TRIGGER_BASE_SCHEMA.extend(