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/http/static.py
homeassistant/components/http/static.py
"""Static file handling for HTTP component.""" from __future__ import annotations from collections.abc import Mapping from pathlib import Path from typing import Final from aiohttp.hdrs import CACHE_CONTROL, CONTENT_TYPE from aiohttp.web import FileResponse, Request, StreamResponse from aiohttp.web_fileresponse 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/http/auth.py
homeassistant/components/http/auth.py
"""Authentication for HTTP component.""" from __future__ import annotations from collections.abc import Awaitable, Callable from datetime import timedelta from ipaddress import ip_address import logging import secrets import time from typing import Any, Final from aiohttp import hdrs from aiohttp.web import Applicat...
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/palazzetti/diagnostics.py
homeassistant/components/palazzetti/diagnostics.py
"""Provides diagnostics for Palazzetti.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from .coordinator import PalazzettiConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: PalazzettiConfigEntry ) -> dict[str, Any]: ...
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/palazzetti/number.py
homeassistant/components/palazzetti/number.py
"""Number platform for Palazzetti settings.""" from __future__ import annotations from pypalazzetti.exceptions import CommunicationError, ValidationError from pypalazzetti.fan import FanType from homeassistant.components.number import NumberDeviceClass, NumberEntity 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/palazzetti/const.py
homeassistant/components/palazzetti/const.py
"""Constants for the Palazzetti integration.""" from datetime import timedelta import logging from typing import Final from homeassistant.helpers.typing import StateType DOMAIN: Final = "palazzetti" PALAZZETTI: Final = "Palazzetti" LOGGER = logging.getLogger(__package__) SCAN_INTERVAL = timedelta(seconds=30) ON_OFF_...
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/palazzetti/coordinator.py
homeassistant/components/palazzetti/coordinator.py
"""Helpers to help coordinate updates.""" from pypalazzetti.client import PalazzettiClient from pypalazzetti.exceptions import CommunicationError, ValidationError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST from homeassistant.core import HomeAssistant from 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/palazzetti/sensor.py
homeassistant/components/palazzetti/sensor.py
"""Support for Palazzetti sensors.""" from dataclasses import dataclass from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import UnitOfLength, UnitOfMass, UnitOfTemperature from homeassistant.core 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/palazzetti/__init__.py
homeassistant/components/palazzetti/__init__.py
"""The Palazzetti integration.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import PalazzettiConfigEntry, PalazzettiDataUpdateCoordinator PLATFORMS: list[Platform] = [ Platform.BUTTON, Platform.CLIMATE, Plat...
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/palazzetti/entity.py
homeassistant/components/palazzetti/entity.py
"""Base class for Palazzetti entities.""" from homeassistant.helpers import device_registry as dr from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import PALAZZETTI from .coordinator import PalazzettiDataUpdateCoordinator class PalazzettiEntity(CoordinatorEntity[PalazzettiDataUpdat...
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/palazzetti/button.py
homeassistant/components/palazzetti/button.py
"""Support for Palazzetti buttons.""" from __future__ import annotations from pypalazzetti.exceptions import CommunicationError from homeassistant.components.button import ButtonEntity from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.enti...
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/palazzetti/climate.py
homeassistant/components/palazzetti/climate.py
"""Support for Palazzetti climates.""" from typing import Any from pypalazzetti.exceptions import CommunicationError, ValidationError from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, HVACAction, HVACMode, ) from homeassistant.const import ATTR_TEMPERATURE, UnitOfTem...
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/palazzetti/config_flow.py
homeassistant/components/palazzetti/config_flow.py
"""Config flow for Palazzetti.""" from typing import Any from pypalazzetti.client import PalazzettiClient from pypalazzetti.exceptions import CommunicationError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST 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/energyid/energyid_sensor_mapping_flow.py
homeassistant/components/energyid/energyid_sensor_mapping_flow.py
"""Subentry flow for EnergyID integration, handling sensor mapping management.""" import logging from typing import Any import voluptuous as vol from homeassistant.components.sensor import SensorDeviceClass, SensorStateClass from homeassistant.config_entries import ConfigSubentryFlow, SubentryFlowResult from homeass...
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/energyid/const.py
homeassistant/components/energyid/const.py
"""Constants for the EnergyID integration.""" from typing import Final DOMAIN: Final = "energyid" NAME: Final = "EnergyID" # --- Config Flow and Entry Data --- CONF_PROVISIONING_KEY: Final = "provisioning_key" CONF_PROVISIONING_SECRET: Final = "provisioning_secret" CONF_DEVICE_ID: Final = "device_id" CONF_DEVICE_NAM...
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/energyid/__init__.py
homeassistant/components/energyid/__init__.py
"""The EnergyID integration.""" from __future__ import annotations from dataclasses import dataclass import datetime as dt from datetime import timedelta import functools import logging from aiohttp import ClientError, ClientResponseError from energyid_webhooks.client_v2 import WebhookClient from homeassistant.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/energyid/config_flow.py
homeassistant/components/energyid/config_flow.py
"""Config flow for EnergyID integration.""" import asyncio from collections.abc import Mapping import logging from typing import Any from aiohttp import ClientError, ClientResponseError from energyid_webhooks.client_v2 import WebhookClient import voluptuous as vol from homeassistant.config_entries import ( Confi...
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/broadlink/switch.py
homeassistant/components/broadlink/switch.py
"""Support for Broadlink switches.""" from __future__ import annotations from abc import ABC, abstractmethod import logging from typing import Any from broadlink.exceptions import BroadlinkException import voluptuous as vol from homeassistant.components.switch import ( PLATFORM_SCHEMA as SWITCH_PLATFORM_SCHEMA,...
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/broadlink/const.py
homeassistant/components/broadlink/const.py
"""Constants.""" from homeassistant.const import Platform DOMAIN = "broadlink" DOMAINS_AND_TYPES = { Platform.CLIMATE: {"HYS"}, Platform.LIGHT: {"LB1", "LB2"}, Platform.REMOTE: {"RM4MINI", "RM4PRO", "RMMINI", "RMMINIB", "RMPRO"}, Platform.SELECT: {"HYS"}, Platform.SENSOR: { "A1", ...
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/broadlink/time.py
homeassistant/components/broadlink/time.py
"""Support for Broadlink device time.""" from __future__ import annotations from datetime import time from typing import Any from homeassistant.components.time import TimeEntity from homeassistant.config_entries import ConfigEntry 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/broadlink/helpers.py
homeassistant/components/broadlink/helpers.py
"""Helper functions for the Broadlink integration.""" from base64 import b64decode from homeassistant import config_entries from homeassistant.const import CONF_HOST from homeassistant.helpers import config_validation as cv from .const import DOMAIN def data_packet(value): """Decode a data packet given for a 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/broadlink/heartbeat.py
homeassistant/components/broadlink/heartbeat.py
"""Heartbeats for Broadlink devices.""" import datetime as dt import logging import broadlink as blk from homeassistant.const import CONF_HOST from homeassistant.core import CALLBACK_TYPE, HomeAssistant from homeassistant.helpers import event from .const import DOMAIN _LOGGER = logging.getLogger(__name__) class ...
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/broadlink/sensor.py
homeassistant/components/broadlink/sensor.py
"""Support for Broadlink sensors.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONCENTRATION_M...
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/broadlink/__init__.py
homeassistant/components/broadlink/__init__.py
"""The Broadlink integration.""" from __future__ import annotations from dataclasses import dataclass, field from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType ...
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/broadlink/remote.py
homeassistant/components/broadlink/remote.py
"""Support for Broadlink remotes.""" import asyncio from base64 import b64encode from collections import defaultdict from collections.abc import Iterable from datetime import timedelta from itertools import product import logging from typing import Any from broadlink.exceptions import ( AuthorizationError, Br...
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/broadlink/entity.py
homeassistant/components/broadlink/entity.py
"""Broadlink entities.""" from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const import DOMAIN class BroadlinkEntity(Entity): """Representation of a Broadlink entity.""" _attr_should_po...
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/broadlink/select.py
homeassistant/components/broadlink/select.py
"""Support for Broadlink selects.""" from __future__ import annotations from typing import Any from homeassistant.components.select import SelectEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEnt...
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/broadlink/updater.py
homeassistant/components/broadlink/updater.py
"""Support for fetching data from Broadlink devices.""" from __future__ import annotations from abc import ABC, abstractmethod from datetime import datetime, timedelta import logging from typing import TYPE_CHECKING, Any, Generic, TypeVar import broadlink as blk from broadlink.exceptions import AuthorizationError, 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/broadlink/climate.py
homeassistant/components/broadlink/climate.py
"""Support for Broadlink climate devices.""" from enum import IntEnum from typing import Any from homeassistant.components.climate import ( ATTR_TEMPERATURE, ClimateEntity, ClimateEntityFeature, HVACAction, HVACMode, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const 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/broadlink/device.py
homeassistant/components/broadlink/device.py
"""Support for Broadlink devices.""" from contextlib import suppress from functools import partial import logging import broadlink as blk from broadlink.exceptions import ( AuthenticationError, AuthorizationError, BroadlinkException, ConnectionClosedError, NetworkTimeoutError, ) 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/broadlink/light.py
homeassistant/components/broadlink/light.py
"""Support for Broadlink lights.""" import logging from typing import Any from broadlink.exceptions import BroadlinkException from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ATTR_HS_COLOR, ColorMode, LightEntity, ) from homeassistant.config_entries import Con...
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/broadlink/config_flow.py
homeassistant/components/broadlink/config_flow.py
"""Config flow for Broadlink devices.""" from collections.abc import Mapping import errno from functools import partial import logging import socket from typing import Any import broadlink as blk from broadlink.exceptions import ( AuthenticationError, BroadlinkException, NetworkTimeoutError, ) import volu...
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/sql/util.py
homeassistant/components/sql/util.py
"""Utils for sql.""" from __future__ import annotations from datetime import date from decimal import Decimal import logging from typing import Any import sqlalchemy from sqlalchemy import lambda_stmt from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.orm import Session, scoped_session, sessionmaker from sql...
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/sql/services.py
homeassistant/components/sql/services.py
"""Services for the SQL integration.""" from __future__ import annotations import logging from sqlalchemy.engine import Result from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.orm import Session import voluptuous as vol from homeassistant.components.recorder import CONF_DB_URL, get_instance 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/sql/models.py
homeassistant/components/sql/models.py
"""The sql integration models.""" from __future__ import annotations from dataclasses import dataclass from sqlalchemy.orm import scoped_session from homeassistant.core import CALLBACK_TYPE @dataclass(slots=True) class SQLData: """Data for the sql integration.""" shutdown_event_cancel: CALLBACK_TYPE ...
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/sql/const.py
homeassistant/components/sql/const.py
"""Adds constants for SQL integration.""" import re from homeassistant.const import Platform DOMAIN = "sql" PLATFORMS = [Platform.SENSOR] CONF_COLUMN_NAME = "column" CONF_QUERY = "query" CONF_ADVANCED_OPTIONS = "advanced_options" DB_URL_RE = re.compile("//.*:.*@")
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/sql/sensor.py
homeassistant/components/sql/sensor.py
"""Sensor from an SQL Query.""" from __future__ import annotations import logging from typing import Any from sqlalchemy.engine import Result from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.orm import scoped_session from homeassistant.components.recorder import CONF_DB_URL, get_instance 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/sql/__init__.py
homeassistant/components/sql/__init__.py
"""The sql component.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.components.recorder import CONF_DB_URL, get_instance from homeassistant.components.sensor import ( CONF_STATE_CLASS, DEVICE_CLASSES_SCHEMA, STATE_CLASSES_SCHEMA, ...
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/sql/config_flow.py
homeassistant/components/sql/config_flow.py
"""Adds config flow for SQL integration.""" from __future__ import annotations import logging from typing import Any import sqlalchemy from sqlalchemy.engine import Engine, Result from sqlalchemy.exc import MultipleResultsFound, NoSuchColumnError, SQLAlchemyError from sqlalchemy.orm import Session, scoped_session, 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/braviatv/media_player.py
homeassistant/components/braviatv/media_player.py
"""Media player support for Bravia TV integration.""" from __future__ import annotations from datetime import datetime from typing import Any from homeassistant.components.media_player import ( BrowseError, BrowseMedia, MediaClass, MediaPlayerDeviceClass, MediaPlayerEntity, MediaPlayerEntityF...
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/braviatv/diagnostics.py
homeassistant/components/braviatv/diagnostics.py
"""Diagnostics support for BraviaTV.""" from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_MAC, CONF_PIN from homeassistant.core import HomeAssistant from .coordinator import BraviaTVConfigEntry TO_REDACT = {CONF_MAC, CONF_PIN, "macAddr"} ...
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/braviatv/const.py
homeassistant/components/braviatv/const.py
"""Constants for Bravia TV integration.""" from __future__ import annotations from enum import StrEnum from typing import Final ATTR_CID: Final = "cid" ATTR_MAC: Final = "macAddr" ATTR_MANUFACTURER: Final = "Sony" ATTR_MODEL: Final = "model" CONF_NICKNAME: Final = "nickname" CONF_USE_PSK: Final = "use_psk" DOMAIN:...
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/braviatv/coordinator.py
homeassistant/components/braviatv/coordinator.py
"""Update coordinator for Bravia TV integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine, Iterable from datetime import datetime, timedelta from functools import wraps import logging from typing import Any, Concatenate, Final from pybravia import ( BraviaA...
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/braviatv/__init__.py
homeassistant/components/braviatv/__init__.py
"""The Bravia TV integration.""" from __future__ import annotations from typing import Final from aiohttp import CookieJar from pybravia import BraviaClient from homeassistant.const import CONF_HOST, CONF_MAC, 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/braviatv/remote.py
homeassistant/components/braviatv/remote.py
"""Remote control support for Bravia TV.""" from __future__ import annotations from collections.abc import Iterable from typing import Any from homeassistant.components.remote import ATTR_NUM_REPEATS, RemoteEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfi...
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/braviatv/entity.py
homeassistant/components/braviatv/entity.py
"""A entity class for Bravia TV integration.""" from typing import TYPE_CHECKING from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ATTR_MANUFACTURER, DOMAIN from .coordinator import BraviaTVCo...
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/braviatv/button.py
homeassistant/components/braviatv/button.py
"""Button support for Bravia TV.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, ButtonEntityDescription, ) from homeassistant.const import EntityCategory...
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/braviatv/config_flow.py
homeassistant/components/braviatv/config_flow.py
"""Config flow to configure the Bravia TV integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, cast from urllib.parse import urlparse from aiohttp import CookieJar from pybravia import BraviaAuthError, BraviaClient, BraviaError, BraviaNotSupported import volu...
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/travisci/sensor.py
homeassistant/components/travisci/sensor.py
"""Component providing HA sensor support for Travis CI framework.""" from __future__ import annotations from datetime import timedelta import logging from travispy import TravisPy from travispy.errors import TravisError import voluptuous as vol from homeassistant.components import persistent_notification from 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/travisci/__init__.py
homeassistant/components/travisci/__init__.py
"""The travisci 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/system_log/__init__.py
homeassistant/components/system_log/__init__.py
"""Support for system log.""" from __future__ import annotations from collections import OrderedDict, deque import logging import re import sys import traceback from types import FrameType from typing import Any, cast import voluptuous as vol from homeassistant import __path__ as HOMEASSISTANT_PATH 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/homematicip_cloud/weather.py
homeassistant/components/homematicip_cloud/weather.py
"""Support for HomematicIP Cloud weather devices.""" from __future__ import annotations from homematicip.base.enums import WeatherCondition from homematicip.device import WeatherSensor, WeatherSensorPlus, WeatherSensorPro from homeassistant.components.weather import ( ATTR_CONDITION_CLOUDY, ATTR_CONDITION_FO...
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/homematicip_cloud/event.py
homeassistant/components/homematicip_cloud/event.py
"""Support for HomematicIP Cloud events.""" from collections.abc import Callable from dataclasses import dataclass from typing import TYPE_CHECKING from homematicip.base.channel_event import ChannelEvent from homematicip.base.functionalChannels import FunctionalChannel from homematicip.device import Device 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/homematicip_cloud/hap.py
homeassistant/components/homematicip_cloud/hap.py
"""Access point for the HomematicIP Cloud component.""" from __future__ import annotations import asyncio from collections.abc import Callable import logging from typing import Any from homematicip.async_home import AsyncHome from homematicip.auth import Auth from homematicip.base.enums import EventType from homemat...
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/homematicip_cloud/cover.py
homeassistant/components/homematicip_cloud/cover.py
"""Support for HomematicIP Cloud cover devices.""" from __future__ import annotations from typing import Any from homematicip.base.enums import DoorCommand, DoorState from homematicip.device import ( BlindModule, DinRailBlind4, FullFlushBlind, FullFlushShutter, GarageDoorModuleTormatic, Hoerm...
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/homematicip_cloud/services.py
homeassistant/components/homematicip_cloud/services.py
"""Support for HomematicIP Cloud devices.""" from __future__ import annotations import logging from pathlib import Path from homematicip.async_home import AsyncHome from homematicip.base.helpers import handle_config from homematicip.device import SwitchMeasuring from homematicip.group import HeatingGroup import volu...
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/homematicip_cloud/valve.py
homeassistant/components/homematicip_cloud/valve.py
"""Support for HomematicIP Cloud valve devices.""" from homematicip.base.functionalChannels import FunctionalChannelType from homematicip.device import Device from homeassistant.components.valve import ( ValveDeviceClass, ValveEntity, ValveEntityFeature, ) 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/homematicip_cloud/switch.py
homeassistant/components/homematicip_cloud/switch.py
"""Support for HomematicIP Cloud switches.""" from __future__ import annotations from typing import Any from homematicip.base.enums import DeviceType, FunctionalChannelType from homematicip.device import ( BrandSwitch2, DinRailSwitch, DinRailSwitch4, FullFlushInputSwitch, HeatingSwitch2, Moti...
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/homematicip_cloud/binary_sensor.py
homeassistant/components/homematicip_cloud/binary_sensor.py
"""Support for HomematicIP Cloud binary sensor.""" from __future__ import annotations from typing import Any from homematicip.base.enums import SmokeDetectorAlarmType, WindowState from homematicip.base.functionalChannels import MultiModeInputChannel from homematicip.device import ( AccelerationSensor, Contac...
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/homematicip_cloud/lock.py
homeassistant/components/homematicip_cloud/lock.py
"""Support for HomematicIP Cloud lock devices.""" from __future__ import annotations import logging from typing import Any from homematicip.base.enums import LockState, MotorState from homematicip.device import DoorLockDrive from homeassistant.components.lock import LockEntity, LockEntityFeature 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/homematicip_cloud/const.py
homeassistant/components/homematicip_cloud/const.py
"""Constants for the HomematicIP Cloud component.""" import logging from homeassistant.const import Platform _LOGGER = logging.getLogger(".") DOMAIN = "homematicip_cloud" PLATFORMS = [ Platform.ALARM_CONTROL_PANEL, Platform.BINARY_SENSOR, Platform.BUTTON, Platform.CLIMATE, Platform.COVER, P...
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/homematicip_cloud/helpers.py
homeassistant/components/homematicip_cloud/helpers.py
"""Helper functions for Homematicip Cloud Integration.""" from __future__ import annotations from collections.abc import Callable, Coroutine from functools import wraps import json import logging from typing import Any, Concatenate, TypeGuard from homematicip.base.enums import FunctionalChannelType from homematicip....
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/homematicip_cloud/errors.py
homeassistant/components/homematicip_cloud/errors.py
"""Errors for the HomematicIP Cloud component.""" from homeassistant.exceptions import HomeAssistantError class HmipcException(HomeAssistantError): """Base class for HomematicIP Cloud exceptions.""" class HmipcConnectionError(HmipcException): """Unable to connect to the HomematicIP Cloud server.""" class...
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/homematicip_cloud/sensor.py
homeassistant/components/homematicip_cloud/sensor.py
"""Support for HomematicIP Cloud sensors.""" from __future__ import annotations from collections.abc import Callable from typing import Any from homematicip.base.enums import FunctionalChannelType, ValveState from homematicip.base.functionalChannels import ( FloorTerminalBlockMechanicChannel, FunctionalChann...
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/homematicip_cloud/__init__.py
homeassistant/components/homematicip_cloud/__init__.py
"""Support for HomematicIP Cloud devices.""" import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_NAME, EVENT_HOMEASSISTANT_STOP from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import ( config_validation as cv, device_registry...
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/homematicip_cloud/entity.py
homeassistant/components/homematicip_cloud/entity.py
"""Generic entity for the HomematicIP Cloud component.""" from __future__ import annotations import contextlib import logging from typing import Any from homematicip.base.functionalChannels import FunctionalChannel from homematicip.device import Device from homematicip.group import Group from homeassistant.const 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/homematicip_cloud/button.py
homeassistant/components/homematicip_cloud/button.py
"""Support for HomematicIP Cloud button devices.""" from __future__ import annotations from homematicip.device import WallMountedGarageDoorController from homeassistant.components.button import ButtonEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryE...
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/homematicip_cloud/alarm_control_panel.py
homeassistant/components/homematicip_cloud/alarm_control_panel.py
"""Support for HomematicIP Cloud alarm control panel.""" from __future__ import annotations import logging from homematicip.functionalHomes import SecurityAndAlarmHome from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPanelEntityFeature, AlarmControlPanelSta...
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/homematicip_cloud/climate.py
homeassistant/components/homematicip_cloud/climate.py
"""Support for HomematicIP Cloud climate devices.""" from __future__ import annotations from typing import Any from homematicip.base.enums import AbsenceType from homematicip.device import ( HeatingThermostat, HeatingThermostatCompact, HeatingThermostatEvo, Switch, ) from homematicip.functionalHomes ...
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/homematicip_cloud/light.py
homeassistant/components/homematicip_cloud/light.py
"""Support for HomematicIP Cloud lights.""" from __future__ import annotations import logging from typing import Any from homematicip.base.enums import ( DeviceType, FunctionalChannelType, OpticalSignalBehaviour, RGBColorState, ) from homematicip.base.functionalChannels import NotificationLightChanne...
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/homematicip_cloud/config_flow.py
homeassistant/components/homematicip_cloud/config_flow.py
"""Config flow to configure the HomematicIP Cloud component.""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import _LOGGER, DOMAIN, HMIPC_AUTHTOKEN, HMIPC_HAPID, HMIPC_NAME, HMIPC_PIN from .hap ...
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_chat/__init__.py
homeassistant/components/synology_chat/__init__.py
"""The synology_chat 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_chat/notify.py
homeassistant/components/synology_chat/notify.py
"""SynologyChat platform for notify component.""" from __future__ import annotations from http import HTTPStatus import json import logging import requests import voluptuous as vol from homeassistant.components.notify import ( ATTR_DATA, PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA, BaseNotificationService...
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/gaviota/__init__.py
homeassistant/components/gaviota/__init__.py
"""Virtual integration: Gaviota."""
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/bizkaibus/sensor.py
homeassistant/components/bizkaibus/sensor.py
"""Support for Bizkaibus, Biscay (Basque Country, Spain) Bus service.""" from __future__ import annotations from contextlib import suppress from bizkaibus.bizkaibus import BizkaibusData import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEn...
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/bizkaibus/__init__.py
homeassistant/components/bizkaibus/__init__.py
"""The Bizkaibus bus tracker 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/supervisord/sensor.py
homeassistant/components/supervisord/sensor.py
"""Sensor for Supervisord process status.""" from __future__ import annotations import logging import xmlrpc.client import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) from homeassistant.const import CONF_URL 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/supervisord/__init__.py
homeassistant/components/supervisord/__init__.py
"""The supervisord 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/openrgb/const.py
homeassistant/components/openrgb/const.py
"""Constants for the OpenRGB integration.""" from datetime import timedelta from enum import StrEnum import socket from openrgb.utils import ( ControllerParsingError, DeviceType, OpenRGBDisconnected, SDKVersionError, ) DOMAIN = "openrgb" UID_SEPARATOR = "||" # Defaults DEFAULT_PORT = 6742 DEFAULT_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/openrgb/coordinator.py
homeassistant/components/openrgb/coordinator.py
"""DataUpdateCoordinator for OpenRGB.""" from __future__ import annotations import asyncio import logging from openrgb import OpenRGBClient from openrgb.orgb import Device from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_PORT from homeassistant.core import HomeAss...
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/openrgb/__init__.py
homeassistant/components/openrgb/__init__.py
"""The OpenRGB integration.""" from __future__ import annotations from homeassistant.const import CONF_NAME, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import DeviceEntry from .const import DOMAIN from .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/openrgb/select.py
homeassistant/components/openrgb/select.py
"""Select platform for OpenRGB integration.""" from __future__ import annotations from homeassistant.components.select import SelectEntity from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.entity_platform import AddConfigEntryEnti...
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/openrgb/light.py
homeassistant/components/openrgb/light.py
"""OpenRGB light platform.""" from __future__ import annotations import asyncio from typing import Any from openrgb.orgb import Device from openrgb.utils import ModeColors, ModeData, RGBColor from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_EFFECT, ATTR_RGB_COLOR, EFFECT_OFF, 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/openrgb/config_flow.py
homeassistant/components/openrgb/config_flow.py
"""Config flow for the OpenRGB integration.""" from __future__ import annotations import logging from typing import Any from openrgb import OpenRGBClient import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT 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/emoncms_history/__init__.py
homeassistant/components/emoncms_history/__init__.py
"""Support for sending data to Emoncms.""" from datetime import datetime, timedelta from functools import partial import logging import aiohttp from pyemoncms import EmoncmsClient import voluptuous as vol from homeassistant.const import ( CONF_API_KEY, CONF_SCAN_INTERVAL, CONF_URL, CONF_WHITELIST, ...
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/number/significant_change.py
homeassistant/components/number/significant_change.py
"""Helper to test significant Number state changes.""" from __future__ import annotations from typing import Any from homeassistant.const import ( ATTR_DEVICE_CLASS, ATTR_UNIT_OF_MEASUREMENT, PERCENTAGE, UnitOfTemperature, ) from homeassistant.core import HomeAssistant, callback 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/number/websocket_api.py
homeassistant/components/number/websocket_api.py
"""The sensor websocket API.""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import HomeAssistant, callback from .const import DEVICE_CLASS_UNITS, UNIT_CONVERTERS @callback 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/number/const.py
homeassistant/components/number/const.py
"""Provides the constants needed for the component.""" from __future__ import annotations from enum import StrEnum from typing import Final import voluptuous as vol from homeassistant.const import ( CONCENTRATION_GRAMS_PER_CUBIC_METER, CONCENTRATION_MICROGRAMS_PER_CUBIC_FOOT, CONCENTRATION_MICROGRAMS_PE...
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/number/reproduce_state.py
homeassistant/components/number/reproduce_state.py
"""Reproduce a Number entity state.""" from __future__ import annotations import asyncio from collections.abc import Iterable import logging from typing import Any from homeassistant.const import ATTR_ENTITY_ID from homeassistant.core import Context, HomeAssistant, State from .const import ATTR_VALUE, DOMAIN, SERVI...
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/number/__init__.py
homeassistant/components/number/__init__.py
"""Component to allow numeric input for platforms.""" from __future__ import annotations from collections.abc import Callable from contextlib import suppress import dataclasses from datetime import timedelta import logging from math import ceil, floor from typing import TYPE_CHECKING, Any, Self, final from propcache...
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/number/device_action.py
homeassistant/components/number/device_action.py
"""Provides device actions for Number.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import async_validate_entity_schema from homeassistant.const import ( ATTR_ENTITY_ID, CONF_DEVICE_ID, CONF_DOMAIN, CONF_ENTITY_ID, CONF_TYPE, ) 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/mutesync/binary_sensor.py
homeassistant/components/mutesync/binary_sensor.py
"""mütesync binary sensor entities.""" from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers import update_coordinator from homeassistant.helpers.device_registry import DeviceEnt...
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/mutesync/const.py
homeassistant/components/mutesync/const.py
"""Constants for the mütesync integration.""" from datetime import timedelta from typing import Final DOMAIN: Final = "mutesync" UPDATE_INTERVAL_NOT_IN_MEETING: Final = timedelta(seconds=10) UPDATE_INTERVAL_IN_MEETING: Final = timedelta(seconds=10)
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/mutesync/__init__.py
homeassistant/components/mutesync/__init__.py
"""The mütesync integration.""" from __future__ import annotations import asyncio import logging import mutesync from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import update_coordinator 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/mutesync/config_flow.py
homeassistant/components/mutesync/config_flow.py
"""Config flow for mütesync integration.""" from __future__ import annotations import asyncio import logging from typing import Any import aiohttp import mutesync import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.core import HomeAssistant from homeassi...
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/ista_ecotrend/diagnostics.py
homeassistant/components/ista_ecotrend/diagnostics.py
"""Diagnostics platform for ista EcoTrend integration.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .coordinator import IstaConfigEntry TO_REDACT = { "firstName", "lastName",...
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/ista_ecotrend/util.py
homeassistant/components/ista_ecotrend/util.py
"""Utility functions for Ista EcoTrend integration.""" from __future__ import annotations import datetime from enum import StrEnum from typing import Any from homeassistant.util import dt as dt_util class IstaConsumptionType(StrEnum): """Types of consumptions from ista.""" HEATING = "heating" HOT_WATE...
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/ista_ecotrend/const.py
homeassistant/components/ista_ecotrend/const.py
"""Constants for the ista Ecotrend integration.""" DOMAIN = "ista_ecotrend"
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/ista_ecotrend/coordinator.py
homeassistant/components/ista_ecotrend/coordinator.py
"""DataUpdateCoordinator for Ista EcoTrend integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from pyecotrend_ista import KeycloakError, LoginError, PyEcotrendIsta, ServerError from homeassistant.config_entries import ConfigEntry 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/ista_ecotrend/sensor.py
homeassistant/components/ista_ecotrend/sensor.py
"""Sensor platform for Ista EcoTrend integration.""" from __future__ import annotations import asyncio from dataclasses import dataclass import datetime from enum import StrEnum import logging from homeassistant.components.recorder.models import StatisticMeanType from homeassistant.components.recorder.models.statist...
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/ista_ecotrend/__init__.py
homeassistant/components/ista_ecotrend/__init__.py
"""The ista Ecotrend integration.""" from __future__ import annotations import logging from pyecotrend_ista import PyEcotrendIsta from homeassistant.components.recorder import get_instance from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform from homeassistant.core import HomeAssistant from .const i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false