repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/services.py
homeassistant/components/backup/services.py
"""The Backup integration.""" from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.helpers.hassio import is_hassio from .const import DATA_MANAGER, DOMAIN async def _async_handle_create_service(call: ServiceCall) -> None: """Service handler for creating backups.""" backup_manager = c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/models.py
homeassistant/components/backup/models.py
"""Models for the backup integration.""" from __future__ import annotations from dataclasses import asdict, dataclass from enum import StrEnum from typing import Any, Self from homeassistant.exceptions import HomeAssistantError @dataclass(frozen=True, kw_only=True) class AddonInfo: """Addon information.""" ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/websocket.py
homeassistant/components/backup/websocket.py
"""Websocket commands for the Backup integration.""" from typing import Any import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_validation as cv from .config import Day, ScheduleRecurrence from .c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/store.py
homeassistant/components/backup/store.py
"""Store backup configuration.""" from __future__ import annotations from typing import TYPE_CHECKING, Any, TypedDict from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.storage import Store from .const import DOMAIN if TYPE_CHECKING: from .config import StoredBackupConfig fro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/const.py
homeassistant/components/backup/const.py
"""Constants for the Backup integration.""" from __future__ import annotations from logging import getLogger from typing import TYPE_CHECKING from homeassistant.util.hass_dict import HassKey if TYPE_CHECKING: from .manager import BackupManager BUF_SIZE = 2**20 * 4 # 4MB DOMAIN = "backup" DATA_MANAGER: HassKey...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/coordinator.py
homeassistant/components/backup/coordinator.py
"""Coordinator for Home Assistant Backup integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassista...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/onboarding.py
homeassistant/components/backup/onboarding.py
"""Backup onboarding views.""" from __future__ import annotations from collections.abc import Callable, Coroutine from functools import wraps from http import HTTPStatus from typing import TYPE_CHECKING, Any, Concatenate from aiohttp import web from aiohttp.web_exceptions import HTTPUnauthorized import voluptuous as...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/sensor.py
homeassistant/components/backup/sensor.py
"""Sensor platform for Home Assistant Backup integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) fr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/config.py
homeassistant/components/backup/config.py
"""Provide persistent configuration for the backup integration.""" from __future__ import annotations from collections import defaultdict from dataclasses import dataclass, field, replace import datetime as dt from datetime import datetime, timedelta from enum import StrEnum import random from typing import TYPE_CHEC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/__init__.py
homeassistant/components/backup/__init__.py
"""The Backup integration.""" from homeassistant.config_entries import SOURCE_SYSTEM from homeassistant.const import Platform from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import config_validation as cv, discovery_flow from hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/entity.py
homeassistant/components/backup/entity.py
"""Base for backup entities.""" from __future__ import annotations from homeassistant.const import __version__ as HA_VERSION from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import Coo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/agent.py
homeassistant/components/backup/agent.py
"""Backup agents for the Backup integration.""" from __future__ import annotations import abc from collections.abc import AsyncIterator, Callable, Coroutine from pathlib import Path from typing import Any, Protocol from propcache.api import cached_property from homeassistant.core import HomeAssistant, callback fro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/backup.py
homeassistant/components/backup/backup.py
"""Local backup support for Core and Container installations.""" from __future__ import annotations from collections.abc import AsyncIterator, Callable, Coroutine import json from pathlib import Path from tarfile import TarError from typing import Any from homeassistant.core import HomeAssistant from homeassistant.h...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/manager.py
homeassistant/components/backup/manager.py
"""Backup manager for the Backup integration.""" from __future__ import annotations import abc import asyncio from collections import defaultdict from collections.abc import AsyncIterator, Callable, Coroutine from dataclasses import dataclass, replace from enum import StrEnum import hashlib import io from itertools i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
true
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/backup/config_flow.py
homeassistant/components/backup/config_flow.py
"""Config flow for Home Assistant Backup integration.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import DOMAIN class BackupConfigFlow(ConfigFlow, domain=DOMAIN): """Handle a config flow for Home Assistant Backu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/image.py
homeassistant/components/unifi/image.py
"""Image platform for UniFi Network integration. Support for QR code for guest WLANs. """ from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from aiounifi.interfaces.api_handlers import APIHandler, ItemEvent from aiounifi.interfaces.wlans import Wlans from aiou...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/diagnostics.py
homeassistant/components/unifi/diagnostics.py
"""Diagnostics support for UniFi Network.""" from __future__ import annotations from collections.abc import Mapping from itertools import chain from typing import Any from homeassistant.components.diagnostics import REDACTED, async_redact_data from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME f...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/device_tracker.py
homeassistant/components/unifi/device_tracker.py
"""Track both clients and devices using UniFi Network.""" from __future__ import annotations from collections.abc import Callable, Mapping from dataclasses import dataclass from datetime import timedelta import logging from typing import Any import aiounifi from aiounifi.interfaces.api_handlers import APIHandler, It...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/services.py
homeassistant/components/unifi/services.py
"""UniFi Network services.""" from collections.abc import Mapping from typing import Any from aiounifi.models.client import ClientReconnectRequest, ClientRemoveRequest import voluptuous as vol from homeassistant.const import ATTR_DEVICE_ID from homeassistant.core import HomeAssistant, ServiceCall, callback from home...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/switch.py
homeassistant/components/unifi/switch.py
"""Switch platform for UniFi Network integration. Support for controlling power supply of clients which are powered over Ethernet (POE). Support for controlling network access of clients selected in option flow. Support for controlling deep packet inspection (DPI) restriction groups. Support for controlling WLAN avail...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/const.py
homeassistant/components/unifi/const.py
"""Constants for the UniFi Network integration.""" import logging from aiounifi.models.device import DeviceState from homeassistant.const import Platform LOGGER = logging.getLogger(__package__) DOMAIN = "unifi" PLATFORMS = [ Platform.BUTTON, Platform.DEVICE_TRACKER, Platform.IMAGE, Platform.LIGHT, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/update.py
homeassistant/components/unifi/update.py
"""Update entities for Ubiquiti network devices.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass import logging from typing import Any import aiounifi from aiounifi.interfaces.api_handlers import ItemEvent from aiounifi.interfaces.devices import...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/errors.py
homeassistant/components/unifi/errors.py
"""Errors for the UniFi Network integration.""" from homeassistant.exceptions import HomeAssistantError class UnifiException(HomeAssistantError): """Base class for UniFi Network exceptions.""" class AlreadyConfigured(UnifiException): """Controller is already configured.""" class AuthenticationRequired(Un...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/sensor.py
homeassistant/components/unifi/sensor.py
"""Sensor platform for UniFi Network integration. Support for bandwidth sensors of network clients. Support for uptime sensors of network clients. """ from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import date, datetime, timedelta from decimal ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/__init__.py
homeassistant/components/unifi/__init__.py
"""Integration to UniFi Network and its various features.""" from aiounifi.models.client import Client from homeassistant.config_entries import ConfigEntry from homeassistant.const import EVENT_HOMEASSISTANT_STOP from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import ConfigEntryAu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/entity.py
homeassistant/components/unifi/entity.py
"""UniFi entity representation.""" from __future__ import annotations from abc import abstractmethod from collections.abc import Callable from dataclasses import dataclass from typing import TYPE_CHECKING import aiounifi from aiounifi.interfaces.api_handlers import ( APIHandler, CallbackType, ItemEvent, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/button.py
homeassistant/components/unifi/button.py
"""Button platform for UniFi Network integration. Support for restarting UniFi devices. """ from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass import secrets from typing import TYPE_CHECKING, Any import aiounifi from aiounifi.interfaces.api_handlers ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/light.py
homeassistant/components/unifi/light.py
"""Light platform for UniFi Network integration.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import TYPE_CHECKING, Any, cast from aiounifi.interfaces.api_handlers import APIHandler, ItemEvent from aiounifi.interfaces.devices impo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/config_flow.py
homeassistant/components/unifi/config_flow.py
"""Config flow for UniFi Network integration. Provides user initiated configuration flow. Discovery of UniFi Network instances hosted on UDM and UDM Pro devices through SSDP. Reauthentication when issue with credentials are reported. Configuration of options through options flow. """ from __future__ import annotation...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/hub/entity_loader.py
homeassistant/components/unifi/hub/entity_loader.py
"""UniFi Network entity loader. Central point to load entities for the different platforms. Make sure expected clients are available for platforms. """ from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine, Sequence from datetime import timedelta from functools import part...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/hub/api.py
homeassistant/components/unifi/hub/api.py
"""Provide an object to communicate with UniFi Network application.""" from __future__ import annotations import asyncio from collections.abc import Mapping import ssl from typing import Any, Literal from aiohttp import CookieJar import aiounifi from aiounifi.models.configuration import Configuration from homeassis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/hub/entity_helper.py
homeassistant/components/unifi/hub/entity_helper.py
"""UniFi Network entity helper.""" from __future__ import annotations from datetime import datetime, timedelta import aiounifi from aiounifi.models.device import DeviceSetPoePortModeRequest from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispa...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/hub/websocket.py
homeassistant/components/unifi/hub/websocket.py
"""Websocket handler for UniFi Network integration.""" from __future__ import annotations import asyncio from datetime import datetime, timedelta import aiohttp import aiounifi from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_send fr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/hub/config.py
homeassistant/components/unifi/hub/config.py
"""UniFi Network config entry abstraction.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta import ssl from typing import Literal, Self from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/hub/__init__.py
homeassistant/components/unifi/hub/__init__.py
"""Internal functionality not part of HA infrastructure.""" from .api import get_unifi_api from .hub import UnifiHub __all__ = ["UnifiHub", "get_unifi_api"]
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/unifi/hub/hub.py
homeassistant/components/unifi/hub/hub.py
"""UniFi Network abstraction.""" from __future__ import annotations from datetime import datetime from typing import TYPE_CHECKING import aiounifi from homeassistant.core import Event, HomeAssistant, callback from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import (...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cisco_ios/device_tracker.py
homeassistant/components/cisco_ios/device_tracker.py
"""Support for Cisco IOS Routers.""" from __future__ import annotations import logging from pexpect import pxssh import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM_SCHEMA, DeviceScanner, ) from homeas...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cisco_ios/__init__.py
homeassistant/components/cisco_ios/__init__.py
"""The cisco_ios component."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/cover.py
homeassistant/components/opengarage/cover.py
"""Platform for the opengarage.io cover component.""" from __future__ import annotations import logging from typing import Any, cast from homeassistant.components.cover import ( CoverDeviceClass, CoverEntity, CoverEntityFeature, CoverState, ) from homeassistant.config_entries import ConfigEntry from ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/binary_sensor.py
homeassistant/components/opengarage/binary_sensor.py
"""Platform for the opengarage.io binary sensor component.""" from __future__ import annotations import logging from typing import cast from homeassistant.components.binary_sensor import ( BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/const.py
homeassistant/components/opengarage/const.py
"""Constants for the OpenGarage integration.""" CONF_DEVICE_KEY = "device_key" DEFAULT_NAME = "OpenGarage" DEFAULT_PORT = 80 DOMAIN = "opengarage"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/coordinator.py
homeassistant/components/opengarage/coordinator.py
"""The OpenGarage integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any import opengarage from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers import update_coordinator from home...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/sensor.py
homeassistant/components/opengarage/sensor.py
"""Platform for the opengarage.io sensor component.""" from __future__ import annotations import logging from typing import cast from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/__init__.py
homeassistant/components/opengarage/__init__.py
"""The OpenGarage integration.""" from __future__ import annotations import opengarage from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_PORT, CONF_VERIFY_SSL, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import asy...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/entity.py
homeassistant/components/opengarage/entity.py
"""Entity for the opengarage.io component.""" from __future__ import annotations from homeassistant.core import callback from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/button.py
homeassistant/components/opengarage/button.py
"""OpenGarage button.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any, cast from opengarage import OpenGarage from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, ButtonEntityDescription, ) from...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opengarage/config_flow.py
homeassistant/components/opengarage/config_flow.py
"""Config flow for OpenGarage integration.""" from __future__ import annotations import logging from typing import Any import aiohttp import opengarage import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PORT, CONF_VERIFY_SSL...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/event.py
homeassistant/components/husqvarna_automower/event.py
"""Creates the event entities for supported mowers.""" from collections.abc import Callable import logging from aioautomower.model import SingleMessageData from homeassistant.components.event import ( DOMAIN as EVENT_DOMAIN, EventEntity, EventEntityDescription, ) from homeassistant.core import HomeAssist...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/api.py
homeassistant/components/husqvarna_automower/api.py
"""API for Husqvarna Automower bound to Home Assistant OAuth.""" import logging from typing import cast from aioautomower.auth import AbstractAuth from aioautomower.const import API_BASE_URL from aiohttp import ClientSession from homeassistant.const import CONF_ACCESS_TOKEN from homeassistant.helpers import config_e...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/diagnostics.py
homeassistant/components/husqvarna_automower/diagnostics.py
"""Diagnostics support for Husqvarna Automower.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_ACCESS_TOKEN from homeassistant.core import HomeAssistant from homeassistant.helpers.devi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/device_tracker.py
homeassistant/components/husqvarna_automower/device_tracker.py
"""Creates the device tracker entity for the mower.""" from homeassistant.components.device_tracker import TrackerEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from . import AutomowerConfigEntry from .coordinator import AutomowerDa...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/application_credentials.py
homeassistant/components/husqvarna_automower/application_credentials.py
"""Application credentials platform for Husqvarna Automower.""" from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssistant from .const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN async def async_get_authorization_server(hass: HomeAssistant) -> Authorizati...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/switch.py
homeassistant/components/husqvarna_automower/switch.py
"""Creates a switch entity for the mower.""" import logging from typing import TYPE_CHECKING, Any from aioautomower.model import MowerModes, StayOutZones, Zone from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddCo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/number.py
homeassistant/components/husqvarna_automower/number.py
"""Creates the number entities for the mower.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass import logging from typing import TYPE_CHECKING, Any from aioautomower.model import MowerAttributes, WorkArea from aioautomower.session import AutomowerSession from homeassistant.compone...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/binary_sensor.py
homeassistant/components/husqvarna_automower/binary_sensor.py
"""Creates the binary sensor entities for the mower.""" from collections.abc import Callable from dataclasses import dataclass import logging from aioautomower.model import MowerActivities, MowerAttributes from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, B...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/const.py
homeassistant/components/husqvarna_automower/const.py
"""The constants for the Husqvarna Automower integration.""" from aioautomower.model import MowerStates DOMAIN = "husqvarna_automower" EXECUTION_TIME_DELAY = 5 NAME = "Husqvarna Automower" OAUTH2_AUTHORIZE = "https://api.authentication.husqvarnagroup.dev/v1/oauth2/authorize" OAUTH2_TOKEN = "https://api.authentication...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/coordinator.py
homeassistant/components/husqvarna_automower/coordinator.py
"""Data UpdateCoordinator for the Husqvarna Automower integration.""" from __future__ import annotations import asyncio from collections.abc import Callable from datetime import datetime, timedelta import logging from typing import override from aioautomower.exceptions import ( ApiError, AuthError, Husqv...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/sensor.py
homeassistant/components/husqvarna_automower/sensor.py
"""Creates the sensor entities for the mower.""" from collections.abc import Callable, Mapping from dataclasses import dataclass from datetime import datetime import logging from operator import attrgetter from typing import TYPE_CHECKING, Any from aioautomower.model import ( ExternalReasons, InactiveReasons,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/__init__.py
homeassistant/components/husqvarna_automower/__init__.py
"""The Husqvarna Automower integration.""" import logging from aioautomower.session import AutomowerSession from aiohttp import ClientResponseError from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady fro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/entity.py
homeassistant/components/husqvarna_automower/entity.py
"""Platform for Husqvarna Automower base entity.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine import functools import logging from typing import TYPE_CHECKING, Any, Concatenate, ParamSpec, TypeVar, overload from aioautomower.exceptions import ApiError from aioa...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/calendar.py
homeassistant/components/husqvarna_automower/calendar.py
"""Creates a calendar entity for the mower.""" from datetime import datetime import logging from typing import TYPE_CHECKING from aioautomower.model import make_name_string from homeassistant.components.calendar import CalendarEntity, CalendarEvent from homeassistant.core import HomeAssistant from homeassistant.help...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/button.py
homeassistant/components/husqvarna_automower/button.py
"""Creates button entities for the Husqvarna Automower integration.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass import logging from typing import Any from aioautomower.model import MowerAttributes from aioautomower.session import AutomowerSession from homeassistant.components...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/lawn_mower.py
homeassistant/components/husqvarna_automower/lawn_mower.py
"""Husqvarna Automower lawn mower entity.""" from datetime import timedelta import logging from typing import TYPE_CHECKING from aioautomower.model import MowerActivities, MowerStates, WorkArea import voluptuous as vol from homeassistant.components.lawn_mower import ( LawnMowerActivity, LawnMowerEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/select.py
homeassistant/components/husqvarna_automower/select.py
"""Creates a select entity for the headlight of the mower.""" import logging from typing import cast from aioautomower.model import HeadlightModes from homeassistant.components.select import SelectEntity from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant from homeassistant.he...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower/config_flow.py
homeassistant/components/husqvarna_automower/config_flow.py
"""Config flow to add the integration via the UI.""" from collections.abc import Mapping import logging from typing import Any from aioautomower.session import AutomowerSession from aioautomower.utils import structure_token from homeassistant.config_entries import SOURCE_REAUTH, ConfigFlowResult from homeassistant.c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/diagnostics.py
homeassistant/components/bsblan/diagnostics.py
"""Diagnostics support for BSBLan.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from . import BSBLanConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: BSBLanConfigEntry ) -> dict[str, Any]: """Return diagnostic...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/services.py
homeassistant/components/bsblan/services.py
"""Support for BSB-Lan services.""" from __future__ import annotations from datetime import time import logging from typing import TYPE_CHECKING from bsblan import BSBLANError, DaySchedule, DHWSchedule, TimeSlot import voluptuous as vol from homeassistant.config_entries import ConfigEntryState from homeassistant.co...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/const.py
homeassistant/components/bsblan/const.py
"""Constants for the BSB-Lan integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final # Integration domain DOMAIN: Final = "bsblan" LOGGER = logging.getLogger(__package__) SCAN_INTERVAL = timedelta(seconds=12) # Legacy interval, kept for compatibilit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/coordinator.py
homeassistant/components/bsblan/coordinator.py
"""DataUpdateCoordinator for the BSB-Lan integration.""" from dataclasses import dataclass from datetime import timedelta from random import randint from bsblan import ( BSBLAN, BSBLANAuthError, BSBLANConnectionError, HotWaterConfig, HotWaterSchedule, HotWaterState, Sensor, State, ) f...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/sensor.py
homeassistant/components/bsblan/sensor.py
"""Support for BSB-Lan sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import Unit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/__init__.py
homeassistant/components/bsblan/__init__.py
"""The BSB-Lan integration.""" import dataclasses from bsblan import ( BSBLAN, BSBLANAuthError, BSBLANConfig, BSBLANConnectionError, BSBLANError, Device, Info, StaticState, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_HOST, CONF...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/entity.py
homeassistant/components/bsblan/entity.py
"""BSBLan base entity.""" from __future__ import annotations from homeassistant.helpers.device_registry import ( CONNECTION_NETWORK_MAC, DeviceInfo, format_mac, ) from homeassistant.helpers.update_coordinator import CoordinatorEntity from . import BSBLanData from .const import DOMAIN from .coordinator im...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/water_heater.py
homeassistant/components/bsblan/water_heater.py
"""BSBLAN platform to control a compatible Water Heater Device.""" from __future__ import annotations from typing import Any from bsblan import BSBLANError, SetHotWaterParam from homeassistant.components.water_heater import ( STATE_ECO, STATE_OFF, WaterHeaterEntity, WaterHeaterEntityFeature, ) from ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/climate.py
homeassistant/components/bsblan/climate.py
"""BSBLAN platform to control a compatible Climate Device.""" from __future__ import annotations from typing import Any, Final from bsblan import BSBLANError from homeassistant.components.climate import ( ATTR_HVAC_MODE, ATTR_PRESET_MODE, PRESET_ECO, PRESET_NONE, ClimateEntity, ClimateEntity...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bsblan/config_flow.py
homeassistant/components/bsblan/config_flow.py
"""Config flow for BSB-Lan integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from bsblan import BSBLAN, BSBLANAuthError, BSBLANConfig, BSBLANError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hexaom/__init__.py
homeassistant/components/hexaom/__init__.py
"""Virtual integration: Hexaom Hexaconnect."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/api.py
homeassistant/components/electric_kiwi/api.py
"""API for Electric Kiwi bound to Home Assistant OAuth.""" from __future__ import annotations from aiohttp import ClientSession from electrickiwi_api import AbstractAuth from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client, config_entry_oauth2_flow from .const import API_BAS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/application_credentials.py
homeassistant/components/electric_kiwi/application_credentials.py
"""application_credentials platform the Electric Kiwi integration.""" from homeassistant.components.application_credentials import ( AuthorizationServer, ClientCredential, ) from homeassistant.core import HomeAssistant from homeassistant.helpers import config_entry_oauth2_flow from .const import OAUTH2_AUTHOR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/oauth2.py
homeassistant/components/electric_kiwi/oauth2.py
"""OAuth2 implementations for Toon.""" from __future__ import annotations import base64 from typing import Any, cast from homeassistant.components.application_credentials import ( AuthImplementation, AuthorizationServer, ClientCredential, ) from homeassistant.core import HomeAssistant from homeassistant....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/const.py
homeassistant/components/electric_kiwi/const.py
"""Constants for the Electric Kiwi integration.""" NAME = "Electric Kiwi" DOMAIN = "electric_kiwi" ATTRIBUTION = "Data provided by the Juice Hacker API" OAUTH2_AUTHORIZE = "https://welcome.electrickiwi.co.nz/oauth/authorize" OAUTH2_TOKEN = "https://welcome.electrickiwi.co.nz/oauth/token" API_BASE_URL = "https://api.e...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/coordinator.py
homeassistant/components/electric_kiwi/coordinator.py
"""Electric Kiwi coordinators.""" from __future__ import annotations import asyncio from collections import OrderedDict from dataclasses import dataclass from datetime import timedelta import logging from electrickiwi_api import ElectricKiwiApi from electrickiwi_api.exceptions import ApiException, AuthException from...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/sensor.py
homeassistant/components/electric_kiwi/sensor.py
"""Support for Electric Kiwi sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from electrickiwi_api.model import AccountSummary, Hop from homeassistant.components.sensor import ( SensorDeviceClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/__init__.py
homeassistant/components/electric_kiwi/__init__.py
"""The Electric Kiwi integration.""" from __future__ import annotations import aiohttp from electrickiwi_api import ElectricKiwiApi from electrickiwi_api.exceptions import ApiException, AuthException from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/select.py
homeassistant/components/electric_kiwi/select.py
"""Support for Electric Kiwi hour of free power.""" from __future__ import annotations import logging from homeassistant.components.select import SelectEntity, SelectEntityDescription from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platfor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/electric_kiwi/config_flow.py
homeassistant/components/electric_kiwi/config_flow.py
"""Config flow for Electric Kiwi.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from electrickiwi_api import ElectricKiwiApi from electrickiwi_api.exceptions import ApiException from homeassistant.config_entries import SOURCE_REAUTH, ConfigFlowResult...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rehlko/binary_sensor.py
homeassistant/components/rehlko/binary_sensor.py
"""Binary sensor platform for Rehlko integration.""" from __future__ import annotations from dataclasses import dataclass import logging from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.const import Entit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rehlko/const.py
homeassistant/components/rehlko/const.py
"""Constants for the Rehlko integration.""" from aiokem import CommunicationError DOMAIN = "rehlko" CONF_REFRESH_TOKEN = "refresh_token" DEVICE_DATA_DEVICES = "devices" DEVICE_DATA_PRODUCT = "product" DEVICE_DATA_FIRMWARE_VERSION = "firmwareVersion" DEVICE_DATA_MODEL_NAME = "modelDisplayName" DEVICE_DATA_ID = "id" ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rehlko/coordinator.py
homeassistant/components/rehlko/coordinator.py
"""The Rehlko coordinator.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta import logging from typing import Any from aiokem import AioKem, CommunicationError from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rehlko/sensor.py
homeassistant/components/rehlko/sensor.py
"""Support for Rehlko sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from ho...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rehlko/__init__.py
homeassistant/components/rehlko/__init__.py
"""The Rehlko integration.""" from __future__ import annotations import logging from aiokem import AioKem, AuthenticationError from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotRe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rehlko/entity.py
homeassistant/components/rehlko/entity.py
"""Base class for Rehlko entities.""" from __future__ import annotations from typing import Any from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rehlko/config_flow.py
homeassistant/components/rehlko/config_flow.py
"""Config flow for Rehlko integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from aiokem import AioKem, AuthenticationError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.cons...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/binary_sensor.py
homeassistant/components/dormakaba_dkey/binary_sensor.py
"""Dormakaba dKey integration binary sensor platform.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from py_dormakaba_dkey.commands import DoorPosition, Notifications, UnlockStatus from homeassistant.components.binary_sensor import ( BinarySensorDev...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/lock.py
homeassistant/components/dormakaba_dkey/lock.py
"""Dormakaba dKey integration lock platform.""" from __future__ import annotations from typing import Any from py_dormakaba_dkey.commands import UnlockStatus from homeassistant.components.lock import LockEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/const.py
homeassistant/components/dormakaba_dkey/const.py
"""Constants for the Dormakaba dKey integration.""" DOMAIN = "dormakaba_dkey" UPDATE_SECONDS = 120 CONF_ASSOCIATION_DATA = "association_data"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/coordinator.py
homeassistant/components/dormakaba_dkey/coordinator.py
"""Coordinator for the Dormakaba dKey integration.""" from __future__ import annotations from datetime import timedelta import logging from py_dormakaba_dkey import DKEYLock from py_dormakaba_dkey.errors import DKEY_EXCEPTIONS, NotAssociated from homeassistant.config_entries import ConfigEntry from homeassistant.co...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/sensor.py
homeassistant/components/dormakaba_dkey/sensor.py
"""Dormakaba dKey integration sensor platform.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import PERCENTAGE from homeassistant.core import HomeAssistant, call...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/__init__.py
homeassistant/components/dormakaba_dkey/__init__.py
"""The Dormakaba dKey integration.""" from __future__ import annotations from py_dormakaba_dkey import DKEYLock from py_dormakaba_dkey.models import AssociationData from homeassistant.components import bluetooth from homeassistant.components.bluetooth.match import ADDRESS, BluetoothCallbackMatcher from homeassistant...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/entity.py
homeassistant/components/dormakaba_dkey/entity.py
"""Dormakaba dKey integration base entity.""" from __future__ import annotations import abc from py_dormakaba_dkey.commands import Notifications from homeassistant.core import callback from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import DeviceInfo from homeassis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dormakaba_dkey/config_flow.py
homeassistant/components/dormakaba_dkey/config_flow.py
"""Config flow for Dormakaba dKey integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from bleak import BleakError from py_dormakaba_dkey import DKEYLock, device_filter, errors as dkey_errors import voluptuous as vol from homeassistant.compone...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false