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/escea/const.py
homeassistant/components/escea/const.py
"""Constants used by the escea component.""" DOMAIN = "escea" ESCEA_MANUFACTURER = "Escea" ESCEA_FIREPLACE = "Escea Fireplace" DATA_DISCOVERY_SERVICE = "escea_discovery" DISPATCH_CONTROLLER_DISCOVERED = "escea_controller_discovered" DISPATCH_CONTROLLER_DISCONNECTED = "escea_controller_disconnected" DISPATCH_CONTROLL...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/escea/__init__.py
homeassistant/components/escea/__init__.py
"""Platform for the Escea fireplace.""" from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .discovery import async_start_discovery_service, async_stop_discovery_service PLATFORMS = [CLIMATE_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/escea/climate.py
homeassistant/components/escea/climate.py
"""Support for the Escea Fireplace.""" from __future__ import annotations from collections.abc import Coroutine import logging from typing import Any from pescea import Controller from homeassistant.components.climate import ( FAN_AUTO, FAN_HIGH, FAN_LOW, ClimateEntity, ClimateEntityFeature, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/escea/config_flow.py
homeassistant/components/escea/config_flow.py
"""Config flow for escea.""" import asyncio from contextlib import suppress import logging from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_entry_flow from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import ( DISPATCH_CONTROLLER_DISC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lektrico/switch.py
homeassistant/components/lektrico/switch.py
"""Support for Lektrico switch entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from lektricowifi import Device from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.const import ATTR_SERIAL_NUMBER, 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/lektrico/number.py
homeassistant/components/lektrico/number.py
"""Support for Lektrico number entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from lektricowifi import Device from homeassistant.components.number import NumberEntity, NumberEntityDescription from homeassistant.const import ( ATTR_SERIAL_NUMB...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lektrico/binary_sensor.py
homeassistant/components/lektrico/binary_sensor.py
"""Support for Lektrico binary sensors entities.""" from collections.abc import Callable from dataclasses import dataclass from typing import Any from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.const 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/lektrico/const.py
homeassistant/components/lektrico/const.py
"""Constants for the Lektrico Charging Station integration.""" from logging import Logger, getLogger # Integration domain DOMAIN = "lektrico" # Logger LOGGER: Logger = getLogger(__package__)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lektrico/coordinator.py
homeassistant/components/lektrico/coordinator.py
"""Coordinator for the Lektrico Charging Station integration.""" from __future__ import annotations from datetime import timedelta from typing import Any from lektricowifi import Device, DeviceConnectionError from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ATTR_HW_VERSION,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lektrico/sensor.py
homeassistant/components/lektrico/sensor.py
"""Support for Lektrico charging station sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from lektricowifi import Device from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lektrico/__init__.py
homeassistant/components/lektrico/__init__.py
"""The Lektrico Charging Station integration.""" from __future__ import annotations from lektricowifi import Device from homeassistant.const import CONF_TYPE, Platform from homeassistant.core import HomeAssistant from .coordinator import LektricoConfigEntry, LektricoDeviceDataUpdateCoordinator # List the platforms...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lektrico/entity.py
homeassistant/components/lektrico/entity.py
"""Entity classes for the Lektrico integration.""" from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from . import LektricoDeviceDataUpdateCoordinator from .const import DOMAIN class LektricoEntity(...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lektrico/button.py
homeassistant/components/lektrico/button.py
"""Support for Lektrico buttons.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from lektricowifi import Device from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, ButtonEntityDescription, ) 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/lektrico/select.py
homeassistant/components/lektrico/select.py
"""Support for Lektrico select entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from lektricowifi import Device from homeassistant.components.select import SelectEntity, SelectEntityDescription from homeassistant.const import ATTR_SERIAL_NUMBER, 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/lektrico/config_flow.py
homeassistant/components/lektrico/config_flow.py
"""Config flow for Lektrico Charging Station.""" from __future__ import annotations from typing import Any from lektricowifi import Device, DeviceConnectionError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import ( ATTR_HW_VERSION, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sky_remote/const.py
homeassistant/components/sky_remote/const.py
"""Constants.""" DOMAIN = "sky_remote" DEFAULT_PORT = 49160 LEGACY_PORT = 5900
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sky_remote/__init__.py
homeassistant/components/sky_remote/__init__.py
"""The Sky Remote Control integration.""" import logging from skyboxremote import RemoteControl, SkyBoxConnectionError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_PORT, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions 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/sky_remote/remote.py
homeassistant/components/sky_remote/remote.py
"""Home Assistant integration to control a sky box using the remote platform.""" from collections.abc import Iterable import logging from typing import Any from skyboxremote import VALID_KEYS, RemoteControl from homeassistant.components.remote import RemoteEntity 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/sky_remote/config_flow.py
homeassistant/components/sky_remote/config_flow.py
"""Config flow for sky_remote.""" import logging from typing import Any from skyboxremote import RemoteControl, SkyBoxConnectionError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PORT from homeassistant.helpers 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/togrill/event.py
homeassistant/components/togrill/event.py
"""Support for event entities.""" from __future__ import annotations from togrill_bluetooth.packets import Packet, PacketA5Notify from homeassistant.components.event import EventEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallb...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/togrill/number.py
homeassistant/components/togrill/number.py
"""Support for number entities.""" from __future__ import annotations from collections.abc import Callable, Generator, Mapping from dataclasses import dataclass from typing import Any from togrill_bluetooth.packets import ( AlarmType, PacketA0Notify, PacketA6Write, PacketA8Notify, PacketA300Write...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/togrill/const.py
homeassistant/components/togrill/const.py
"""Constants for the ToGrill integration.""" DOMAIN = "togrill" MAX_PROBE_COUNT = 6 CONF_PROBE_COUNT = "probe_count" CONF_HAS_AMBIENT = "has_ambient" CONF_VERSION = "version"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/togrill/coordinator.py
homeassistant/components/togrill/coordinator.py
"""Coordinator for the ToGrill Bluetooth integration.""" from __future__ import annotations import asyncio from collections.abc import Callable from datetime import timedelta import logging from bleak.exc import BleakError from togrill_bluetooth.client import Client from togrill_bluetooth.exceptions import DecodeErr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/togrill/sensor.py
homeassistant/components/togrill/sensor.py
"""Support for sensor entities.""" from __future__ import annotations from collections.abc import Callable, Mapping from dataclasses import dataclass from typing import Any, cast from togrill_bluetooth.packets import Packet, PacketA0Notify, PacketA1Notify from homeassistant.components.sensor import ( SensorDevi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/togrill/__init__.py
homeassistant/components/togrill/__init__.py
"""The ToGrill integration.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from .coordinator import DeviceNotFound, ToGrillConfigEntry, ToGrillCoordinator _PLATFORMS: list[Platform] ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/togrill/entity.py
homeassistant/components/togrill/entity.py
"""Provides the base entities.""" from __future__ import annotations from bleak.exc import BleakError from togrill_bluetooth.client import Client from togrill_bluetooth.exceptions import BaseError from togrill_bluetooth.packets import PacketWrite from homeassistant.exceptions import HomeAssistantError 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/togrill/select.py
homeassistant/components/togrill/select.py
"""Support for select entities.""" from __future__ import annotations from collections.abc import Callable, Generator, Mapping from dataclasses import dataclass from enum import Enum from typing import Any, TypeVar from togrill_bluetooth.packets import ( GrillType, PacketA8Notify, PacketA303Write, Pa...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/togrill/config_flow.py
homeassistant/components/togrill/config_flow.py
"""Config flow for the ToGrill integration.""" from __future__ import annotations from typing import Any from bleak.exc import BleakError from togrill_bluetooth import SUPPORTED_DEVICES from togrill_bluetooth.client import Client from togrill_bluetooth.packets import PacketA0Notify import voluptuous as vol 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/bayesian/binary_sensor.py
homeassistant/components/bayesian/binary_sensor.py
"""Use Bayesian Inference to trigger a binary sensor.""" from __future__ import annotations from collections import OrderedDict from collections.abc import Callable import logging import math from typing import TYPE_CHECKING, Any, NamedTuple from uuid import UUID import voluptuous as vol from homeassistant.componen...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bayesian/const.py
homeassistant/components/bayesian/const.py
"""Consts for using in modules.""" from homeassistant.const import Platform DOMAIN = "bayesian" PLATFORMS = [Platform.BINARY_SENSOR] ATTR_OBSERVATIONS = "observations" ATTR_OCCURRED_OBSERVATION_ENTITIES = "occurred_observation_entities" ATTR_PROBABILITY = "probability" ATTR_PROBABILITY_THRESHOLD = "probability_thresh...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bayesian/helpers.py
homeassistant/components/bayesian/helpers.py
"""Helpers to deal with bayesian observations.""" from __future__ import annotations from dataclasses import dataclass, field import uuid from homeassistant.const import ( CONF_ABOVE, CONF_BELOW, CONF_ENTITY_ID, CONF_PLATFORM, CONF_VALUE_TEMPLATE, ) from homeassistant.helpers.template import Temp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bayesian/__init__.py
homeassistant/components/bayesian/__init__.py
"""The bayesian component.""" from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import PLATFORMS async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Bayesian from a config entry.""" await hass.config_entries.asyn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bayesian/config_flow.py
homeassistant/components/bayesian/config_flow.py
"""Config flow for the Bayesian integration.""" from collections.abc import Mapping from enum import StrEnum import logging from typing import Any import voluptuous as vol from homeassistant.components.alarm_control_panel import DOMAIN as ALARM_DOMAIN from homeassistant.components.binary_sensor import ( DOMAIN a...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bayesian/issues.py
homeassistant/components/bayesian/issues.py
"""Helpers for generating issues.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers import issue_registry as ir from .const import DOMAIN from .helpers import Observation def raise_mirrored_entries( hass: HomeAssistant, observations: list[Observation]...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trafikverket_weatherstation/diagnostics.py
homeassistant/components/trafikverket_weatherstation/diagnostics.py
"""Diagnostics support for Trafikverket Weatherstation.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.core import HomeAssistant from . import TVWeatherConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: TVWeathe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trafikverket_weatherstation/const.py
homeassistant/components/trafikverket_weatherstation/const.py
"""Adds constants for Trafikverket Weather integration.""" from homeassistant.const import Platform DOMAIN = "trafikverket_weatherstation" CONF_STATION = "station" PLATFORMS = [Platform.SENSOR] ATTRIBUTION = "Data provided by Trafikverket"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trafikverket_weatherstation/coordinator.py
homeassistant/components/trafikverket_weatherstation/coordinator.py
"""DataUpdateCoordinator for the Trafikverket Weather integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import TYPE_CHECKING from pytrafikverket.exceptions import ( InvalidAuthentication, MultipleWeatherStationsFound, NoWeatherStationFound, ) 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/trafikverket_weatherstation/sensor.py
homeassistant/components/trafikverket_weatherstation/sensor.py
"""Weather information for air and road temperature (by Trafikverket).""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from pytrafikverket.models import WeatherStationInfoModel 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/trafikverket_weatherstation/__init__.py
homeassistant/components/trafikverket_weatherstation/__init__.py
"""The trafikverket_weatherstation component.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import PLATFORMS from .coordinator import TVDataUpdateCoordinator TVWeatherConfigEntry = ConfigEntry[TVDataUpdateCoordinat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trafikverket_weatherstation/config_flow.py
homeassistant/components/trafikverket_weatherstation/config_flow.py
"""Adds config flow for Trafikverket Weather integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from pytrafikverket.exceptions import ( InvalidAuthentication, MultipleWeatherStationsFound, NoWeatherStationFound, ) from pytrafikverk...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/noaa_tides/const.py
homeassistant/components/noaa_tides/const.py
"""Constants for the NOAA Tides integration.""" from datetime import timedelta CONF_STATION_ID = "station_id" DEFAULT_NAME = "NOAA Tides" DEFAULT_PREDICTION_LENGTH = timedelta(days=2) DEFAULT_TIMEZONE = "lst_ldt" ATTRIBUTION = "Data provided by NOAA"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/noaa_tides/helpers.py
homeassistant/components/noaa_tides/helpers.py
"""Helpers for NOAA Tides integration.""" def get_station_unique_id(station_id: str) -> str: """Convert a station ID to a unique ID.""" return f"{station_id.lower()}"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/noaa_tides/sensor.py
homeassistant/components/noaa_tides/sensor.py
"""Support for the NOAA Tides and Currents API.""" from __future__ import annotations from datetime import datetime import logging from typing import TYPE_CHECKING, Any, Literal, TypedDict import noaa_coops as coops import requests import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/noaa_tides/__init__.py
homeassistant/components/noaa_tides/__init__.py
"""The noaa_tides 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/trafikverket_camera/binary_sensor.py
homeassistant/components/trafikverket_camera/binary_sensor.py
"""Binary sensor platform for Trafikverket Camera integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from homeassistant.components.binary_sensor import ( BinarySensorEntity, BinarySensorEntityDescription, ) 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/trafikverket_camera/camera.py
homeassistant/components/trafikverket_camera/camera.py
"""Camera for the Trafikverket Camera integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from homeassistant.components.camera import Camera from homeassistant.const import ATTR_LOCATION from homeassistant.core import HomeAssistant from homeassistant.helpers....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trafikverket_camera/const.py
homeassistant/components/trafikverket_camera/const.py
"""Adds constants for Trafikverket Camera integration.""" from homeassistant.const import Platform DOMAIN = "trafikverket_camera" PLATFORMS = [Platform.BINARY_SENSOR, Platform.CAMERA, Platform.SENSOR] ATTRIBUTION = "Data provided by Trafikverket" ATTR_DESCRIPTION = "description" ATTR_TYPE = "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/trafikverket_camera/coordinator.py
homeassistant/components/trafikverket_camera/coordinator.py
"""DataUpdateCoordinator for the Trafikverket Camera integration.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta from io import BytesIO import logging from typing import TYPE_CHECKING import aiohttp from pytrafikverket import ( CameraInfoModel, InvalidA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trafikverket_camera/sensor.py
homeassistant/components/trafikverket_camera/sensor.py
"""Sensor platform for Trafikverket Camera integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) 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/trafikverket_camera/__init__.py
homeassistant/components/trafikverket_camera/__init__.py
"""The trafikverket_camera component.""" from __future__ import annotations import logging from pytrafikverket import TrafikverketCamera from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_API_KEY, CONF_ID, CONF_LOCATION from homeassistant.core import HomeAssistant 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/trafikverket_camera/entity.py
homeassistant/components/trafikverket_camera/entity.py
"""Base entity for Trafikverket Camera.""" from __future__ import annotations from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import Coordinato...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trafikverket_camera/config_flow.py
homeassistant/components/trafikverket_camera/config_flow.py
"""Adds config flow for Trafikverket Camera integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from pytrafikverket import ( CameraInfoModel, InvalidAuthentication, NoCameraFound, TrafikverketCamera, UnknownError, ) import voluptuous as vo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tankerkoenig/diagnostics.py
homeassistant/components/tankerkoenig/diagnostics.py
"""Diagnostics support for Tankerkoenig.""" 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_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_UNIQUE_ID, ) 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/tankerkoenig/binary_sensor.py
homeassistant/components/tankerkoenig/binary_sensor.py
"""Tankerkoenig binary sensor integration.""" from __future__ import annotations import logging from aiotankerkoenig import PriceInfo, Station, Status from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.const import ATTR_LATITUDE, ATTR_LONGI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tankerkoenig/const.py
homeassistant/components/tankerkoenig/const.py
"""Constants for the tankerkoenig integration.""" DOMAIN = "tankerkoenig" NAME = "tankerkoenig" CONF_STATIONS = "stations" DEFAULT_RADIUS = 2 DEFAULT_SCAN_INTERVAL = 30 ATTR_BRAND = "brand" ATTR_CITY = "city" ATTR_FUEL_TYPE = "fuel_type" ATTR_HOUSE_NUMBER = "house_number" ATTR_POSTCODE = "postcode" ATTR_STATION_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/tankerkoenig/coordinator.py
homeassistant/components/tankerkoenig/coordinator.py
"""The Tankerkoenig update coordinator.""" from __future__ import annotations from datetime import timedelta import logging from math import ceil from aiotankerkoenig import ( PriceInfo, Station, Tankerkoenig, TankerkoenigConnectionError, TankerkoenigError, TankerkoenigInvalidKeyError, Ta...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tankerkoenig/sensor.py
homeassistant/components/tankerkoenig/sensor.py
"""Tankerkoenig sensor integration.""" from __future__ import annotations import logging from aiotankerkoenig import GasType, Station from homeassistant.components.sensor import SensorEntity, SensorStateClass from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE, CURRENCY_EURO 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/tankerkoenig/__init__.py
homeassistant/components/tankerkoenig/__init__.py
"""Ask tankerkoenig.de for petrol price information.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .const import DEFAULT_SCAN_INTERVAL, DOMAIN from .coordinator import TankerkoenigConfigEntry, TankerkoenigDataUpdateCoordinator PLATFO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tankerkoenig/entity.py
homeassistant/components/tankerkoenig/entity.py
"""The tankerkoenig base entity.""" from aiotankerkoenig import Station from homeassistant.const import ATTR_ID from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .coordinator import TankerkoenigDataUpdateCoordinat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tankerkoenig/config_flow.py
homeassistant/components/tankerkoenig/config_flow.py
"""Config flow for Tankerkoenig.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from aiotankerkoenig import ( GasType, Sort, Station, Tankerkoenig, TankerkoenigInvalidKeyError, ) import voluptuous as vol from homeassistant.config_entries 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/ffmpeg_noise/binary_sensor.py
homeassistant/components/ffmpeg_noise/binary_sensor.py
"""Provides a binary sensor which is a collection of ffmpeg tools.""" from __future__ import annotations from typing import Any import haffmpeg.sensor as ffmpeg_sensor import voluptuous as vol from homeassistant.components.binary_sensor import ( PLATFORM_SCHEMA as BINARY_SENSOR_PLATFORM_SCHEMA, BinarySensor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ffmpeg_noise/__init__.py
homeassistant/components/ffmpeg_noise/__init__.py
"""The ffmpeg_noise 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/rest_command/__init__.py
homeassistant/components/rest_command/__init__.py
"""Support for exposing regular REST commands as services.""" from __future__ import annotations from http import HTTPStatus from json.decoder import JSONDecodeError import logging from typing import Any import aiohttp from aiohttp import hdrs import voluptuous as vol from yarl import URL 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/touchline_sl/const.py
homeassistant/components/touchline_sl/const.py
"""Constants for the Roth Touchline SL integration.""" DOMAIN = "touchline_sl"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/touchline_sl/coordinator.py
homeassistant/components/touchline_sl/coordinator.py
"""Define an object to manage fetching Touchline SL data.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta import logging from pytouchlinesl import Module, Zone from pytouchlinesl.client import RothAPIError from pytouchlinesl.client.models import GlobalScheduleMo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/touchline_sl/__init__.py
homeassistant/components/touchline_sl/__init__.py
"""The Roth Touchline SL integration.""" from __future__ import annotations import asyncio from pytouchlinesl import TouchlineSL from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr from .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/touchline_sl/entity.py
homeassistant/components/touchline_sl/entity.py
"""Base class for Touchline SL zone entities.""" from pytouchlinesl import Zone from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import TouchlineSLModuleCoordinator class TouchlineSLZoneEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/touchline_sl/climate.py
homeassistant/components/touchline_sl/climate.py
"""Roth Touchline SL climate integration implementation for Home Assistant.""" from typing import Any from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, HVACAction, HVACMode, ) from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature from homeassistant.core ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/touchline_sl/config_flow.py
homeassistant/components/touchline_sl/config_flow.py
"""Config flow for Roth Touchline SL integration.""" from __future__ import annotations import logging from typing import Any from pytouchlinesl import TouchlineSL from pytouchlinesl.client import RothAPIError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult 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/asuswrt/diagnostics.py
homeassistant/components/asuswrt/diagnostics.py
"""Diagnostics support for Asuswrt.""" from __future__ import annotations from typing import Any import attr from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import ( ATTR_CONNECTIONS, ATTR_IDENTIFIERS, CONF_PASSWORD, CONF_UNIQUE_ID, CONF_USERNAME, ) fr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/asuswrt/router.py
homeassistant/components/asuswrt/router.py
"""Represent the AsusWrt router.""" from __future__ import annotations from collections.abc import Callable, Mapping from datetime import datetime, timedelta import logging from typing import TYPE_CHECKING, Any from asusrouter import AsusRouterError from homeassistant.components.device_tracker import ( CONF_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/asuswrt/bridge.py
homeassistant/components/asuswrt/bridge.py
"""aioasuswrt and pyasuswrt bridge classes.""" from __future__ import annotations from abc import ABC, abstractmethod from collections.abc import Awaitable, Callable, Coroutine import functools import logging from typing import Any, NamedTuple from aioasuswrt.asuswrt import AsusWrt as AsusWrtLegacy from aiohttp 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/asuswrt/device_tracker.py
homeassistant/components/asuswrt/device_tracker.py
"""Support for ASUSWRT routers.""" from __future__ import annotations from homeassistant.components.device_tracker import ScannerEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform import AddConf...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/asuswrt/const.py
homeassistant/components/asuswrt/const.py
"""AsusWrt component constants.""" DOMAIN = "asuswrt" CONF_DNSMASQ = "dnsmasq" CONF_INTERFACE = "interface" CONF_REQUIRE_IP = "require_ip" CONF_SSH_KEY = "ssh_key" CONF_TRACK_UNKNOWN = "track_unknown" DEFAULT_DNSMASQ = "/var/lib/misc" DEFAULT_INTERFACE = "eth0" DEFAULT_TRACK_UNKNOWN = False KEY_COORDINATOR = "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/asuswrt/helpers.py
homeassistant/components/asuswrt/helpers.py
"""Helpers for AsusWRT integration.""" from __future__ import annotations from typing import Any TRANSLATION_MAP = { "wan_rx": "sensor_rx_bytes", "wan_tx": "sensor_tx_bytes", "total_usage": "cpu_total_usage", "usage": "mem_usage_perc", "free": "mem_free", "used": "mem_used", "wan_rx_speed...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/asuswrt/sensor.py
homeassistant/components/asuswrt/sensor.py
"""Asuswrt status sensors.""" from __future__ import annotations from dataclasses import dataclass from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( PERCENTAGE, EntityCategory, Unit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/asuswrt/__init__.py
homeassistant/components/asuswrt/__init__.py
"""Support for ASUSWRT devices.""" from homeassistant.config_entries import ConfigEntry from homeassistant.const import EVENT_HOMEASSISTANT_STOP, Platform from homeassistant.core import Event, HomeAssistant from .router import AsusWrtRouter PLATFORMS = [Platform.DEVICE_TRACKER, Platform.SENSOR] type AsusWrtConfigEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/asuswrt/config_flow.py
homeassistant/components/asuswrt/config_flow.py
"""Config flow to configure the AsusWrt integration.""" from __future__ import annotations import logging import os import socket from typing import Any, cast from asusrouter import AsusRouterError import voluptuous as vol from homeassistant.components.device_tracker import ( CONF_CONSIDER_HOME, DEFAULT_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/blueprint/schemas.py
homeassistant/components/blueprint/schemas.py
"""Schemas for the blueprint integration.""" from typing import Any import voluptuous as vol from homeassistant.const import ( CONF_DEFAULT, CONF_DESCRIPTION, CONF_DOMAIN, CONF_ICON, CONF_NAME, CONF_PATH, CONF_SELECTOR, ) from homeassistant.core import callback from homeassistant.helpers ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blueprint/importer.py
homeassistant/components/blueprint/importer.py
"""Import logic for blueprint.""" from __future__ import annotations from contextlib import suppress from dataclasses import dataclass import html import re from typing import TYPE_CHECKING import voluptuous as vol import yarl from homeassistant.core import HomeAssistant from homeassistant.exceptions 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/blueprint/models.py
homeassistant/components/blueprint/models.py
"""Blueprint models.""" from __future__ import annotations import asyncio from collections.abc import Awaitable, Callable import logging import pathlib import shutil from typing import Any from awesomeversion import AwesomeVersion import voluptuous as vol from voluptuous.humanize import humanize_error 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/blueprint/websocket_api.py
homeassistant/components/blueprint/websocket_api.py
"""Websocket API for blueprint.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine import functools from typing import Any, cast import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import HomeAssistant, callback from h...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blueprint/const.py
homeassistant/components/blueprint/const.py
"""Constants for the blueprint integration.""" BLUEPRINT_FOLDER = "blueprints" CONF_BLUEPRINT = "blueprint" CONF_USE_BLUEPRINT = "use_blueprint" CONF_INPUT = "input" CONF_SOURCE_URL = "source_url" CONF_HOMEASSISTANT = "homeassistant" CONF_MIN_VERSION = "min_version" CONF_AUTHOR = "author" CONF_COLLAPSED = "collapsed"...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blueprint/errors.py
homeassistant/components/blueprint/errors.py
"""Blueprint errors.""" from __future__ import annotations from collections.abc import Iterable from typing import Any import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.exceptions import HomeAssistantError class BlueprintException(HomeAssistantError): """Base exception...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blueprint/__init__.py
homeassistant/components/blueprint/__init__.py
"""The blueprint integration.""" from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType from . import websocket_api from .const import CONF_USE_BLUEPRINT, DOMAIN # noqa: F401 from .errors import ( # noqa: F401 Bl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aruba/device_tracker.py
homeassistant/components/aruba/device_tracker.py
"""Support for Aruba Access Points.""" from __future__ import annotations import logging import re from typing import Any import pexpect import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM_SCHEMA, Devi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aruba/__init__.py
homeassistant/components/aruba/__init__.py
"""The aruba 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/torque/sensor.py
homeassistant/components/torque/sensor.py
"""Support for the Torque OBD application.""" from __future__ import annotations import re from aiohttp import web import voluptuous as vol from homeassistant.components.http import HomeAssistantView from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) 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/torque/__init__.py
homeassistant/components/torque/__init__.py
"""The torque 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/mqtt_eventstream/__init__.py
homeassistant/components/mqtt_eventstream/__init__.py
"""Connect two Home Assistant instances via MQTT.""" import json import logging import voluptuous as vol from homeassistant.components import mqtt from homeassistant.components.mqtt import valid_publish_topic, valid_subscribe_topic from homeassistant.const import ( ATTR_SERVICE_DATA, EVENT_CALL_SERVICE, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/plex/media_player.py
homeassistant/components/plex/media_player.py
"""Support to interface with the Plex API.""" from __future__ import annotations from collections.abc import Callable from functools import wraps import logging from typing import Any, Concatenate, cast from plexapi.client import PlexClient import plexapi.exceptions import requests.exceptions 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/plex/view.py
homeassistant/components/plex/view.py
"""Implement a view to provide proxied Plex thumbnails to the media browser.""" from __future__ import annotations from http import HTTPStatus import logging from aiohttp import web from aiohttp.hdrs import CACHE_CONTROL from aiohttp.typedefs import LooseHeaders from homeassistant.components.http import KEY_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/plex/services.py
homeassistant/components/plex/services.py
"""Services for the Plex integration.""" import json import logging from plexapi.exceptions import NotFound import voluptuous as vol from yarl import URL from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.exceptions import HomeAssistantError from .const import DOMAIN, PLEX_URI_SC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/plex/models.py
homeassistant/components/plex/models.py
"""Models to represent various Plex objects used in the integration.""" import logging import plexapi.playqueue from homeassistant.components.media_player import MediaType from homeassistant.helpers.template import result_as_boolean from homeassistant.util import dt as dt_util LIVE_TV_SECTION = "Live TV" TRANSIENT_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/plex/cast.py
homeassistant/components/plex/cast.py
"""Google Cast support for the Plex component.""" from __future__ import annotations from pychromecast import Chromecast from pychromecast.controllers.plex import PlexController from homeassistant.components.cast import DOMAIN as CAST_DOMAIN from homeassistant.components.media_player import BrowseMedia, MediaClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/plex/const.py
homeassistant/components/plex/const.py
"""Constants for the Plex component.""" from datetime import timedelta from typing import Final from homeassistant.const import Platform, __version__ DOMAIN = "plex" NAME_FORMAT = "Plex ({})" COMMON_PLAYERS = ["Plex Web"] TRANSIENT_DEVICE_MODELS = ["Plex Web", "Plex for Sonos"] DEFAULT_PORT = 32400 DEFAULT_SSL = Fa...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/plex/update.py
homeassistant/components/plex/update.py
"""Representation of Plex updates.""" import logging from typing import Any from plexapi.exceptions import PlexApiException import requests.exceptions from homeassistant.components.update import UpdateEntity, UpdateEntityFeature from homeassistant.config_entries import ConfigEntry from homeassistant.core import 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/plex/helpers.py
homeassistant/components/plex/helpers.py
"""Helper methods for common Plex integration operations.""" from __future__ import annotations from collections.abc import Callable, Coroutine from typing import TYPE_CHECKING, Any, TypedDict from plexapi.gdm import GDM from plexwebsocket import PlexWebsocket from homeassistant.core import CALLBACK_TYPE, 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/plex/media_search.py
homeassistant/components/plex/media_search.py
"""Helper methods to search for Plex media.""" from __future__ import annotations import logging from plexapi.base import PlexObject from plexapi.exceptions import BadRequest, NotFound from plexapi.library import LibrarySection from .errors import MediaNotFound LEGACY_PARAM_MAPPING = { "show_name": "show.title...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/plex/errors.py
homeassistant/components/plex/errors.py
"""Errors for the Plex component.""" from homeassistant.exceptions import HomeAssistantError class PlexException(HomeAssistantError): """Base class for Plex exceptions.""" class NoServersFound(PlexException): """No servers found on Plex account.""" class ServerNotSpecified(PlexException): """Multiple...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false