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/fivem/config_flow.py
homeassistant/components/fivem/config_flow.py
"""Config flow for FiveM integration.""" from __future__ import annotations import logging from typing import Any from fivem import FiveM, FiveMServerOfflineError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PORT 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/airobot/diagnostics.py
homeassistant/components/airobot/diagnostics.py
"""Diagnostics support for Airobot.""" 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_HOST, CONF_MAC, CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airobot/models.py
homeassistant/components/airobot/models.py
"""Models for the Airobot integration.""" from __future__ import annotations from dataclasses import dataclass from pyairobotrest.models import ThermostatSettings, ThermostatStatus @dataclass class AirobotData: """Data from the Airobot coordinator.""" status: ThermostatStatus settings: ThermostatSetti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airobot/number.py
homeassistant/components/airobot/number.py
"""Number platform for Airobot thermostat.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from pyairobotrest.const import HYSTERESIS_BAND_MAX, HYSTERESIS_BAND_MIN from pyairobotrest.exceptions import AirobotError from homeassistant.components....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airobot/const.py
homeassistant/components/airobot/const.py
"""Constants for the Airobot integration.""" from typing import Final DOMAIN: Final = "airobot"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airobot/coordinator.py
homeassistant/components/airobot/coordinator.py
"""Coordinator for the Airobot integration.""" from __future__ import annotations from datetime import timedelta import logging from pyairobotrest import AirobotClient from pyairobotrest.exceptions import AirobotAuthError, AirobotConnectionError 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/airobot/sensor.py
homeassistant/components/airobot/sensor.py
"""Sensor platform for Airobot thermostat.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from pyairobotrest.models import ThermostatStatus from homeassistant.components.sensor import ( SensorDeviceClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airobot/__init__.py
homeassistant/components/airobot/__init__.py
"""The Airobot integration.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import AirobotConfigEntry, AirobotDataUpdateCoordinator PLATFORMS: list[Platform] = [Platform.CLIMATE, Platform.NUMBER, Platform.SENSOR] async d...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airobot/entity.py
homeassistant/components/airobot/entity.py
"""Base entity for Airobot integration.""" from __future__ import annotations from homeassistant.const import CONF_MAC from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .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/airobot/climate.py
homeassistant/components/airobot/climate.py
"""Climate platform for Airobot thermostat.""" from __future__ import annotations from typing import Any from pyairobotrest.const import ( MODE_AWAY, MODE_HOME, SETPOINT_TEMP_MAX, SETPOINT_TEMP_MIN, ) from pyairobotrest.exceptions import AirobotError from pyairobotrest.models import ThermostatSetting...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airobot/config_flow.py
homeassistant/components/airobot/config_flow.py
"""Config flow for the Airobot integration.""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass import logging from typing import Any from pyairobotrest import AirobotClient from pyairobotrest.exceptions import ( AirobotAuthError, AirobotConnectionError...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/essent/const.py
homeassistant/components/essent/const.py
"""Constants for the Essent integration.""" from __future__ import annotations from datetime import timedelta from enum import StrEnum from typing import Final DOMAIN: Final = "essent" UPDATE_INTERVAL: Final = timedelta(hours=12) ATTRIBUTION: Final = "Data provided by Essent" class EnergyType(StrEnum): """Supp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/essent/coordinator.py
homeassistant/components/essent/coordinator.py
"""DataUpdateCoordinator for Essent integration.""" from __future__ import annotations from collections.abc import Callable from datetime import datetime, timedelta import logging from essent_dynamic_pricing import ( EssentClient, EssentConnectionError, EssentDataError, EssentError, EssentPrices,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/essent/sensor.py
homeassistant/components/essent/sensor.py
"""Sensor platform for Essent integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from typing import Any from essent_dynamic_pricing.models import EnergyData, Tariff from homeassistant.components.sensor 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/essent/__init__.py
homeassistant/components/essent/__init__.py
"""The Essent integration.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import EssentConfigEntry, EssentDataUpdateCoordinator PLATFORMS: list[Platform] = [Platform.SENSOR] async def async_setup_entry(hass: 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/essent/entity.py
homeassistant/components/essent/entity.py
"""Base entity for Essent integration.""" from essent_dynamic_pricing.models import EnergyData from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ATTRIBUTION, DOMAIN, EnergyType from .coordinator 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/essent/config_flow.py
homeassistant/components/essent/config_flow.py
"""Config flow for Essent integration.""" from __future__ import annotations import logging from typing import Any from essent_dynamic_pricing import ( EssentClient, EssentConnectionError, EssentDataError, EssentResponseError, ) from homeassistant.config_entries import ConfigFlow, ConfigFlowResult f...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/iidmanager.py
homeassistant/components/homekit/iidmanager.py
"""Manage allocation of instance ID's. HomeKit needs to allocate unique numbers to each accessory. These need to be stable between reboots and upgrades. This module generates and stores them in a HA storage. """ from __future__ import annotations from uuid import UUID from pyhap.util import uuid_to_hap_type 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/homekit/type_air_purifiers.py
homeassistant/components/homekit/type_air_purifiers.py
"""Class to hold all air purifier accessories.""" import logging from typing import Any from pyhap.characteristic import Characteristic from pyhap.const import CATEGORY_AIR_PURIFIER from pyhap.service import Service from pyhap.util import callback as pyhap_callback from homeassistant.const import ( ATTR_UNIT_OF_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/diagnostics.py
homeassistant/components/homekit/diagnostics.py
"""Diagnostics support for HomeKit.""" from __future__ import annotations from typing import Any from pyhap.accessory_driver import AccessoryDriver from pyhap.state import State from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .accessories 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/homekit/type_locks.py
homeassistant/components/homekit/type_locks.py
"""Class to hold all lock accessories.""" import logging from typing import Any from pyhap.const import CATEGORY_DOOR_LOCK from homeassistant.components.lock import DOMAIN as LOCK_DOMAIN, LockState from homeassistant.const import ATTR_CODE, ATTR_ENTITY_ID, STATE_UNKNOWN from homeassistant.core import State, callback...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_switches.py
homeassistant/components/homekit/type_switches.py
"""Class to hold all switch accessories.""" from __future__ import annotations import logging from typing import Any, Final, NamedTuple from pyhap.characteristic import Characteristic from pyhap.const import ( CATEGORY_FAUCET, CATEGORY_OUTLET, CATEGORY_SHOWER_HEAD, CATEGORY_SPRINKLER, CATEGORY_SW...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/util.py
homeassistant/components/homekit/util.py
"""Collection of useful functions for the HomeKit component.""" from __future__ import annotations import io import ipaddress import logging import os import re import secrets import socket from typing import Any, cast from pyhap.accessory import Accessory import pyqrcode import voluptuous as vol 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/homekit/models.py
homeassistant/components/homekit/models.py
"""Models for the HomeKit component.""" from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING from homeassistant.config_entries import ConfigEntry if TYPE_CHECKING: from . import HomeKit type HomeKitConfigEntry = ConfigEntry[HomeKitEntryData] @dataclass class 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/homekit/type_thermostats.py
homeassistant/components/homekit/type_thermostats.py
"""Class to hold all thermostat accessories.""" import logging from typing import Any from pyhap.const import CATEGORY_THERMOSTAT from homeassistant.components.climate import ( ATTR_CURRENT_HUMIDITY, ATTR_CURRENT_TEMPERATURE, ATTR_FAN_MODE, ATTR_FAN_MODES, ATTR_HUMIDITY, ATTR_HVAC_ACTION, ...
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/homekit/type_remotes.py
homeassistant/components/homekit/type_remotes.py
"""Class to hold remote accessories.""" from abc import ABC, abstractmethod import logging from typing import Any from pyhap.const import CATEGORY_TELEVISION from homeassistant.components.remote import ( ATTR_ACTIVITY, ATTR_ACTIVITY_LIST, ATTR_CURRENT_ACTIVITY, DOMAIN as REMOTE_DOMAIN, RemoteEnti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_lights.py
homeassistant/components/homekit/type_lights.py
"""Class to hold all light accessories.""" from __future__ import annotations from datetime import datetime import logging from typing import Any from pyhap.const import CATEGORY_LIGHTBULB from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_BRIGHTNESS_PCT, ATTR_COLOR_MODE, ATTR_COLOR_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_cameras.py
homeassistant/components/homekit/type_cameras.py
"""Class to hold all camera accessories.""" import asyncio from datetime import timedelta import logging from typing import Any from haffmpeg.core import FFMPEG_STDERR, HAFFmpeg from pyhap.camera import ( VIDEO_CODEC_PARAM_LEVEL_TYPES, VIDEO_CODEC_PARAM_PROFILE_ID_TYPES, Camera as PyhapCamera, ) from pyha...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/accessories.py
homeassistant/components/homekit/accessories.py
"""Extend the basic Accessory and Bridge functions.""" from __future__ import annotations import logging from typing import Any, cast from uuid import UUID from pyhap.accessory import Accessory, Bridge from pyhap.accessory_driver import AccessoryDriver from pyhap.characteristic import Characteristic from pyhap.const...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/const.py
homeassistant/components/homekit/const.py
"""Constants used be the HomeKit component.""" from __future__ import annotations from homeassistant.const import CONF_DEVICES from homeassistant.util.signal_type import SignalTypeFormat # #### Misc #### DEBOUNCE_TIMEOUT = 0.5 DEVICE_PRECISION_LEEWAY = 6 DOMAIN = "homekit" PERSIST_LOCK_DATA = f"{DOMAIN}_persist_lock...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_humidifiers.py
homeassistant/components/homekit/type_humidifiers.py
"""Class to hold all thermostat accessories.""" import logging from typing import Any from pyhap.const import CATEGORY_HUMIDIFIER from pyhap.util import callback as pyhap_callback from homeassistant.components.humidifier import ( ATTR_CURRENT_HUMIDITY, ATTR_HUMIDITY, ATTR_MAX_HUMIDITY, ATTR_MIN_HUMID...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_media_players.py
homeassistant/components/homekit/type_media_players.py
"""Class to hold all media player accessories.""" import logging from typing import Any from pyhap.characteristic import Characteristic from pyhap.const import CATEGORY_SWITCH from homeassistant.components.media_player import ( ATTR_INPUT_SOURCE, ATTR_INPUT_SOURCE_LIST, ATTR_MEDIA_VOLUME_LEVEL, ATTR_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_fans.py
homeassistant/components/homekit/type_fans.py
"""Class to hold all fan accessories.""" import logging from typing import Any from pyhap.const import CATEGORY_FAN from pyhap.service import Service from homeassistant.components.fan import ( ATTR_DIRECTION, ATTR_OSCILLATING, ATTR_PERCENTAGE, ATTR_PERCENTAGE_STEP, ATTR_PRESET_MODE, ATTR_PRES...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_triggers.py
homeassistant/components/homekit/type_triggers.py
"""Class to hold all sensor accessories.""" from __future__ import annotations import logging from typing import Any from pyhap.const import CATEGORY_SENSOR from pyhap.util import callback as pyhap_callback from homeassistant.core import CALLBACK_TYPE, Context, callback from homeassistant.helpers import entity_regi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/__init__.py
homeassistant/components/homekit/__init__.py
"""Support for Apple HomeKit.""" from __future__ import annotations import asyncio from collections import defaultdict from collections.abc import Iterable from copy import deepcopy import ipaddress import logging import os import socket from typing import Any, cast from aiohttp import web from pyhap import util as ...
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/homekit/type_covers.py
homeassistant/components/homekit/type_covers.py
"""Class to hold all cover accessories.""" import logging from typing import Any from pyhap.const import ( CATEGORY_DOOR, CATEGORY_GARAGE_DOOR_OPENER, CATEGORY_WINDOW, CATEGORY_WINDOW_COVERING, ) from pyhap.service import Service from pyhap.util import callback as pyhap_callback 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/homekit/type_sensors.py
homeassistant/components/homekit/type_sensors.py
"""Class to hold all sensor accessories.""" from __future__ import annotations from collections.abc import Callable import logging from typing import Any, NamedTuple from pyhap.const import CATEGORY_SENSOR from pyhap.service import Service from homeassistant.components.binary_sensor import BinarySensorDeviceClass f...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/logbook.py
homeassistant/components/homekit/logbook.py
"""Describe logbook events.""" from collections.abc import Callable from typing import Any from homeassistant.components.logbook import ( LOGBOOK_ENTRY_ENTITY_ID, LOGBOOK_ENTRY_MESSAGE, LOGBOOK_ENTRY_NAME, ) from homeassistant.const import ATTR_ENTITY_ID, ATTR_SERVICE from homeassistant.core import Event,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/type_security_systems.py
homeassistant/components/homekit/type_security_systems.py
"""Class to hold all alarm control panel accessories.""" import logging from typing import Any from pyhap.const import CATEGORY_ALARM_SYSTEM from homeassistant.components.alarm_control_panel import ( DOMAIN as ALARM_CONTROL_PANEL_DOMAIN, AlarmControlPanelEntityFeature, AlarmControlPanelState, ) 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/homekit/doorbell.py
homeassistant/components/homekit/doorbell.py
"""Extend the doorbell functions.""" from __future__ import annotations import logging from typing import Any from pyhap.util import callback as pyhap_callback from homeassistant.const import STATE_ON, STATE_UNAVAILABLE, STATE_UNKNOWN from homeassistant.core import ( Event, EventStateChangedData, HassJo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/config_flow.py
homeassistant/components/homekit/config_flow.py
"""Config flow for HomeKit integration.""" from __future__ import annotations from collections.abc import Iterable from copy import deepcopy from operator import itemgetter import random import re import string from typing import Any, Final, TypedDict import voluptuous as vol from homeassistant.components import de...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homekit/aidmanager.py
homeassistant/components/homekit/aidmanager.py
"""Manage allocation of accessory ID's. HomeKit needs to allocate unique numbers to each accessory. These need to be stable between reboots and upgrades. Using a hash function to generate them means collisions. It also means you can't change the hash without causing breakages for HA users. This module generates and ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trace/util.py
homeassistant/components/trace/util.py
"""Support for script and automation tracing and debugging.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError from homeassistant.util.limited_size_dict 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/trace/models.py
homeassistant/components/trace/models.py
"""Containers for a script or automation trace.""" from __future__ import annotations import abc from collections import deque import datetime as dt from typing import Any from homeassistant.core import Context from homeassistant.helpers.trace import ( TraceElement, script_execution_get, trace_id_get, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trace/websocket_api.py
homeassistant/components/trace/websocket_api.py
"""Websocket API for automation.""" import json from typing import Any import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.dispatcher import ( DATA_DIS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trace/const.py
homeassistant/components/trace/const.py
"""Shared constants for script and automation tracing and debugging.""" from __future__ import annotations from typing import TYPE_CHECKING from homeassistant.util.hass_dict import HassKey if TYPE_CHECKING: from homeassistant.helpers.storage import Store from .models import TraceData CONF_STORED_TRACES =...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/trace/__init__.py
homeassistant/components/trace/__init__.py
"""Support for script and automation tracing and debugging.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant.const import EVENT_HOMEASSISTANT_STOP from homeassistant.core import Event, HomeAssistant from homeassistant.exceptions import HomeAssistantError 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/krispol/__init__.py
homeassistant/components/krispol/__init__.py
"""Virtual integration: Krispol."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ridwell/diagnostics.py
homeassistant/components/ridwell/diagnostics.py
"""Diagnostics support for Ridwell.""" from __future__ import annotations import dataclasses from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_UNIQUE_ID, CONF_USERNAME 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/ridwell/switch.py
homeassistant/components/ridwell/switch.py
"""Support for Ridwell buttons.""" from __future__ import annotations from typing import Any from aioridwell.errors import RidwellError from aioridwell.model import EventState, RidwellAccount from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.config_entries 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/ridwell/const.py
homeassistant/components/ridwell/const.py
"""Constants for the Ridwell integration.""" import logging DOMAIN = "ridwell" LOGGER = logging.getLogger(__package__) SENSOR_TYPE_NEXT_PICKUP = "next_pickup" CONF_CALENDAR_TITLE = "conf_calendar_title" CALENDAR_TITLE_STATUS = "pickup_status" CALENDAR_TITLE_ROTATING = "rotating_category" CALENDAR_TITLE_NONE = "no...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ridwell/coordinator.py
homeassistant/components/ridwell/coordinator.py
"""Define a Ridwell coordinator.""" from __future__ import annotations import asyncio from datetime import timedelta from typing import cast from aioridwell.client import async_get_client from aioridwell.errors import InvalidCredentialsError, RidwellError from aioridwell.model import RidwellAccount, RidwellPickupEve...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ridwell/sensor.py
homeassistant/components/ridwell/sensor.py
"""Support for Ridwell sensors.""" from __future__ import annotations from collections.abc import Mapping from datetime import date from typing import Any from aioridwell.model import RidwellAccount from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, )...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ridwell/__init__.py
homeassistant/components/ridwell/__init__.py
"""The Ridwell integration.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import entity_registry as er from .const import DOM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ridwell/entity.py
homeassistant/components/ridwell/entity.py
"""Define a base Ridwell entity.""" from __future__ import annotations from datetime import date from aioridwell.model import RidwellAccount, RidwellPickupEvent from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity 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/ridwell/calendar.py
homeassistant/components/ridwell/calendar.py
"""Support for Ridwell calendars.""" from __future__ import annotations import datetime from aioridwell.model import PickupCategory, RidwellAccount, RidwellPickupEvent from homeassistant.components.calendar import CalendarEntity, CalendarEvent from homeassistant.config_entries import ConfigEntry 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/ridwell/config_flow.py
homeassistant/components/ridwell/config_flow.py
"""Config flow for Ridwell integration.""" from __future__ import annotations from collections.abc import Mapping from typing import TYPE_CHECKING, Any from aioridwell import async_get_client from aioridwell.errors import InvalidCredentialsError, RidwellError import voluptuous as vol from homeassistant.config_entri...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rympro/const.py
homeassistant/components/rympro/const.py
"""Constants for the Read Your Meter Pro integration.""" DOMAIN = "rympro"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rympro/coordinator.py
homeassistant/components/rympro/coordinator.py
"""The Read Your Meter Pro integration.""" from __future__ import annotations from datetime import timedelta import logging from pyrympro import CannotConnectError, OperationError, RymPro, UnauthorizedError from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant 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/rympro/sensor.py
homeassistant/components/rympro/sensor.py
"""Sensor for RymPro meters.""" from __future__ import annotations from dataclasses import dataclass from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.cons...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/rympro/__init__.py
homeassistant/components/rympro/__init__.py
"""The Read Your Meter Pro integration.""" from __future__ import annotations import logging from pyrympro import CannotConnectError, RymPro, UnauthorizedError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_TOKEN, Platform 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/rympro/config_flow.py
homeassistant/components/rympro/config_flow.py
"""Config flow for Read Your Meter Pro integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from pyrympro import CannotConnectError, RymPro, UnauthorizedError import voluptuous as vol from homeassistant.config_entries import SOURCE_REAUTH, 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/mjpeg/util.py
homeassistant/components/mjpeg/util.py
"""Utilities for MJPEG IP Camera.""" import logging class NoHeaderErrorFilter(logging.Filter): """Filter out urllib3 Header Parsing Errors due to a urllib3 bug.""" def filter(self, record: logging.LogRecord) -> bool: """Filter out Header Parsing Errors.""" return "Failed to parse headers" no...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mjpeg/camera.py
homeassistant/components/mjpeg/camera.py
"""Support for IP Cameras.""" from __future__ import annotations import asyncio from collections.abc import AsyncIterator from contextlib import suppress import aiohttp from aiohttp import web import httpx from yarl import URL from homeassistant.components.camera import Camera from homeassistant.config_entries 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/mjpeg/const.py
homeassistant/components/mjpeg/const.py
"""Constants for the MJPEG integration.""" import logging from typing import Final from homeassistant.const import Platform DOMAIN: Final = "mjpeg" PLATFORMS: Final = [Platform.CAMERA] LOGGER = logging.getLogger(__package__) CONF_MJPEG_URL: Final = "mjpeg_url" CONF_STILL_IMAGE_URL: Final = "still_image_url"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mjpeg/__init__.py
homeassistant/components/mjpeg/__init__.py
"""The MJPEG IP Camera integration.""" 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 from .camera import MjpegCamera from .const import CONF_MJPEG_URL, 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/mjpeg/config_flow.py
homeassistant/components/mjpeg/config_flow.py
"""Config flow to configure the MJPEG IP Camera integration.""" from __future__ import annotations from collections.abc import Mapping from http import HTTPStatus from typing import Any import requests from requests.auth import HTTPBasicAuth, HTTPDigestAuth from requests.exceptions import HTTPError, Timeout import v...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/arwn/sensor.py
homeassistant/components/arwn/sensor.py
"""Support for collecting data from the ARWN project.""" from __future__ import annotations import logging from typing import Any from homeassistant.components import mqtt from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorStateClass, ) from homeassistant.const import DE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/arwn/__init__.py
homeassistant/components/arwn/__init__.py
"""The arwn 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/citybikes/sensor.py
homeassistant/components/citybikes/sensor.py
"""Sensor for the CityBikes data.""" from __future__ import annotations import asyncio from datetime import timedelta import logging import sys import aiohttp from citybikes import __version__ as CITYBIKES_CLIENT_VERSION from citybikes.asyncio import Client as CitybikesClient import voluptuous as vol 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/citybikes/__init__.py
homeassistant/components/citybikes/__init__.py
"""The citybikes 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/open_router/conversation.py
homeassistant/components/open_router/conversation.py
"""Conversation support for OpenRouter.""" from typing import Literal from homeassistant.components import conversation from homeassistant.config_entries import ConfigSubentry from homeassistant.const import CONF_LLM_HASS_API, CONF_PROMPT, MATCH_ALL from homeassistant.core import HomeAssistant from homeassistant.help...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/open_router/const.py
homeassistant/components/open_router/const.py
"""Constants for the OpenRouter integration.""" import logging from homeassistant.const import CONF_LLM_HASS_API, CONF_PROMPT from homeassistant.helpers import llm DOMAIN = "open_router" LOGGER = logging.getLogger(__package__) CONF_RECOMMENDED = "recommended" RECOMMENDED_CONVERSATION_OPTIONS = { CONF_RECOMMEND...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/open_router/ai_task.py
homeassistant/components/open_router/ai_task.py
"""AI Task integration for OpenRouter.""" from __future__ import annotations from json import JSONDecodeError import logging from homeassistant.components import ai_task, conversation from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.entit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/open_router/__init__.py
homeassistant/components/open_router/__init__.py
"""The OpenRouter integration.""" from __future__ import annotations from openai import AsyncOpenAI, AuthenticationError, OpenAIError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_API_KEY, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/open_router/entity.py
homeassistant/components/open_router/entity.py
"""Base entity for Open Router.""" from __future__ import annotations import base64 from collections.abc import AsyncGenerator, Callable import json from mimetypes import guess_file_type from pathlib import Path from typing import TYPE_CHECKING, Any, Literal import openai from openai.types.chat import ( ChatComp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/open_router/config_flow.py
homeassistant/components/open_router/config_flow.py
"""Config flow for OpenRouter integration.""" from __future__ import annotations import logging from typing import Any from python_open_router import ( Model, OpenRouterClient, OpenRouterError, SupportedParameter, ) import voluptuous as vol from homeassistant.config_entries import ( SOURCE_USER,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/graphite/__init__.py
homeassistant/components/graphite/__init__.py
"""Support for sending data to a Graphite installation.""" from contextlib import suppress import logging import queue import socket import threading import time import voluptuous as vol from homeassistant.const import ( CONF_HOST, CONF_PORT, CONF_PREFIX, CONF_PROTOCOL, EVENT_HOMEASSISTANT_START,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/diagnostics.py
homeassistant/components/airgradient/diagnostics.py
"""Diagnostics support for Airgradient.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.core import HomeAssistant from . import AirGradientConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: AirGradientConfigEntry...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/switch.py
homeassistant/components/airgradient/switch.py
"""Support for AirGradient switch entities.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from airgradient import AirGradientClient, Config from airgradient.models import ConfigurationControl from homeassistant.components.switch import ( DOMAIN as SWI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/number.py
homeassistant/components/airgradient/number.py
"""Support for AirGradient number entities.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass from airgradient import AirGradientClient, Config from airgradient.models import ConfigurationControl from homeassistant.components.number import ( DOMAIN as NUMBER_DOMAIN, NumberE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/const.py
homeassistant/components/airgradient/const.py
"""Constants for the Airgradient integration.""" import logging from airgradient import PmStandard DOMAIN = "airgradient" LOGGER = logging.getLogger(__package__) PM_STANDARD = { PmStandard.UGM3: "ugm3", PmStandard.USAQI: "us_aqi", } PM_STANDARD_REVERSE = {v: k for k, v in PM_STANDARD.items()}
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/coordinator.py
homeassistant/components/airgradient/coordinator.py
"""Define an object to manage fetching AirGradient data.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta from airgradient import AirGradientClient, AirGradientError, Config, Measures from homeassistant.config_entries import ConfigEntry from homeassistant.core 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/airgradient/update.py
homeassistant/components/airgradient/update.py
"""Airgradient Update platform.""" from datetime import timedelta import logging from airgradient import AirGradientConnectionError from propcache.api import cached_property from homeassistant.components.update import UpdateDeviceClass, UpdateEntity from homeassistant.core import HomeAssistant from homeassistant.hel...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/sensor.py
homeassistant/components/airgradient/sensor.py
"""Support for AirGradient sensors.""" from collections.abc import Callable from dataclasses import dataclass from airgradient import Config from airgradient.models import ( ConfigurationControl, LedBarMode, Measures, TemperatureUnit, ) from homeassistant.components.sensor import ( SensorDeviceCl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/__init__.py
homeassistant/components/airgradient/__init__.py
"""The Airgradient integration.""" from __future__ import annotations from airgradient import AirGradientClient from homeassistant.const import CONF_HOST, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .coordinator import AirGradie...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airgradient/entity.py
homeassistant/components/airgradient/entity.py
"""Base class for AirGradient entities.""" from collections.abc import Callable, Coroutine from typing import Any, Concatenate from airgradient import AirGradientConnectionError, AirGradientError, get_model_name from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import 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/airgradient/button.py
homeassistant/components/airgradient/button.py
"""Support for AirGradient buttons.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass from airgradient import AirGradientClient, ConfigurationControl from homeassistant.components.button import ( DOMAIN as BUTTON_DOMAIN, ButtonEntity, ButtonEntityDescription, ) 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/airgradient/select.py
homeassistant/components/airgradient/select.py
"""Support for AirGradient select entities.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass from airgradient import AirGradientClient, Config from airgradient.models import ConfigurationControl, LedBarMode, TemperatureUnit from homeassistant.components.select import ( 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/airgradient/config_flow.py
homeassistant/components/airgradient/config_flow.py
"""Config flow for Airgradient.""" from collections.abc import Mapping from typing import Any from airgradient import ( AirGradientClient, AirGradientError, AirGradientParseError, ConfigurationControl, ) from awesomeversion import AwesomeVersion import voluptuous as vol from homeassistant.config_entr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/slide_local/diagnostics.py
homeassistant/components/slide_local/diagnostics.py
"""Provides diagnostics for slide_local.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_PASSWORD from homeassistant.core import HomeAssistant from .coordinator import SlideConfigEntry TO_REDACT = [...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/slide_local/cover.py
homeassistant/components/slide_local/cover.py
"""Support for Slide covers.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.cover import ATTR_POSITION, CoverDeviceClass, CoverEntity from homeassistant.const import STATE_CLOSED, STATE_CLOSING, STATE_OPENING 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/slide_local/switch.py
homeassistant/components/slide_local/switch.py
"""Support for Slide switch.""" from __future__ import annotations from typing import Any from goslideapi.goslideapi import ( AuthenticationFailed, ClientConnectionError, ClientTimeoutError, DigestAuthCalcError, ) from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity 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/slide_local/const.py
homeassistant/components/slide_local/const.py
"""Define constants for the Slide component.""" API_LOCAL = "api_local" ATTR_TOUCHGO = "touchgo" CONF_INVERT_POSITION = "invert_position" CONF_VERIFY_SSL = "verify_ssl" DOMAIN = "slide_local" SLIDES = "slides" SLIDES_LOCAL = "slides_local" DEFAULT_OFFSET = 0.15 DEFAULT_RETRY = 120 SERVICE_CALIBRATE = "calibrate" 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/slide_local/coordinator.py
homeassistant/components/slide_local/coordinator.py
"""DataUpdateCoordinator for slide_local integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from goslideapi.goslideapi import ( AuthenticationFailed, ClientConnectionError, ClientTimeoutError, DigestAuthCalcError, GoSlideLocal 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/slide_local/__init__.py
homeassistant/components/slide_local/__init__.py
"""Component for the Slide local API.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import SlideConfigEntry, SlideCoordinator PLATFORMS = [Platform.BUTTON, Platform.COVER, Platform.SWITCH] async def async_setup_entry(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/slide_local/entity.py
homeassistant/components/slide_local/entity.py
"""Entities for slide_local integration.""" from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .coordinator import SlideCoordinator class SlideEntity(CoordinatorEntity[SlideC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/slide_local/button.py
homeassistant/components/slide_local/button.py
"""Support for Slide button.""" from __future__ import annotations from goslideapi.goslideapi import ( AuthenticationFailed, ClientConnectionError, ClientTimeoutError, DigestAuthCalcError, ) from homeassistant.components.button import ButtonEntity from homeassistant.const import EntityCategory 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/slide_local/config_flow.py
homeassistant/components/slide_local/config_flow.py
"""Config flow for slide_local integration.""" from __future__ import annotations import logging from typing import Any from goslideapi.goslideapi import ( AuthenticationFailed, ClientConnectionError, ClientTimeoutError, DigestAuthCalcError, GoSlideLocal as SlideLocalApi, ) import voluptuous as v...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/swiss_public_transport/helper.py
homeassistant/components/swiss_public_transport/helper.py
"""Helper functions for swiss_public_transport.""" from collections.abc import Mapping from datetime import timedelta from typing import Any from opendata_transport import OpendataTransport from homeassistant.util import dt as dt_util from .const import ( CONF_DESTINATION, CONF_START, CONF_TIME_FIXED, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false