diff --git a/homeassistant/components/binary_sensor/device_trigger.py b/homeassistant/components/binary_sensor/device_trigger.py index a6dfc762d451..66daa687f383 100644 --- a/homeassistant/components/binary_sensor/device_trigger.py +++ b/homeassistant/components/binary_sensor/device_trigger.py @@ -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" diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index e5ccb4339753..8d7557ad81d7 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -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" diff --git a/homeassistant/components/derivative/sensor.py b/homeassistant/components/derivative/sensor.py index 8e1934dcecf9..59e661fce0b0 100644 --- a/homeassistant/components/derivative/sensor.py +++ b/homeassistant/components/derivative/sensor.py @@ -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" diff --git a/homeassistant/components/device_automation/entity.py b/homeassistant/components/device_automation/entity.py index c7716f387127..f38daf2dae6e 100644 --- a/homeassistant/components/device_automation/entity.py +++ b/homeassistant/components/device_automation/entity.py @@ -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 diff --git a/homeassistant/components/device_automation/toggle_entity.py b/homeassistant/components/device_automation/toggle_entity.py index f14c4de5c2fe..e5061cb691e8 100644 --- a/homeassistant/components/device_automation/toggle_entity.py +++ b/homeassistant/components/device_automation/toggle_entity.py @@ -33,8 +33,6 @@ from .const import ( CONF_TURNED_ON, ) -# mypy: allow-untyped-calls, allow-untyped-defs - ENTITY_ACTIONS = [ { # Turn entity off diff --git a/homeassistant/components/geo_location/__init__.py b/homeassistant/components/geo_location/__init__.py index 54542fa85032..cb737b896eb3 100644 --- a/homeassistant/components/geo_location/__init__.py +++ b/homeassistant/components/geo_location/__init__.py @@ -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" diff --git a/homeassistant/components/homeassistant/triggers/homeassistant.py b/homeassistant/components/homeassistant/triggers/homeassistant.py index 8749c47861aa..e3dc93a9788a 100644 --- a/homeassistant/components/homeassistant/triggers/homeassistant.py +++ b/homeassistant/components/homeassistant/triggers/homeassistant.py @@ -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" diff --git a/homeassistant/components/homeassistant/triggers/numeric_state.py b/homeassistant/components/homeassistant/triggers/numeric_state.py index 10971a037815..b8f548adb160 100644 --- a/homeassistant/components/homeassistant/triggers/numeric_state.py +++ b/homeassistant/components/homeassistant/triggers/numeric_state.py @@ -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.""" diff --git a/homeassistant/components/homeassistant/triggers/state.py b/homeassistant/components/homeassistant/triggers/state.py index 8514000de073..25622e0a3c63 100644 --- a/homeassistant/components/homeassistant/triggers/state.py +++ b/homeassistant/components/homeassistant/triggers/state.py @@ -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" diff --git a/homeassistant/components/homeassistant/triggers/time.py b/homeassistant/components/homeassistant/triggers/time.py index a81afa1323a8..a51eff004e52 100644 --- a/homeassistant/components/homeassistant/triggers/time.py +++ b/homeassistant/components/homeassistant/triggers/time.py @@ -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"])), diff --git a/homeassistant/components/homeassistant/triggers/time_pattern.py b/homeassistant/components/homeassistant/triggers/time_pattern.py index 3c2cf58bca87..2a5022bebf3e 100644 --- a/homeassistant/components/homeassistant/triggers/time_pattern.py +++ b/homeassistant/components/homeassistant/triggers/time_pattern.py @@ -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" diff --git a/homeassistant/components/recorder/history.py b/homeassistant/components/recorder/history.py index 7e875a5ff935..cbcbdd2c75b7 100644 --- a/homeassistant/components/recorder/history.py +++ b/homeassistant/components/recorder/history.py @@ -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" diff --git a/homeassistant/components/remote/__init__.py b/homeassistant/components/remote/__init__.py index 1a739a2a4769..b1b856cfa291 100644 --- a/homeassistant/components/remote/__init__.py +++ b/homeassistant/components/remote/__init__.py @@ -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" diff --git a/homeassistant/components/sensor/device_condition.py b/homeassistant/components/sensor/device_condition.py index 01be2f37172f..437671a7e304 100644 --- a/homeassistant/components/sensor/device_condition.py +++ b/homeassistant/components/sensor/device_condition.py @@ -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" diff --git a/homeassistant/components/sensor/device_trigger.py b/homeassistant/components/sensor/device_trigger.py index 90d0a4c3d0e0..3cce6b74a816 100644 --- a/homeassistant/components/sensor/device_trigger.py +++ b/homeassistant/components/sensor/device_trigger.py @@ -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" diff --git a/homeassistant/components/stt/__init__.py b/homeassistant/components/stt/__init__.py index b4e22f1cdd23..94acf1559683 100644 --- a/homeassistant/components/stt/__init__.py +++ b/homeassistant/components/stt/__init__.py @@ -31,8 +31,6 @@ from .const import ( SpeechResultState, ) -# mypy: allow-untyped-defs, no-check-untyped-defs - _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/template/trigger.py b/homeassistant/components/template/trigger.py index 7c25e7090a6e..e6266a070772 100644 --- a/homeassistant/components/template/trigger.py +++ b/homeassistant/components/template/trigger.py @@ -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( diff --git a/homeassistant/components/trace/websocket_api.py b/homeassistant/components/trace/websocket_api.py index fb9357cc067b..2ea58db895a5 100644 --- a/homeassistant/components/trace/websocket_api.py +++ b/homeassistant/components/trace/websocket_api.py @@ -26,8 +26,6 @@ from homeassistant.helpers.script import ( from .. import trace -# mypy: allow-untyped-calls, allow-untyped-defs - TRACE_DOMAINS = ("automation", "script") diff --git a/homeassistant/components/vacuum/__init__.py b/homeassistant/components/vacuum/__init__.py index 24d4718540e6..dc5c9cc225c5 100644 --- a/homeassistant/components/vacuum/__init__.py +++ b/homeassistant/components/vacuum/__init__.py @@ -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" diff --git a/homeassistant/components/water_heater/__init__.py b/homeassistant/components/water_heater/__init__.py index 50ba1d15f2ea..c7ece01a93d3 100644 --- a/homeassistant/components/water_heater/__init__.py +++ b/homeassistant/components/water_heater/__init__.py @@ -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 diff --git a/homeassistant/components/webhook/trigger.py b/homeassistant/components/webhook/trigger.py index 262d77e61f77..cb1a6cb4eb6d 100644 --- a/homeassistant/components/webhook/trigger.py +++ b/homeassistant/components/webhook/trigger.py @@ -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(