Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 0 additions & 2 deletions homeassistant/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Start Home Assistant."""

from __future__ import annotations

import argparse
from contextlib import suppress
import faulthandler
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Provide an authentication layer for Home Assistant."""

from __future__ import annotations

import asyncio
from collections import OrderedDict
from collections.abc import Mapping
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/auth_store.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Storage for auth models."""

from __future__ import annotations

from datetime import timedelta
import hmac
import itertools
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/jwt_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
to speed up the process.
"""

from __future__ import annotations

from datetime import timedelta
from functools import lru_cache, partial
from typing import Any
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/mfa_modules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Pluggable auth modules for Home Assistant."""

from __future__ import annotations

import logging
import types
from typing import Any
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/mfa_modules/insecure_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Example auth module."""

from __future__ import annotations

from typing import Any

import voluptuous as vol
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/mfa_modules/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
Sending HOTP through notify service
"""

from __future__ import annotations

import asyncio
import logging
from typing import Any, cast
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/mfa_modules/totp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Time-based One Time Password auth module."""

from __future__ import annotations

import asyncio
from io import BytesIO
from typing import Any, cast
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Auth models."""

from __future__ import annotations

from datetime import datetime, timedelta
from ipaddress import IPv4Address, IPv6Address
import secrets
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/permissions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Permissions for Home Assistant."""

from __future__ import annotations

from collections.abc import Callable

import voluptuous as vol
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/permissions/entities.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Entity permissions."""

from __future__ import annotations

from collections import OrderedDict
from collections.abc import Callable

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/permissions/events.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Permission for events."""

from __future__ import annotations

from typing import Any, Final

from homeassistant.const import (
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/permissions/merge.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Merging of policies."""

from __future__ import annotations

from typing import cast

from .types import CategoryType, PolicyType
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/permissions/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Models for permissions."""

from __future__ import annotations

from typing import TYPE_CHECKING

import attr
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/permissions/util.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Helpers to deal with permissions."""

from __future__ import annotations

from collections.abc import Callable
from functools import wraps
from typing import cast
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/providers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Auth providers for Home Assistant."""

from __future__ import annotations

from collections.abc import Mapping
import logging
import types
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/providers/command_line.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Auth provider that validates credentials via an external command."""

from __future__ import annotations

import asyncio
from collections.abc import Mapping
import logging
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/providers/homeassistant.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Home Assistant auth provider."""

from __future__ import annotations

import asyncio
import base64
from collections.abc import Mapping
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/providers/insecure_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Example auth provider."""

from __future__ import annotations

from collections.abc import Mapping
import hmac

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/auth/providers/trusted_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
Abort login flow if not access from trusted network.
"""

from __future__ import annotations

from collections.abc import Mapping
from ipaddress import (
IPv4Address,
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/backup_restore.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Home Assistant module to handle restoring backups."""

from __future__ import annotations

from collections.abc import Iterable
from dataclasses import dataclass
import json
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Provide methods to bootstrap a Home Assistant instance."""

from __future__ import annotations

import asyncio
from collections import defaultdict
import contextlib
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for the Abode Security System."""

from __future__ import annotations

from dataclasses import dataclass, field
from functools import partial
from pathlib import Path
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for Abode Security System alarm control panels."""

from __future__ import annotations

from jaraco.abode.devices.alarm import Alarm

from homeassistant.components.alarm_control_panel import (
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for Abode Security System binary sensors."""

from __future__ import annotations

from typing import cast

from jaraco.abode.devices.binary_sensor import BinarySensor
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/camera.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for Abode Security System cameras."""

from __future__ import annotations

from datetime import timedelta
from typing import Any, cast

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Config flow for the Abode Security System component."""

from __future__ import annotations

from collections.abc import Mapping
from http import HTTPStatus
from typing import Any, cast
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Constants for the Abode Security System component."""

from __future__ import annotations

import logging
from typing import TYPE_CHECKING

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/light.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for Abode Security System lights."""

from __future__ import annotations

from math import ceil
from typing import Any

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for Abode Security System sensors."""

from __future__ import annotations

from collections.abc import Callable
from dataclasses import dataclass
from typing import cast
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/services.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for the Abode Security System."""

from __future__ import annotations

from jaraco.abode.exceptions import Exception as AbodeException
import voluptuous as vol

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/abode/switch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for Abode Security System switches."""

from __future__ import annotations

from typing import Any, cast

from jaraco.abode.devices.switch import Switch
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acaia/coordinator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Coordinator for Acaia integration."""

from __future__ import annotations

from datetime import timedelta
import logging

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acaia/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Diagnostics support for Acaia."""

from __future__ import annotations

from dataclasses import asdict
from typing import Any

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""The AccuWeather component."""

from __future__ import annotations

import asyncio
import logging

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Adds config flow for AccuWeather."""

from __future__ import annotations

from asyncio import timeout
from collections.abc import Mapping
from typing import Any
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Constants for AccuWeather integration."""

from __future__ import annotations

from datetime import timedelta
from typing import Final

Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/coordinator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""The AccuWeather coordinator."""

from __future__ import annotations

from asyncio import timeout
from collections.abc import Awaitable, Callable
from dataclasses import dataclass
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Diagnostics support for AccuWeather."""

from __future__ import annotations

from typing import Any

from homeassistant.components.diagnostics import async_redact_data
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for the AccuWeather service."""

from __future__ import annotations

from collections.abc import Callable
from dataclasses import dataclass
from typing import Any, cast
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/system_health.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Provide info to system health."""

from __future__ import annotations

from typing import Any

from accuweather.const import ENDPOINT
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/accuweather/weather.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for the AccuWeather service."""

from __future__ import annotations

from typing import cast

from homeassistant.components.weather import (
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acer_projector/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Use serial protocol of Acer projector to obtain state of the projector."""

from __future__ import annotations

from typing import Final

from homeassistant.const import STATE_OFF, STATE_ON
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acer_projector/switch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Use serial protocol of Acer projector to obtain state of the projector."""

from __future__ import annotations

import logging
import re
from typing import Any
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acmeda/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Config flow for Rollease Acmeda Automate Pulse Hub."""

from __future__ import annotations

from asyncio import timeout
from contextlib import suppress
from typing import Any
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acmeda/cover.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Support for Acmeda Roller Blinds."""

from __future__ import annotations

from typing import Any

from homeassistant.components.cover import (
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acmeda/entity.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Base class for Acmeda Roller Blinds."""

from __future__ import annotations

import aiopulse

from homeassistant.core import callback
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acmeda/helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Helper functions for Acmeda Pulse."""

from __future__ import annotations

from typing import TYPE_CHECKING

from aiopulse import Roller
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/components/acmeda/hub.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Code to handle a Pulse Hub."""

from __future__ import annotations

import asyncio
from collections.abc import Callable

Expand Down
Loading
Loading