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/satel_integra/binary_sensor.py
homeassistant/components/satel_integra/binary_sensor.py
"""Support for Satel Integra zone states- represented as binary sensors.""" from __future__ import annotations from satel_integra.satel_integra import AsyncSatel from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.config_entries import Config...
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/satel_integra/const.py
homeassistant/components/satel_integra/const.py
"""Constants for the Satel Integra integration.""" from satel_integra.satel_integra import AsyncSatel from homeassistant.config_entries import ConfigEntry DEFAULT_CONF_ARM_HOME_MODE = 1 DEFAULT_PORT = 7094 DEFAULT_ZONE_TYPE = "motion" DOMAIN = "satel_integra" SUBENTRY_TYPE_PARTITION = "partition" SUBENTRY_TYPE_ZON...
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/satel_integra/__init__.py
homeassistant/components/satel_integra/__init__.py
"""Support for Satel Integra devices.""" import logging from satel_integra.satel_integra import AsyncSatel import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const import ( CONF_CODE, CONF_HOST, CONF_NAME, CONF_PORT, EVENT_HOMEASSISTANT_STOP, Pl...
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/satel_integra/entity.py
homeassistant/components/satel_integra/entity.py
"""Satel Integra base entity.""" from __future__ import annotations from typing import TYPE_CHECKING from satel_integra.satel_integra import AsyncSatel from homeassistant.config_entries import ConfigSubentry from homeassistant.const import CONF_NAME from homeassistant.helpers.device_registry import DeviceInfo 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/satel_integra/alarm_control_panel.py
homeassistant/components/satel_integra/alarm_control_panel.py
"""Support for Satel Integra alarm, using ETHM module.""" from __future__ import annotations import asyncio import logging from satel_integra.satel_integra import AlarmState, AsyncSatel from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPanelEntityFeature, Al...
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/satel_integra/config_flow.py
homeassistant/components/satel_integra/config_flow.py
"""Config flow for Satel Integra.""" from __future__ import annotations import logging from typing import Any from satel_integra.satel_integra import AsyncSatel import voluptuous as vol from homeassistant.components.binary_sensor import BinarySensorDeviceClass from homeassistant.config_entries import ( ConfigEn...
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/refoss/bridge.py
homeassistant/components/refoss/bridge.py
"""Refoss integration.""" from __future__ import annotations from refoss_ha.device import DeviceInfo from refoss_ha.device_manager import async_build_base_device from refoss_ha.discovery import Discovery, Listener 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/refoss/util.py
homeassistant/components/refoss/util.py
"""Refoss helpers functions.""" from __future__ import annotations from refoss_ha.discovery import Discovery from homeassistant.core import HomeAssistant from homeassistant.helpers import singleton @singleton.singleton("refoss_discovery_server") async def refoss_discovery_server(hass: HomeAssistant) -> Discovery: ...
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/refoss/switch.py
homeassistant/components/refoss/switch.py
"""Switch for Refoss.""" from __future__ import annotations from typing import Any from refoss_ha.controller.toggle import ToggleXMix from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistan...
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/refoss/const.py
homeassistant/components/refoss/const.py
"""const.""" from __future__ import annotations from logging import Logger, getLogger _LOGGER: Logger = getLogger(__package__) COORDINATORS = "coordinators" DATA_DISCOVERY_SERVICE = "refoss_discovery" DISCOVERY_SCAN_INTERVAL = 30 DISCOVERY_TIMEOUT = 20 DISPATCH_DEVICE_DISCOVERED = "refoss_device_discovered" 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/refoss/coordinator.py
homeassistant/components/refoss/coordinator.py
"""Helper and coordinator for refoss.""" from __future__ import annotations from datetime import timedelta from refoss_ha.controller.device import BaseDevice from refoss_ha.exceptions import DeviceTimeoutError from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant 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/refoss/sensor.py
homeassistant/components/refoss/sensor.py
"""Support for refoss sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from refoss_ha.controller.electricity import ElectricityXMix from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription,...
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/refoss/__init__.py
homeassistant/components/refoss/__init__.py
"""Refoss devices platform loader.""" from __future__ import annotations from datetime import timedelta from typing import Final from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.event import async_tra...
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/refoss/entity.py
homeassistant/components/refoss/entity.py
"""Entity object for shared properties of Refoss entities.""" from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .bridge import RefossDataUpdateCoordinator from .const import DOMAIN class RefossEntity(Coord...
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/refoss/config_flow.py
homeassistant/components/refoss/config_flow.py
"""Config Flow for Refoss integration.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers import config_entry_flow from .const import _LOGGER, DISCOVERY_TIMEOUT, DOMAIN from .util import refoss_discovery_server async def _async_has_devices(hass: 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/uk_transport/sensor.py
homeassistant/components/uk_transport/sensor.py
"""Support for UK public transport data provided by transportapi.com.""" from __future__ import annotations from datetime import datetime, timedelta from http import HTTPStatus import logging import re from typing import Any import requests import voluptuous as vol from homeassistant.components.sensor 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/uk_transport/__init__.py
homeassistant/components/uk_transport/__init__.py
"""The uk_transport 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/bt_smarthub/device_tracker.py
homeassistant/components/bt_smarthub/device_tracker.py
"""Support for BT Smart Hub (Sometimes referred to as BT Home Hub 6).""" from __future__ import annotations from collections import namedtuple import logging from btsmarthub_devicelist import BTSmartHub import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAI...
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/bt_smarthub/__init__.py
homeassistant/components/bt_smarthub/__init__.py
"""The bt_smarthub 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/synology_dsm/diagnostics.py
homeassistant/components/synology_dsm/diagnostics.py
"""Diagnostics support for Synology DSM.""" from __future__ import annotations from typing import Any from homeassistant.components.camera import diagnostics as camera_diagnostics from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_PASSWORD, CONF_USERNAME 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/synology_dsm/repairs.py
homeassistant/components/synology_dsm/repairs.py
"""Repair flows for the Synology DSM integration.""" from __future__ import annotations from contextlib import suppress import logging from typing import cast from synology_dsm.api.file_station.models import SynoFileSharedFolder import voluptuous as vol from homeassistant import data_entry_flow 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/synology_dsm/common.py
homeassistant/components/synology_dsm/common.py
"""The Synology DSM component.""" from __future__ import annotations import asyncio from collections.abc import Callable from contextlib import suppress import logging from awesomeversion import AwesomeVersion from synology_dsm import SynologyDSM from synology_dsm.api.core.external_usb import SynoCoreExternalUSB 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/synology_dsm/services.py
homeassistant/components/synology_dsm/services.py
"""The Synology DSM component.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, cast from synology_dsm.exceptions import SynologyDSMException from homeassistant.core import HomeAssistant, ServiceCall, callback from .const import CONF_SERIAL, DOMAIN, SERVICE_REBOOT, SERVICE_SHU...
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/synology_dsm/switch.py
homeassistant/components/synology_dsm/switch.py
"""Support for Synology DSM switch.""" from __future__ import annotations from dataclasses import dataclass import logging from typing import TYPE_CHECKING, Any from synology_dsm.api.surveillance_station import SynoSurveillanceStation from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription...
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/synology_dsm/media_source.py
homeassistant/components/synology_dsm/media_source.py
"""Expose Synology DSM as a media source.""" from __future__ import annotations from logging import getLogger import mimetypes from typing import TYPE_CHECKING from aiohttp import web from synology_dsm.api.photos import SynoPhotosAlbum, SynoPhotosItem from synology_dsm.exceptions import SynologyDSMException 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/synology_dsm/binary_sensor.py
homeassistant/components/synology_dsm/binary_sensor.py
"""Support for Synology DSM binary sensors.""" from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING from synology_dsm.api.core.security import SynoCoreSecurity from synology_dsm.api.storage.storage import SynoStorage from homeassistant.components.binary_sensor 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/synology_dsm/camera.py
homeassistant/components/synology_dsm/camera.py
"""Support for Synology DSM cameras.""" from __future__ import annotations from dataclasses import dataclass import logging from typing import TYPE_CHECKING from synology_dsm.api.surveillance_station import SynoCamera, SynoSurveillanceStation from synology_dsm.exceptions import ( SynologyDSMAPIErrorException, ...
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/synology_dsm/const.py
homeassistant/components/synology_dsm/const.py
"""Constants for Synology DSM.""" from __future__ import annotations from collections.abc import Callable from aiohttp import ClientTimeout from synology_dsm.api.surveillance_station.const import SNAPSHOT_PROFILE_BALANCED from synology_dsm.exceptions import ( SynologyDSMAPIErrorException, SynologyDSMLogin2SA...
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/synology_dsm/coordinator.py
homeassistant/components/synology_dsm/coordinator.py
"""synology_dsm coordinators.""" from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine from dataclasses import dataclass from datetime import timedelta import logging from typing import TYPE_CHECKING, Any, Concatenate from synology_dsm.api.surveillance_station.camera import Sy...
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/synology_dsm/update.py
homeassistant/components/synology_dsm/update.py
"""Support for Synology DSM update platform.""" from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING, Final from synology_dsm.api.core.upgrade import SynoCoreUpgrade from yarl import URL from homeassistant.components.update import UpdateEntity, UpdateEntityDescriptio...
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/synology_dsm/sensor.py
homeassistant/components/synology_dsm/sensor.py
"""Support for Synology DSM sensors.""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime, timedelta from typing import TYPE_CHECKING, cast from synology_dsm.api.core.external_usb import ( SynoCoreExternalUSB, SynoCoreExternalUSBDevice, ) from synology_dsm.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/synology_dsm/__init__.py
homeassistant/components/synology_dsm/__init__.py
"""The Synology DSM component.""" from __future__ import annotations from itertools import chain import logging from typing import TYPE_CHECKING from synology_dsm.api.surveillance_station import SynoSurveillanceStation from synology_dsm.api.surveillance_station.camera import SynoCamera from synology_dsm.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/synology_dsm/entity.py
homeassistant/components/synology_dsm/entity.py
"""Entities for Synology DSM.""" from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING, Any from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import Coor...
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/synology_dsm/button.py
homeassistant/components/synology_dsm/button.py
"""Support for Synology DSM buttons.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass import logging from typing import TYPE_CHECKING, Any, Final from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, ButtonEnt...
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/synology_dsm/backup.py
homeassistant/components/synology_dsm/backup.py
"""Support for Synology DSM backup agents.""" from __future__ import annotations from collections.abc import AsyncIterator, Callable, Coroutine import logging from typing import TYPE_CHECKING, Any from aiohttp import StreamReader from synology_dsm.api.file_station import SynoFileStation from synology_dsm.exceptions ...
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/synology_dsm/config_flow.py
homeassistant/components/synology_dsm/config_flow.py
"""Config flow to configure the Synology DSM integration.""" from __future__ import annotations from collections.abc import Mapping from contextlib import suppress from ipaddress import ip_address as ip import logging from typing import TYPE_CHECKING, Any, cast from urllib.parse import urlparse from synology_dsm imp...
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/smud/__init__.py
homeassistant/components/smud/__init__.py
"""Virtual integration: Sacramento Municipal Utility District (SMUD)."""
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/onedrive/diagnostics.py
homeassistant/components/onedrive/diagnostics.py
"""Diagnostics support for OneDrive.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_ACCESS_TOKEN, CONF_TOKEN from homeassistant.core import HomeAssistant from .coordin...
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/onedrive/application_credentials.py
homeassistant/components/onedrive/application_credentials.py
"""Application credentials platform for the OneDrive integration.""" 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) -> 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/onedrive/services.py
homeassistant/components/onedrive/services.py
"""OneDrive services.""" from __future__ import annotations import asyncio from dataclasses import asdict from pathlib import Path from typing import cast from onedrive_personal_sdk.exceptions import OneDriveException import voluptuous as vol from homeassistant.const import CONF_FILENAME from homeassistant.core imp...
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/onedrive/const.py
homeassistant/components/onedrive/const.py
"""Constants for the OneDrive integration.""" from collections.abc import Callable from typing import Final from homeassistant.util.hass_dict import HassKey DOMAIN: Final = "onedrive" CONF_FOLDER_NAME: Final = "folder_name" CONF_FOLDER_ID: Final = "folder_id" CONF_DELETE_PERMANENTLY: Final = "delete_permanently" #...
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/onedrive/coordinator.py
homeassistant/components/onedrive/coordinator.py
"""Coordinator for OneDrive.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from datetime import timedelta import logging from onedrive_personal_sdk import OneDriveClient from onedrive_personal_sdk.const import DriveState from onedrive_personal...
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/onedrive/sensor.py
homeassistant/components/onedrive/sensor.py
"""Sensors for OneDrive.""" from collections.abc import Callable from dataclasses import dataclass from onedrive_personal_sdk.const import DriveState from onedrive_personal_sdk.models.items import DriveQuota from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescri...
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/onedrive/__init__.py
homeassistant/components/onedrive/__init__.py
"""The OneDrive integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable from html import unescape from json import dumps, loads import logging from typing import cast from onedrive_personal_sdk import OneDriveClient from onedrive_personal_sdk.exceptions import ( Authent...
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/onedrive/backup.py
homeassistant/components/onedrive/backup.py
"""Support for OneDrive backup.""" from __future__ import annotations from collections.abc import AsyncIterator, Callable, Coroutine from dataclasses import dataclass from functools import wraps from html import unescape from json import dumps, loads import logging from time import time from typing import Any, Concat...
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/onedrive/config_flow.py
homeassistant/components/onedrive/config_flow.py
"""Config flow for OneDrive.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any, cast from onedrive_personal_sdk.clients.client import OneDriveClient from onedrive_personal_sdk.exceptions import OneDriveException from onedrive_personal_sdk.models.items imp...
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/isal/__init__.py
homeassistant/components/isal/__init__.py
"""The isal integration.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType DOMAIN = "isal" CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN) async def async_setup(hass: HomeA...
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/rova/const.py
homeassistant/components/rova/const.py
"""Const file for Rova.""" import logging LOGGER = logging.getLogger(__package__) DEFAULT_NAME = "Rova" CONF_ZIP_CODE = "zip_code" CONF_HOUSE_NUMBER = "house_number" CONF_HOUSE_NUMBER_SUFFIX = "house_number_suffix" DOMAIN = "rova"
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/rova/coordinator.py
homeassistant/components/rova/coordinator.py
"""Coordinator for Rova.""" from datetime import datetime, timedelta from rova.rova import Rova from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from homeassistant.util.dt import get_time_zone ...
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/rova/sensor.py
homeassistant/components/rova/sensor.py
"""Support for Rova garbage calendar.""" from __future__ import annotations from datetime import datetime from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import 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/rova/__init__.py
homeassistant/components/rova/__init__.py
"""The rova component.""" from __future__ import annotations from requests.exceptions import ConnectTimeout, HTTPError from rova.rova import Rova from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions 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/rova/config_flow.py
homeassistant/components/rova/config_flow.py
"""Config flow for the Rova platform.""" from typing import Any from requests.exceptions import ConnectTimeout, HTTPError from rova.rova import Rova import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import CONF_HOUSE_NUMBER, CONF_HOUSE_NUMBER_SUFFIX, CONF_ZIP...
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/keyboard_remote/__init__.py
homeassistant/components/keyboard_remote/__init__.py
"""Receive signals from a keyboard and use it as a remote control.""" from __future__ import annotations import asyncio from contextlib import suppress import logging import os from typing import Any from asyncinotify import Inotify, Mask from evdev import InputDevice, categorize, ecodes, list_devices import voluptu...
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/hddtemp/sensor.py
homeassistant/components/hddtemp/sensor.py
"""Support for getting the disk temperature of a host.""" from __future__ import annotations from datetime import timedelta import logging import socket from typing import Any from telnetlib import Telnet # pylint: disable=deprecated-module import voluptuous as vol from homeassistant.components.sensor 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/hddtemp/__init__.py
homeassistant/components/hddtemp/__init__.py
"""The hddtemp 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/inkbird/const.py
homeassistant/components/inkbird/const.py
"""Constants for the INKBIRD Bluetooth integration.""" DOMAIN = "inkbird" CONF_DEVICE_TYPE = "device_type" CONF_DEVICE_DATA = "device_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/inkbird/coordinator.py
homeassistant/components/inkbird/coordinator.py
"""The INKBIRD Bluetooth integration.""" from __future__ import annotations from datetime import datetime, timedelta import logging from typing import Any from inkbird_ble import INKBIRDBluetoothDeviceData, SensorUpdate from homeassistant.components.bluetooth import ( BluetoothScanningMode, BluetoothService...
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/inkbird/sensor.py
homeassistant/components/inkbird/sensor.py
"""Support for inkbird ble sensors.""" from __future__ import annotations from inkbird_ble import DeviceClass, DeviceKey, SensorUpdate, Units from homeassistant.components.bluetooth.passive_update_processor import ( PassiveBluetoothDataProcessor, PassiveBluetoothDataUpdate, PassiveBluetoothEntityKey, ...
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/inkbird/__init__.py
homeassistant/components/inkbird/__init__.py
"""The INKBIRD Bluetooth integration.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .const import CONF_DEVICE_DATA, CONF_DEVICE_TYPE from .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/inkbird/config_flow.py
homeassistant/components/inkbird/config_flow.py
"""Config flow for inkbird ble integration.""" from __future__ import annotations from typing import Any from inkbird_ble import INKBIRDBluetoothDeviceData as DeviceData import voluptuous as vol from homeassistant.components.bluetooth import ( BluetoothServiceInfoBleak, async_discovered_service_info, ) 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/rhasspy/const.py
homeassistant/components/rhasspy/const.py
"""Constants for the Rhasspy integration.""" DOMAIN = "rhasspy"
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/rhasspy/__init__.py
homeassistant/components/rhasspy/__init__.py
"""The Rhasspy integration.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Rhasspy from a config entry.""" return True async def ...
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/rhasspy/config_flow.py
homeassistant/components/rhasspy/config_flow.py
"""Config flow for Rhasspy integration.""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import DOMAIN class RhasspyConfigFlow(ConfigFlow, domain=DOMAIN): """Handle a config flow for Rhasspy...
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/hue/event.py
homeassistant/components/hue/event.py
"""Hue event entities from Button resources.""" from __future__ import annotations from typing import Any from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.events import EventType from aiohue.v2.models.bell_button import BellButton from aiohue.v2.models.button import Button from aiohue.v2.models.relative_...
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/hue/device_trigger.py
homeassistant/components/hue/device_trigger.py
"""Provides device automations for Philips Hue events.""" from __future__ import annotations from typing import TYPE_CHECKING, Any from homeassistant.components.device_automation import InvalidDeviceAutomationConfig from homeassistant.const import CONF_DEVICE_ID from homeassistant.core import CALLBACK_TYPE 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/hue/diagnostics.py
homeassistant/components/hue/diagnostics.py
"""Diagnostics support for Hue.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from .bridge import HueConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: HueConfigEntry ) -> dict[str, Any]: """Return diagnostics 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/hue/bridge.py
homeassistant/components/hue/bridge.py
"""Code to handle a Hue bridge.""" from __future__ import annotations import asyncio from collections.abc import Callable import logging from typing import Any import aiohttp from aiohttp import client_exceptions from aiohue import HueBridgeV1, HueBridgeV2, LinkButtonNotPressed, Unauthorized from aiohue.errors impor...
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/hue/services.py
homeassistant/components/hue/services.py
"""Handle Hue Service calls.""" from __future__ import annotations import asyncio import logging from aiohue import HueBridgeV1, HueBridgeV2 import voluptuous as vol from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.helpers import config_validation as cv from homeassistant.helpe...
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/hue/switch.py
homeassistant/components/hue/switch.py
"""Support for switch platform for Hue resources (V2 only).""" from __future__ import annotations from typing import Any from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.config import BehaviorInstance, BehaviorInstanceController from aiohue.v2.controllers.events import EventType from aiohue.v2.controller...
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/hue/binary_sensor.py
homeassistant/components/hue/binary_sensor.py
"""Support for Hue binary sensors.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from .bridge import HueConfigEntry from .v1.binary_sensor import async_setup_entry as setup_entry_v1 from .v2.binary_s...
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/hue/const.py
homeassistant/components/hue/const.py
"""Constants for the Hue component.""" from aiohue.v2.models.button import ButtonEvent from aiohue.v2.models.relative_rotary import ( RelativeRotaryAction, RelativeRotaryDirection, ) DOMAIN = "hue" CONF_IGNORE_AVAILABILITY = "ignore_availability" CONF_SUBTYPE = "subtype" ATTR_HUE_EVENT = "hue_event" SERVIC...
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/hue/migration.py
homeassistant/components/hue/migration.py
"""Various helpers to handle config entry and api schema migrations.""" import logging from aiohue import HueBridgeV2 from aiohue.discovery import is_v2_bridge from aiohue.v2.models.device import DeviceArchetypes from aiohue.v2.models.resource import ResourceTypes from homeassistant import core 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/hue/errors.py
homeassistant/components/hue/errors.py
"""Errors for the Hue component.""" from homeassistant.exceptions import HomeAssistantError class HueException(HomeAssistantError): """Base class for Hue exceptions.""" class CannotConnect(HueException): """Unable to connect to the bridge.""" class AuthenticationRequired(HueException): """Unknown err...
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/hue/sensor.py
homeassistant/components/hue/sensor.py
"""Support for Hue sensors.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from .bridge import HueConfigEntry from .v1.sensor import async_setup_entry as setup_entry_v1 from .v2.sensor import async_se...
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/hue/__init__.py
homeassistant/components/hue/__init__.py
"""Support for the Philips Hue system.""" from aiohue.util import normalize_bridge_id from homeassistant.components import persistent_notification from homeassistant.config_entries import SOURCE_IGNORE from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv, device_regis...
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/hue/scene.py
homeassistant/components/hue/scene.py
"""Support for scene platform for Hue scenes (V2 only).""" from __future__ import annotations from typing import Any from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.events import EventType from aiohue.v2.controllers.scenes import ScenesController from aiohue.v2.models.scene import Scene as HueScene, Sce...
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/hue/light.py
homeassistant/components/hue/light.py
"""Support for Hue lights.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from .bridge import HueConfigEntry from .v1.light import async_setup_entry as setup_entry_v1 from .v2.group import async_setup...
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/hue/config_flow.py
homeassistant/components/hue/config_flow.py
"""Config flow to configure Philips Hue.""" from __future__ import annotations import asyncio import logging from typing import Any import aiohttp from aiohue import LinkButtonNotPressed, create_app_key from aiohue.discovery import DiscoveredHueBridge, discover_bridge, discover_nupnp from aiohue.errors import Aiohue...
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/hue/v1/sensor_base.py
homeassistant/components/hue/v1/sensor_base.py
"""Support for the Philips Hue sensors as a platform.""" from __future__ import annotations import asyncio from datetime import timedelta import logging from typing import Any from aiohue import AiohueException, Unauthorized from aiohue.v1.sensors import TYPE_ZLL_PRESENCE from homeassistant.components.sensor 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/hue/v1/device_trigger.py
homeassistant/components/hue/v1/device_trigger.py
"""Provides device automations for Philips Hue events in V1 bridge/api.""" from __future__ import annotations from typing import TYPE_CHECKING import voluptuous as vol from homeassistant.components.device_automation import ( DEVICE_TRIGGER_BASE_SCHEMA, InvalidDeviceAutomationConfig, ) from homeassistant.com...
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/hue/v1/hue_event.py
homeassistant/components/hue/v1/hue_event.py
"""Representation of a Hue remote firing events for button presses.""" import logging from aiohue.v1.sensors import ( EVENT_BUTTON, TYPE_ZGP_SWITCH, TYPE_ZLL_ROTARY, TYPE_ZLL_SWITCH, ) from homeassistant.const import CONF_DEVICE_ID, CONF_EVENT, CONF_ID, CONF_UNIQUE_ID from homeassistant.core import 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/hue/v1/sensor_device.py
homeassistant/components/hue/v1/sensor_device.py
"""Support for the Philips Hue sensor devices.""" from homeassistant.helpers import entity from homeassistant.helpers.device_registry import DeviceInfo from ..const import CONF_ALLOW_UNREACHABLE, DEFAULT_ALLOW_UNREACHABLE, DOMAIN class GenericHueDevice(entity.Entity): # pylint: disable=hass-enforce-class-module ...
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/hue/v1/binary_sensor.py
homeassistant/components/hue/v1/binary_sensor.py
"""Hue binary sensor entities.""" from aiohue.v1.sensors import TYPE_ZLL_PRESENCE from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback 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/hue/v1/helpers.py
homeassistant/components/hue/v1/helpers.py
"""Helper functions for Philips Hue.""" from homeassistant.helpers import device_registry as dr, entity_registry as er from ..const import DOMAIN async def remove_devices(bridge, api_ids, current): """Get items that are removed from api.""" removed_items = [] for item_id in current: if item_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/hue/v1/sensor.py
homeassistant/components/hue/v1/sensor.py
"""Hue sensor entities.""" from aiohue.v1.sensors import ( TYPE_ZLL_LIGHTLEVEL, TYPE_ZLL_ROTARY, TYPE_ZLL_SWITCH, TYPE_ZLL_TEMPERATURE, ) from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorStateClass, ) from homeassistant.const import LIGHT_LUX, PERCENTAGE...
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/hue/v1/__init__.py
homeassistant/components/hue/v1/__init__.py
"""Hue V1 API specific platform implementation."""
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/hue/v1/light.py
homeassistant/components/hue/v1/light.py
"""Support for the Philips Hue lights.""" from __future__ import annotations import asyncio from datetime import timedelta from functools import partial import logging import random import aiohue from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ATTR_EFFECT, ATTR_...
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/hue/v2/device_trigger.py
homeassistant/components/hue/v2/device_trigger.py
"""Provides device automations for Philips Hue events.""" from __future__ import annotations from typing import TYPE_CHECKING, Any from aiohue.v2.models.resource import ResourceTypes import voluptuous as vol from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA 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/hue/v2/hue_event.py
homeassistant/components/hue/v2/hue_event.py
"""Handle forward of events transmitted by Hue devices to HASS.""" from __future__ import annotations import logging from typing import TYPE_CHECKING from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.events import EventType from aiohue.v2.models.button import Button from aiohue.v2.models.relative_rotary 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/hue/v2/binary_sensor.py
homeassistant/components/hue/v2/binary_sensor.py
"""Support for Hue binary sensors.""" from __future__ import annotations from functools import partial from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.config import ( EntertainmentConfiguration, EntertainmentConfigurationController, ) from aiohue.v2.controllers.events import EventType from aiohu...
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/hue/v2/helpers.py
homeassistant/components/hue/v2/helpers.py
"""Helper functions for Philips Hue v2.""" from __future__ import annotations from homeassistant.util import color as color_util def normalize_hue_brightness(brightness: float | None) -> float | None: """Return calculated brightness values.""" if brightness is not None: # Hue uses a range of [0, 100...
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/hue/v2/sensor.py
homeassistant/components/hue/v2/sensor.py
"""Support for Hue sensors.""" from __future__ import annotations from functools import partial from typing import Any from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.events import EventType from aiohue.v2.controllers.sensors import ( DevicePowerController, GroupedLightLevelController, 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/hue/v2/group.py
homeassistant/components/hue/v2/group.py
"""Support for Hue groups (room/zone).""" from __future__ import annotations import asyncio from typing import Any from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.events import EventType from aiohue.v2.controllers.groups import GroupedLight, Room, Zone from aiohue.v2.models.feature import DynamicStatus ...
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/hue/v2/__init__.py
homeassistant/components/hue/v2/__init__.py
"""Hue V2 API specific platform implementation."""
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/hue/v2/entity.py
homeassistant/components/hue/v2/entity.py
"""Generic Hue Entity Model.""" from __future__ import annotations from typing import TYPE_CHECKING from aiohue.v2.controllers.base import BaseResourcesController from aiohue.v2.controllers.events import EventType from aiohue.v2.models.resource import ResourceTypes from aiohue.v2.models.zigbee_connectivity import 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/hue/v2/device.py
homeassistant/components/hue/v2/device.py
"""Handles Hue resource of type `device` mapping to Home Assistant device.""" from __future__ import annotations from typing import TYPE_CHECKING from aiohue.v2 import HueBridgeV2 from aiohue.v2.controllers.events import EventType from aiohue.v2.controllers.groups import Room, Zone from aiohue.v2.models.device impor...
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/hue/v2/light.py
homeassistant/components/hue/v2/light.py
"""Support for Hue lights.""" from __future__ import annotations from functools import partial from typing import Any from aiohue import HueBridgeV2 from aiohue.v2.controllers.events import EventType from aiohue.v2.controllers.lights import LightsController from aiohue.v2.models.feature import EffectStatus, TimedEff...
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/emoncms/const.py
homeassistant/components/emoncms/const.py
"""Constants for the emoncms integration.""" import logging CONF_ONLY_INCLUDE_FEEDID = "include_only_feed_id" CONF_MESSAGE = "message" CONF_SUCCESS = "success" DOMAIN = "emoncms" EMONCMS_UUID_DOC_URL = ( "https://docs.openenergymonitor.org/emoncms/update.html" "#upgrading-to-a-version-producing-a-unique-ident...
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/emoncms/coordinator.py
homeassistant/components/emoncms/coordinator.py
"""DataUpdateCoordinator for the emoncms integration.""" from datetime import timedelta from typing import Any from pyemoncms import EmoncmsClient from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinat...
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/emoncms/sensor.py
homeassistant/components/emoncms/sensor.py
"""Support for monitoring emoncms feeds.""" from __future__ import annotations from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( CONCENTRATION_MICROGRAMS_PER_CUBIC_ME...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false