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/permobil/sensor.py
homeassistant/components/permobil/sensor.py
"""Platform for sensor integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from typing import Any from mypermobil import ( BATTERY_AMPERE_HOURS_LEFT, BATTERY_CHARGE_TIME_LEFT, BATTERY_DISTANCE_LEFT, BATTERY_INDOOR_DR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/permobil/__init__.py
homeassistant/components/permobil/__init__.py
"""The MyPermobil integration.""" from __future__ import annotations import logging from mypermobil import MyPermobil, MyPermobilClientException from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_CODE, CONF_EMAIL, CONF_REGION, CONF_TOKEN, CONF_TTL, Pl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/permobil/entity.py
homeassistant/components/permobil/entity.py
"""PermobilEntity class.""" from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import MyPermobilCoordinator class PermobilEntity(Coo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/permobil/config_flow.py
homeassistant/components/permobil/config_flow.py
"""Config flow for MyPermobil integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from mypermobil import ( MyPermobil, MyPermobilAPIException, MyPermobilClientException, MyPermobilEulaException, ) import voluptuous as vol 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/lookin/media_player.py
homeassistant/components/lookin/media_player.py
"""The lookin integration light platform.""" from __future__ import annotations import logging from aiolookin import Remote from homeassistant.components.media_player import ( MediaPlayerDeviceClass, MediaPlayerEntity, MediaPlayerEntityFeature, MediaPlayerState, ) from homeassistant.const import Pla...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lookin/models.py
homeassistant/components/lookin/models.py
"""The lookin integration models.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from aiolookin import ( Device, LookInHttpProtocol, LookinUDPSubscriptions, MeteoSensor, Remote, ) from homeassistant.config_entries import ConfigEntry from .coordina...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lookin/const.py
homeassistant/components/lookin/const.py
"""The lookin integration constants.""" from __future__ import annotations from datetime import timedelta from typing import Final from homeassistant.const import Platform MODEL_NAMES: Final = ["LOOKin Remote", "LOOKin Remote", "LOOKin Remote2"] DOMAIN: Final = "lookin" PLATFORMS: Final = [ Platform.CLIMATE, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lookin/coordinator.py
homeassistant/components/lookin/coordinator.py
"""Coordinator for lookin devices.""" from __future__ import annotations from collections.abc import Awaitable, Callable from datetime import timedelta import logging import time from typing import TYPE_CHECKING from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.update_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/lookin/sensor.py
homeassistant/components/lookin/sensor.py
"""The lookin integration sensor platform.""" from __future__ import annotations import logging from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import PERCENTAGE, UnitOfTemperature 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/lookin/__init__.py
homeassistant/components/lookin/__init__.py
"""The lookin integration.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine import logging from typing import Any import aiohttp from aiolookin import ( Climate, LookInHttpProtocol, LookinUDPSubscriptions, MeteoSensor, NoUsableService, Remot...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lookin/entity.py
homeassistant/components/lookin/entity.py
"""The lookin integration entity.""" from __future__ import annotations from abc import abstractmethod import logging from aiolookin import ( POWER_CMD, POWER_OFF_CMD, POWER_ON_CMD, Climate, MeteoSensor, Remote, ) from aiolookin.models import Device, UDPCommandType, UDPEvent from homeassista...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lookin/climate.py
homeassistant/components/lookin/climate.py
"""The lookin integration climate platform.""" from __future__ import annotations import logging from typing import Any, Final, cast from aiolookin import Climate, MeteoSensor, Remote from aiolookin.models import UDPCommandType, UDPEvent from homeassistant.components.climate import ( ATTR_HVAC_MODE, FAN_AUT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lookin/light.py
homeassistant/components/lookin/light.py
"""The lookin integration light platform.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.light import ColorMode, LightEntity from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform 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/lookin/config_flow.py
homeassistant/components/lookin/config_flow.py
"""The lookin integration config_flow.""" from __future__ import annotations import logging from typing import Any import aiohttp from aiolookin import Device, LookInHttpProtocol, NoUsableService import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.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/homematic/cover.py
homeassistant/components/homematic/cover.py
"""Support for HomeMatic covers.""" from __future__ import annotations from typing import Any from homeassistant.components.cover import ( ATTR_POSITION, ATTR_TILT_POSITION, CoverDeviceClass, CoverEntity, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform impor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homematic/switch.py
homeassistant/components/homematic/switch.py
"""Support for HomeMatic switches.""" from __future__ import annotations from typing import Any from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import ConfigTy...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homematic/binary_sensor.py
homeassistant/components/homematic/binary_sensor.py
"""Support for HomeMatic binary sensors.""" from __future__ import annotations from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassista...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homematic/lock.py
homeassistant/components/homematic/lock.py
"""Support for Homematic locks.""" from __future__ import annotations from typing import Any from homeassistant.components.lock import LockEntity, LockEntityFeature from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing imp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homematic/const.py
homeassistant/components/homematic/const.py
"""Constants for the homematic component.""" DOMAIN = "homematic" DISCOVER_SWITCHES = "homematic.switch" DISCOVER_LIGHTS = "homematic.light" DISCOVER_SENSORS = "homematic.sensor" DISCOVER_BINARY_SENSORS = "homematic.binary_sensor" DISCOVER_COVER = "homematic.cover" DISCOVER_CLIMATE = "homematic.climate" DISCOVER_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/homematic/sensor.py
homeassistant/components/homematic/sensor.py
"""Support for HomeMatic sensors.""" from __future__ import annotations from copy import copy import logging from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( ATTR_NAME, CONCENTRATION_M...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homematic/__init__.py
homeassistant/components/homematic/__init__.py
"""Support for HomeMatic devices.""" from datetime import datetime from functools import partial import logging from pyhomematic import HMConnection import voluptuous as vol from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_MODE, ATTR_NAME, ATTR_TIME, CONF_HOST, CONF_HOSTS, CONF_PASS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homematic/entity.py
homeassistant/components/homematic/entity.py
"""Homematic base entity.""" from __future__ import annotations from abc import abstractmethod from datetime import timedelta import logging from typing import Any from pyhomematic import HMConnection from pyhomematic.devicetypes.generic import HMGeneric from homeassistant.const import ATTR_NAME 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/homematic/climate.py
homeassistant/components/homematic/climate.py
"""Support for Homematic thermostats.""" from __future__ import annotations from typing import Any from homeassistant.components.climate import ( PRESET_BOOST, PRESET_COMFORT, PRESET_ECO, PRESET_NONE, ClimateEntity, ClimateEntityFeature, HVACMode, ) from homeassistant.const import ATTR_TE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homematic/notify.py
homeassistant/components/homematic/notify.py
"""Notification support for Homematic.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.notify import ( ATTR_DATA, PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA, BaseNotificationService, ) from homeassistant.core import HomeAssistant from homeassistant.helpers 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/homematic/light.py
homeassistant/components/homematic/light.py
"""Support for Homematic lights.""" from __future__ import annotations from typing import Any from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ATTR_EFFECT, ATTR_HS_COLOR, ATTR_TRANSITION, ColorMode, LightEntity, LightEntityFeature, ) 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/senz/api.py
homeassistant/components/senz/api.py
"""API for nVent RAYCHEM SENZ bound to Home Assistant OAuth.""" from typing import cast from httpx import AsyncClient from pysenz import AbstractSENZAuth from homeassistant.helpers import config_entry_oauth2_flow class SENZConfigEntryAuth(AbstractSENZAuth): """Provide nVent RAYCHEM SENZ authentication tied to ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/senz/diagnostics.py
homeassistant/components/senz/diagnostics.py
"""Diagnostics platform for Senz integration.""" from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from . import SENZConfigEntry TO_REDACT = [ "access_token", "refresh_token", ] async def async_get_config_entry_diagnostic...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/senz/application_credentials.py
homeassistant/components/senz/application_credentials.py
"""Application credentials platform for senz.""" from pysenz import AUTHORIZATION_ENDPOINT, TOKEN_ENDPOINT from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssistant async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/senz/const.py
homeassistant/components/senz/const.py
"""Constants for the nVent RAYCHEM SENZ integration.""" DOMAIN = "senz"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/senz/sensor.py
homeassistant/components/senz/sensor.py
"""nVent RAYCHEM SENZ sensor platform.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from pysenz import Thermostat from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/senz/__init__.py
homeassistant/components/senz/__init__.py
"""The nVent RAYCHEM SENZ integration.""" from __future__ import annotations from datetime import timedelta from http import HTTPStatus import logging from httpx import HTTPStatusError, RequestError import jwt from pysenz import SENZAPI, Thermostat from homeassistant.config_entries import ConfigEntry from homeassis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/senz/climate.py
homeassistant/components/senz/climate.py
"""nVent RAYCHEM SENZ climate platform.""" from __future__ import annotations from typing import Any from httpx import RequestError from pysenz import MODE_AUTO, Thermostat from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, HVACAction, HVACMode, ) 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/senz/config_flow.py
homeassistant/components/senz/config_flow.py
"""Config flow for nVent RAYCHEM SENZ.""" from collections.abc import Mapping import logging from typing import Any import jwt from homeassistant.config_entries import ( SOURCE_REAUTH, SOURCE_RECONFIGURE, ConfigFlowResult, ) from homeassistant.helpers import config_entry_oauth2_flow from .const import 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/update/device_trigger.py
homeassistant/components/update/device_trigger.py
"""Provides device triggers for update entities.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import toggle_entity from homeassistant.const import CONF_DOMAIN from homeassistant.core import CALLBACK_TYPE, HomeAssistant from homeassistant.helpers.trigg...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/update/significant_change.py
homeassistant/components/update/significant_change.py
"""Helper to test significant update state changes.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant, callback from .const import ATTR_INSTALLED_VERSION, ATTR_LATEST_VERSION @callback def async_check_significant_change( hass: HomeAssistant, old_stat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/update/const.py
homeassistant/components/update/const.py
"""Constants for the update component.""" from __future__ import annotations from enum import IntFlag from typing import Final DOMAIN: Final = "update" class UpdateEntityFeature(IntFlag): """Supported features of the update entity.""" INSTALL = 1 SPECIFIC_VERSION = 2 PROGRESS = 4 BACKUP = 8 ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/update/__init__.py
homeassistant/components/update/__init__.py
"""Component to allow for providing device or service updates.""" from __future__ import annotations from datetime import timedelta from enum import StrEnum from functools import lru_cache import logging from typing import Any, Final, final from awesomeversion import AwesomeVersion, AwesomeVersionCompareException 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/update/trigger.py
homeassistant/components/update/trigger.py
"""Provides triggers for update platform.""" from homeassistant.const import STATE_ON from homeassistant.core import HomeAssistant from homeassistant.helpers.trigger import Trigger, make_entity_target_state_trigger from .const import DOMAIN TRIGGERS: dict[str, type[Trigger]] = { "update_became_available": make_e...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/conversation/http.py
homeassistant/components/conversation/http.py
"""HTTP endpoints for conversation integration.""" from __future__ import annotations from dataclasses import asdict from typing import Any from aiohttp import web import voluptuous as vol from homeassistant.components import http, websocket_api from homeassistant.components.http.data_validator import RequestDataVa...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/conversation/util.py
homeassistant/components/conversation/util.py
"""Utility functions for conversation integration.""" from __future__ import annotations import logging from homeassistant.core import callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import intent, llm from .chat_log import AssistantContent, ChatLog, ToolResultContent 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/conversation/models.py
homeassistant/components/conversation/models.py
"""Agent foundation for conversation integration.""" from __future__ import annotations from abc import ABC, abstractmethod from dataclasses import dataclass from typing import Any, Literal from homeassistant.core import Context from homeassistant.helpers import intent, llm from .const import DOMAIN @dataclass(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/conversation/trace.py
homeassistant/components/conversation/trace.py
"""Debug traces for conversation.""" from collections.abc import Generator from contextlib import contextmanager from contextvars import ContextVar from dataclasses import asdict, dataclass, field import enum from typing import Any from homeassistant.util import dt as dt_util, ulid as ulid_util from homeassistant.uti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/conversation/const.py
homeassistant/components/conversation/const.py
"""Const for conversation integration.""" from __future__ import annotations from enum import IntFlag, StrEnum from typing import TYPE_CHECKING from homeassistant.util.hass_dict import HassKey if TYPE_CHECKING: from homeassistant.helpers.entity_component import EntityComponent from .entity import Conversat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/conversation/chat_log.py
homeassistant/components/conversation/chat_log.py
"""Conversation chat log.""" from __future__ import annotations import asyncio from collections.abc import AsyncGenerator, AsyncIterable, Callable, Generator from contextlib import contextmanager from contextvars import ContextVar from dataclasses import asdict, dataclass, field, replace from datetime import datetime...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/conversation/default_agent.py
homeassistant/components/conversation/default_agent.py
"""Standard conversation implementation for Home Assistant.""" from __future__ import annotations import asyncio from collections import OrderedDict from collections.abc import Callable, Iterable from dataclasses import dataclass from enum import Enum, auto import logging from pathlib import Path import time from typ...
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/conversation/__init__.py
homeassistant/components/conversation/__init__.py
"""Support for functionality to have conversations with Home Assistant.""" from __future__ import annotations from collections.abc import Callable import logging from typing import Any, Literal from hassil.recognize import RecognizeResult import voluptuous as vol from homeassistant.config_entries import ConfigEntry...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/conversation/entity.py
homeassistant/components/conversation/entity.py
"""Entity for conversation integration.""" from abc import abstractmethod from typing import Literal, final from homeassistant.const import STATE_UNAVAILABLE, STATE_UNKNOWN from homeassistant.helpers.chat_session import async_get_chat_session from homeassistant.helpers.restore_state import RestoreEntity 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/conversation/trigger.py
homeassistant/components/conversation/trigger.py
"""Offer sentence based automation rules.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from hassil.recognize import RecognizeResult from hassil.util import ( PUNCTUATION_END, PUNCTUATION_END_WORD, PUNCTUATIO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/conversation/agent_manager.py
homeassistant/components/conversation/agent_manager.py
"""Agent foundation for conversation integration.""" from __future__ import annotations import dataclasses import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.core import ( CALLBACK_TYPE, Context, HomeAssistant, async_get_hass, callback, ) 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/notion/diagnostics.py
homeassistant/components/notion/diagnostics.py
"""Diagnostics support for Notion.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_EMAIL, CONF_UNIQUE_ID, CONF_USERNAME from homeassistant.core imp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notion/util.py
homeassistant/components/notion/util.py
"""Define notion utilities.""" from aionotion import ( async_get_client_with_credentials as cwc, async_get_client_with_refresh_token as cwrt, ) from aionotion.client import Client from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client from homeassistant.helpers.instance_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notion/binary_sensor.py
homeassistant/components/notion/binary_sensor.py
"""Support for Notion binary sensors.""" from __future__ import annotations from dataclasses import dataclass from typing import Literal from aionotion.listener.models import ListenerKind from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntity...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notion/const.py
homeassistant/components/notion/const.py
"""Define constants for the Notion integration.""" import logging DOMAIN = "notion" LOGGER = logging.getLogger(__package__) CONF_REFRESH_TOKEN = "refresh_token" CONF_USER_UUID = "user_uuid" SENSOR_BATTERY = "low_battery" SENSOR_DOOR = "door" SENSOR_GARAGE_DOOR = "garage_door" SENSOR_LEAK = "leak" SENSOR_MISSING = "...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notion/coordinator.py
homeassistant/components/notion/coordinator.py
"""Define a Notion data coordinator.""" import asyncio from dataclasses import dataclass, field from datetime import timedelta from typing import Any from aionotion.bridge.models import Bridge from aionotion.client import Client from aionotion.errors import InvalidCredentialsError, NotionError from aionotion.listener...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notion/sensor.py
homeassistant/components/notion/sensor.py
"""Support for Notion sensors.""" from dataclasses import dataclass from aionotion.listener.models import ListenerKind from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notion/__init__.py
homeassistant/components/notion/__init__.py
"""Support for Notion.""" from __future__ import annotations from datetime import timedelta from typing import Any from uuid import UUID from aionotion.errors import InvalidCredentialsError, NotionError from aionotion.listener.models import ListenerKind from homeassistant.config_entries import ConfigEntry 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/notion/entity.py
homeassistant/components/notion/entity.py
"""Support for Notion.""" from __future__ import annotations from dataclasses import dataclass from aionotion.bridge.models import Bridge from aionotion.listener.models import Listener, ListenerKind from homeassistant.core import callback from homeassistant.helpers import device_registry as dr from homeassistant.he...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notion/config_flow.py
homeassistant/components/notion/config_flow.py
"""Config flow to configure the Notion integration.""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass, field from typing import Any from aionotion.errors import InvalidCredentialsError, NotionError import voluptuous as vol from homeassistant.config_entries 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/opower/repairs.py
homeassistant/components/opower/repairs.py
"""Repairs for Opower.""" from __future__ import annotations from homeassistant.components.repairs import RepairsFlow from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResult class UnsupportedUtilityFixFlow(RepairsFlow): """Handler for removing a configuration entry that...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opower/const.py
homeassistant/components/opower/const.py
"""Constants for the Opower integration.""" DOMAIN = "opower" CONF_UTILITY = "utility" CONF_TOTP_SECRET = "totp_secret" CONF_LOGIN_DATA = "login_data"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opower/coordinator.py
homeassistant/components/opower/coordinator.py
"""Coordinator to handle Opower connections.""" from datetime import datetime, timedelta import logging from typing import Any, cast from opower import ( Account, AggregateType, CostRead, Forecast, MeterType, Opower, ReadResolution, create_cookie_jar, ) from opower.exceptions import Ap...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opower/sensor.py
homeassistant/components/opower/sensor.py
"""Support for Opower sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import date from opower import Forecast, MeterType, UnitOfMeasure from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, Senso...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opower/__init__.py
homeassistant/components/opower/__init__.py
"""The Opower integration.""" from __future__ import annotations from opower import select_utility from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import issue_registry as ir from .const import CONF_UTILITY, DOMAIN from .coordinator import OpowerConfi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opower/config_flow.py
homeassistant/components/opower/config_flow.py
"""Config flow for Opower integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from opower import ( CannotConnect, InvalidAuth, MfaChallenge, MfaHandlerBase, Opower, create_cookie_jar, get_supported_utility_names, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/quantum_gateway/device_tracker.py
homeassistant/components/quantum_gateway/device_tracker.py
"""Support for Verizon FiOS Quantum Gateways.""" from __future__ import annotations from quantum_gateway import QuantumGatewayScanner from requests.exceptions import RequestException import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, PLATFORM_SCHEM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/quantum_gateway/const.py
homeassistant/components/quantum_gateway/const.py
"""Constants for Quantum Gateway.""" import logging LOGGER = logging.getLogger(__package__) DEFAULT_HOST = "myfiosgateway.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/quantum_gateway/__init__.py
homeassistant/components/quantum_gateway/__init__.py
"""The quantum_gateway 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/modbus/modbus.py
homeassistant/components/modbus/modbus.py
"""Support for Modbus.""" from __future__ import annotations import asyncio from collections import namedtuple from typing import Any from pymodbus.client import ( AsyncModbusSerialClient, AsyncModbusTcpClient, AsyncModbusUdpClient, ) from pymodbus.exceptions import ModbusException from pymodbus.framer 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/modbus/cover.py
homeassistant/components/modbus/cover.py
"""Support for Modbus covers.""" from __future__ import annotations from typing import Any from homeassistant.components.cover import CoverEntity, CoverEntityFeature, CoverState from homeassistant.const import CONF_COVERS, CONF_NAME, STATE_UNAVAILABLE, STATE_UNKNOWN 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/modbus/switch.py
homeassistant/components/modbus/switch.py
"""Support for Modbus switches.""" from __future__ import annotations from typing import Any from homeassistant.components.switch import SwitchEntity from homeassistant.const import CONF_NAME, CONF_SWITCHES from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCall...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modbus/validators.py
homeassistant/components/modbus/validators.py
"""Validate Modbus configuration.""" from __future__ import annotations from collections import namedtuple import logging import struct from typing import Any import voluptuous as vol from homeassistant.components.climate import HVACMode from homeassistant.const import ( CONF_ADDRESS, CONF_COUNT, CONF_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/modbus/binary_sensor.py
homeassistant/components/modbus/binary_sensor.py
"""Support for Modbus Coil and Discrete Input sensors.""" from __future__ import annotations from typing import Any from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.const import ( CONF_BINARY_SENSORS, CONF_DEVICE_CLASS, CONF_NAME, CONF_UNIQUE_ID, STATE_ON, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modbus/const.py
homeassistant/components/modbus/const.py
"""Constants used in modbus integration.""" from enum import Enum import logging from homeassistant.const import ( CONF_ADDRESS, CONF_BINARY_SENSORS, CONF_COVERS, CONF_LIGHTS, CONF_SENSORS, CONF_SWITCHES, Platform, ) # configuration names CONF_BAUDRATE = "baudrate" CONF_BYTESIZE = "bytesi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modbus/fan.py
homeassistant/components/modbus/fan.py
"""Support for Modbus fans.""" from __future__ import annotations from typing import Any from homeassistant.components.fan import FanEntity, FanEntityFeature from homeassistant.const import CONF_NAME from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback 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/modbus/sensor.py
homeassistant/components/modbus/sensor.py
"""Support for Modbus Register sensors.""" from __future__ import annotations from typing import Any from homeassistant.components.sensor import ( CONF_STATE_CLASS, RestoreSensor, SensorEntity, ) from homeassistant.const import ( CONF_DEVICE_CLASS, CONF_NAME, CONF_OFFSET, CONF_SENSORS, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modbus/__init__.py
homeassistant/components/modbus/__init__.py
"""Support for Modbus.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant.components.binary_sensor import ( DEVICE_CLASSES_SCHEMA as BINARY_SENSOR_DEVICE_CLASSES_SCHEMA, ) from homeassistant.components.cover import ( DEVICE_CLASSES_SCHEMA as COVER_DEVICE_CLASSES...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modbus/entity.py
homeassistant/components/modbus/entity.py
"""Base implementation for all modbus platforms.""" from __future__ import annotations from abc import abstractmethod from collections.abc import Callable import copy from datetime import datetime, timedelta import struct from typing import Any, cast from homeassistant.const import ( CONF_ADDRESS, CONF_COMMA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modbus/climate.py
homeassistant/components/modbus/climate.py
"""Support for Generic Modbus Thermostats.""" from __future__ import annotations import struct from typing import Any, cast from homeassistant.components.climate import ( FAN_AUTO, FAN_DIFFUSE, FAN_FOCUS, FAN_HIGH, FAN_LOW, FAN_MEDIUM, FAN_MIDDLE, FAN_OFF, FAN_ON, FAN_TOP, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modbus/light.py
homeassistant/components/modbus/light.py
"""Support for Modbus lights.""" from __future__ import annotations from typing import Any from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ColorMode, LightEntity, ) from homeassistant.const import CONF_LIGHTS, CONF_NAME from homeassistant.core import 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/oem/__init__.py
homeassistant/components/oem/__init__.py
"""The oem 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/oem/climate.py
homeassistant/components/oem/climate.py
"""OpenEnergyMonitor Thermostat Support.""" from __future__ import annotations from typing import Any from oemthermostat import Thermostat import requests import voluptuous as vol from homeassistant.components.climate import ( PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeatu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qnap/const.py
homeassistant/components/qnap/const.py
"""The Qnap constants.""" CONF_DRIVES = "drives" CONF_NICS = "nics" CONF_VOLUMES = "volumes" DEFAULT_PORT = 8080 DEFAULT_TIMEOUT = 5 DEFAULT_SSL = False DEFAULT_VERIFY_SSL = True DOMAIN = "qnap"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qnap/coordinator.py
homeassistant/components/qnap/coordinator.py
"""Data coordinator for the qnap integration.""" from __future__ import annotations from contextlib import contextmanager, nullcontext from datetime import timedelta import logging from typing import Any import warnings from qnapstats import QNAPStats import urllib3 from homeassistant.config_entries import ConfigEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qnap/sensor.py
homeassistant/components/qnap/sensor.py
"""Support for QNAP NAS Sensors.""" from __future__ import annotations from datetime import timedelta from typing import Any from homeassistant import config_entries from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) 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/qnap/__init__.py
homeassistant/components/qnap/__init__.py
"""The qnap component.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .const import DOMAIN from .coordinator import QnapCoordinator PLATFORMS: list[Platform] = [ Platform.SENSOR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qnap/config_flow.py
homeassistant/components/qnap/config_flow.py
"""Config flow to configure qnap component.""" from __future__ import annotations import logging from typing import Any from qnapstats import QNAPStats from requests.exceptions import ConnectTimeout import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.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/victron_remote_monitoring/const.py
homeassistant/components/victron_remote_monitoring/const.py
"""Constants for the Victron VRM Solar Forecast integration.""" import logging DOMAIN = "victron_remote_monitoring" LOGGER = logging.getLogger(__package__) CONF_SITE_ID = "site_id" CONF_API_TOKEN = "api_token"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/victron_remote_monitoring/coordinator.py
homeassistant/components/victron_remote_monitoring/coordinator.py
"""VRM Coordinator and Client.""" from dataclasses import dataclass import datetime from victron_vrm import VictronVRMClient from victron_vrm.exceptions import AuthenticationError, VictronVRMError from victron_vrm.models.aggregations import ForecastAggregations from victron_vrm.utils import dt_now 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/victron_remote_monitoring/sensor.py
homeassistant/components/victron_remote_monitoring/sensor.py
"""Support for the VRM Solar Forecast sensor service.""" 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, Sens...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/victron_remote_monitoring/__init__.py
homeassistant/components/victron_remote_monitoring/__init__.py
"""The Victron VRM Solar Forecast integration.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import ( VictronRemoteMonitoringConfigEntry, VictronRemoteMonitoringDataUpdateCoordinator, ) _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/victron_remote_monitoring/energy.py
homeassistant/components/victron_remote_monitoring/energy.py
"""Victron Remote Monitoring energy platform.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntryState from homeassistant.core import HomeAssistant async def async_get_solar_forecast( hass: HomeAssistant, config_entry_id: str ) -> dict[str, dict[str, float | int]] | None: ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/victron_remote_monitoring/config_flow.py
homeassistant/components/victron_remote_monitoring/config_flow.py
"""Config flow for the Victron VRM Solar Forecast integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from victron_vrm import VictronVRMClient from victron_vrm.exceptions import AuthenticationError, VictronVRMError from victron_vrm.models impor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/accuweather/weather.py
homeassistant/components/accuweather/weather.py
"""Support for the AccuWeather service.""" from __future__ import annotations from typing import cast from homeassistant.components.weather import ( ATTR_FORECAST_CLOUD_COVERAGE, ATTR_FORECAST_CONDITION, ATTR_FORECAST_HUMIDITY, ATTR_FORECAST_NATIVE_APPARENT_TEMP, ATTR_FORECAST_NATIVE_PRECIPITATIO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/accuweather/diagnostics.py
homeassistant/components/accuweather/diagnostics.py
"""Diagnostics support for AccuWeather.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE from homeassistant.core import HomeAssistant from .coordinator import Ac...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/accuweather/system_health.py
homeassistant/components/accuweather/system_health.py
"""Provide info to system health.""" from __future__ import annotations from typing import Any from accuweather.const import ENDPOINT from homeassistant.components import system_health from homeassistant.core import HomeAssistant, callback from .const import DOMAIN from .coordinator import AccuWeatherConfigEntry ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/accuweather/const.py
homeassistant/components/accuweather/const.py
"""Constants for AccuWeather integration.""" from __future__ import annotations from datetime import timedelta from typing import Final from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, ATTR_CONDITION_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/accuweather/coordinator.py
homeassistant/components/accuweather/coordinator.py
"""The AccuWeather coordinator.""" from __future__ import annotations from asyncio import timeout from collections.abc import Awaitable, Callable from dataclasses import dataclass from datetime import timedelta import logging from typing import TYPE_CHECKING, Any from accuweather import AccuWeather, ApiError, Invali...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/accuweather/sensor.py
homeassistant/components/accuweather/sensor.py
"""Support for the AccuWeather service.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any, cast from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, )...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/accuweather/__init__.py
homeassistant/components/accuweather/__init__.py
"""The AccuWeather component.""" from __future__ import annotations import asyncio import logging from accuweather import AccuWeather from homeassistant.components.sensor import DOMAIN as SENSOR_PLATFORM from homeassistant.const import CONF_API_KEY, Platform 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/accuweather/config_flow.py
homeassistant/components/accuweather/config_flow.py
"""Adds config flow for AccuWeather.""" from __future__ import annotations from asyncio import timeout from collections.abc import Mapping from typing import Any from accuweather import AccuWeather, ApiError, InvalidApiKeyError, RequestsExceededError from aiohttp import ClientError from aiohttp.client_exceptions imp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false