Remove unused mypy ignore statements (#78292)
parent
e83594a179
commit
253d355526
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -33,8 +33,6 @@ from .const import (
|
|||
CONF_TURNED_ON,
|
||||
)
|
||||
|
||||
# mypy: allow-untyped-calls, allow-untyped-defs
|
||||
|
||||
ENTITY_ACTIONS = [
|
||||
{
|
||||
# Turn entity off
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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."""
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"])),
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -31,8 +31,6 @@ from .const import (
|
|||
SpeechResultState,
|
||||
)
|
||||
|
||||
# mypy: allow-untyped-defs, no-check-untyped-defs
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -26,8 +26,6 @@ from homeassistant.helpers.script import (
|
|||
|
||||
from .. import trace
|
||||
|
||||
# mypy: allow-untyped-calls, allow-untyped-defs
|
||||
|
||||
TRACE_DOMAINS = ("automation", "script")
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue