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/watttime/__init__.py
homeassistant/components/watttime/__init__.py
"""The WattTime integration.""" from __future__ import annotations from datetime import timedelta from aiowatttime import Client from aiowatttime.emissions import RealTimeEmissionsResponseType from aiowatttime.errors import InvalidCredentialsError, WattTimeError 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/watttime/config_flow.py
homeassistant/components/watttime/config_flow.py
"""Config flow for WattTime integration.""" from __future__ import annotations from collections.abc import Mapping from typing import TYPE_CHECKING, Any from aiowatttime import Client from aiowatttime.errors import CoordinatesNotFoundError, InvalidCredentialsError import voluptuous as vol from homeassistant.config_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lannouncer/__init__.py
homeassistant/components/lannouncer/__init__.py
"""The lannouncer 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/lannouncer/notify.py
homeassistant/components/lannouncer/notify.py
"""Lannouncer platform for notify component.""" from __future__ import annotations import logging import socket from urllib.parse import urlencode import voluptuous as vol from homeassistant.components.notify import ( ATTR_DATA, PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA, BaseNotificationService, ) 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/template/schemas.py
homeassistant/components/template/schemas.py
"""Shared schemas for config entry and YAML config items.""" from __future__ import annotations import voluptuous as vol from homeassistant.const import ( CONF_DEVICE_ID, CONF_ENTITY_PICTURE_TEMPLATE, CONF_ICON, CONF_ICON_TEMPLATE, CONF_NAME, CONF_OPTIMISTIC, CONF_UNIQUE_ID, CONF_VARI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/weather.py
homeassistant/components/template/weather.py
"""Template platform that aggregates meteorological data.""" from __future__ import annotations from collections.abc import Callable from dataclasses import asdict, dataclass from functools import partial from typing import TYPE_CHECKING, Any, Literal, Self import voluptuous as vol from homeassistant.components.wea...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/image.py
homeassistant/components/template/image.py
"""Support for image which integrates with other components.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.components.image import ( DOMAIN as IMAGE_DOMAIN, ENTITY_ID_FORMAT, ImageEntity, ) from homeassistant.config_entries import...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/event.py
homeassistant/components/template/event.py
"""Support for events which integrates with other components.""" from __future__ import annotations import logging from typing import Any, Final import voluptuous as vol from homeassistant.components.event import ( DOMAIN as EVENT_DOMAIN, ENTITY_ID_FORMAT, EventDeviceClass, EventEntity, ) 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/template/vacuum.py
homeassistant/components/template/vacuum.py
"""Support for Template vacuums.""" from __future__ import annotations from collections.abc import Generator, Sequence import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.vacuum import ( ATTR_FAN_SPEED, DOMAIN as VACUUM_DOMAIN, SERVICE_CLEAN_SPOT, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/template_entity.py
homeassistant/components/template/template_entity.py
"""TemplateEntity utility class.""" from __future__ import annotations from collections.abc import Callable, Mapping import contextlib import logging from typing import Any, cast from propcache.api import under_cached_property import voluptuous as vol from homeassistant.components.blueprint import CONF_USE_BLUEPRIN...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/cover.py
homeassistant/components/template/cover.py
"""Support for covers which integrate with other components.""" from __future__ import annotations from collections.abc import Generator, Sequence import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.cover import ( ATTR_POSITION, ATTR_TILT_POSITION, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/switch.py
homeassistant/components/template/switch.py
"""Support for switches which integrates with other components.""" from __future__ import annotations from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.switch import ( DOMAIN as SWITCH_DOMAIN, ENTITY_ID_FORMAT, PLATFORM_SCHEMA as SWITCH_PLATFORM_SCHEMA, 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/template/number.py
homeassistant/components/template/number.py
"""Support for numbers which integrates with other components.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.number import ( ATTR_VALUE, DEFAULT_MAX_VALUE, DEFAULT_MIN_VALUE, DEFAULT_STEP, 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/template/validators.py
homeassistant/components/template/validators.py
"""Template config validation methods.""" from collections.abc import Callable from enum import StrEnum import logging from typing import Any import voluptuous as vol from homeassistant.const import STATE_UNAVAILABLE, STATE_UNKNOWN from homeassistant.helpers import config_validation as cv from homeassistant.helpers....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/binary_sensor.py
homeassistant/components/template/binary_sensor.py
"""Support for exposing a templated binary sensor.""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime, timedelta from functools import partial import logging from typing import Any, Self import voluptuous as vol from homeassistant.components.binary_sensor import ( ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/lock.py
homeassistant/components/template/lock.py
"""Support for locks which integrates with other components.""" from __future__ import annotations from collections.abc import Generator, Sequence from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.lock import ( DOMAIN as LOCK_DOMAIN, ENTITY_ID_FORMAT, 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/template/const.py
homeassistant/components/template/const.py
"""Constants for the Template Platform Components.""" from homeassistant.const import Platform from homeassistant.helpers.typing import ConfigType CONF_ADVANCED_OPTIONS = "advanced_options" CONF_ATTRIBUTE_TEMPLATES = "attribute_templates" CONF_ATTRIBUTES = "attributes" CONF_AVAILABILITY = "availability" CONF_AVAILABI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/coordinator.py
homeassistant/components/template/coordinator.py
"""Data update coordinator for trigger based template entities.""" from collections.abc import Callable, Mapping import logging from typing import TYPE_CHECKING, Any, cast from homeassistant.components.blueprint import CONF_USE_BLUEPRINT from homeassistant.const import ( CONF_ACTIONS, CONF_CONDITIONS, 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/template/update.py
homeassistant/components/template/update.py
"""Support for updates which integrates with other components.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.update import ( ATTR_INSTALLED_VERSION, ATTR_LATEST_VERSION, DEVICE_CLASSES_SCHEMA, 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/template/helpers.py
homeassistant/components/template/helpers.py
"""Helpers for template integration.""" from collections.abc import Callable from enum import StrEnum import hashlib import itertools import logging from typing import Any import voluptuous as vol from homeassistant.components import blueprint from homeassistant.config_entries import ConfigEntry from homeassistant.c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/fan.py
homeassistant/components/template/fan.py
"""Support for Template fans.""" from __future__ import annotations from collections.abc import Generator, Sequence import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.fan import ( ATTR_DIRECTION, ATTR_OSCILLATING, ATTR_PERCENTAGE, ATTR_PRESET_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/sensor.py
homeassistant/components/template/sensor.py
"""Allows the creation of a sensor that breaks out state_attributes.""" from __future__ import annotations from datetime import datetime import logging from typing import Any import voluptuous as vol from homeassistant.components.sensor import ( ATTR_LAST_RESET, CONF_STATE_CLASS, DEVICE_CLASSES_SCHEMA, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/config.py
homeassistant/components/template/config.py
"""Template config validator.""" from collections.abc import Callable from contextlib import suppress import itertools import logging from typing import Any import voluptuous as vol from homeassistant.components.alarm_control_panel import ( DOMAIN as DOMAIN_ALARM_CONTROL_PANEL, ) from homeassistant.components.bi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/__init__.py
homeassistant/components/template/__init__.py
"""The template component.""" from __future__ import annotations import asyncio from collections.abc import Coroutine from functools import partial import logging from typing import Any from homeassistant import config as conf_util from homeassistant.components.automation import ( DOMAIN as AUTOMATION_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/template/entity.py
homeassistant/components/template/entity.py
"""Template entity base class.""" from abc import abstractmethod from collections.abc import Callable, Sequence from dataclasses import dataclass import logging from typing import Any from homeassistant.const import CONF_DEVICE_ID, CONF_OPTIMISTIC, CONF_STATE from homeassistant.core import Context, HomeAssistant, cal...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/button.py
homeassistant/components/template/button.py
"""Support for buttons which integrates with other components.""" from __future__ import annotations import logging from typing import TYPE_CHECKING import voluptuous as vol from homeassistant.components.button import ( DEVICE_CLASSES_SCHEMA, DOMAIN as BUTTON_DOMAIN, ENTITY_ID_FORMAT, ButtonEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/trigger_entity.py
homeassistant/components/template/trigger_entity.py
"""Trigger entity.""" from __future__ import annotations from collections.abc import Callable from typing import Any from homeassistant.const import CONF_STATE, CONF_VARIABLES from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.script_variables import ScriptVariables 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/template/trigger.py
homeassistant/components/template/trigger.py
"""Offer template automation rules.""" from datetime import timedelta import logging from typing import Any import voluptuous as vol from homeassistant import exceptions from homeassistant.const import CONF_FOR, CONF_PLATFORM, CONF_VALUE_TEMPLATE from homeassistant.core import ( CALLBACK_TYPE, Event, Eve...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/alarm_control_panel.py
homeassistant/components/template/alarm_control_panel.py
"""Support for Template alarm control panels.""" from __future__ import annotations from enum import Enum import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.alarm_control_panel import ( DOMAIN as ALARM_CONTROL_PANEL_DOMAIN, ENTITY_ID_FORMAT, PLATF...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/select.py
homeassistant/components/template/select.py
"""Support for selects which integrates with other components.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.select import ( ATTR_OPTION, ATTR_OPTIONS, DOMAIN as SELECT_DOMAIN, ENTITY_ID_FORMAT, S...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/template/light.py
homeassistant/components/template/light.py
"""Support for Template lights.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ATTR_EFFECT, ATTR_HS_COLOR, ATTR_RGB_COLOR, ATTR_RGBW_COLO...
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/template/config_flow.py
homeassistant/components/template/config_flow.py
"""Config flow for the Template integration.""" from __future__ import annotations from collections.abc import Callable, Coroutine, Mapping from functools import partial from typing import Any, cast import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.components.binary_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/yandex_transport/sensor.py
homeassistant/components/yandex_transport/sensor.py
"""Service for obtaining information about closer bus from Transport Yandex Service.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from aioymaps import CaptchaError, NoSessionError, YandexMapsRequester import voluptuous as vol from homeassistant.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/yandex_transport/__init__.py
homeassistant/components/yandex_transport/__init__.py
"""Service for obtaining information about closer bus from Transport Yandex Service."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mqtt_statestream/__init__.py
homeassistant/components/mqtt_statestream/__init__.py
"""Publish simple item state changes via MQTT.""" import json import logging import voluptuous as vol from homeassistant.components import mqtt from homeassistant.components.mqtt import valid_publish_topic from homeassistant.const import EVENT_HOMEASSISTANT_STOP, EVENT_STATE_CHANGED from homeassistant.core import Ev...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pepco/__init__.py
homeassistant/components/pepco/__init__.py
"""Virtual integration: Potomac Electric Power Company (Pepco)."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notify/repairs.py
homeassistant/components/notify/repairs.py
"""Repairs support for notify integration.""" from __future__ import annotations from homeassistant.components.repairs import ConfirmRepairFlow, RepairsFlow from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import issue_registry as ir from .const import DOMAIN @callback def migrate_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notify/legacy.py
homeassistant/components/notify/legacy.py
"""Handle legacy notification platforms.""" from __future__ import annotations import asyncio from collections.abc import Coroutine, Mapping from functools import partial from typing import Any, Protocol, cast from homeassistant.config import config_per_platform from homeassistant.const import CONF_DESCRIPTION, 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/notify/const.py
homeassistant/components/notify/const.py
"""Provide common notify constants.""" import logging import voluptuous as vol from homeassistant.helpers import config_validation as cv ATTR_DATA = "data" # Text to notify user of ATTR_MESSAGE = "message" # Target of the (legacy) notification (user, device, etc) ATTR_TARGET = "target" # Recipients for a notific...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/notify/__init__.py
homeassistant/components/notify/__init__.py
"""Provides functionality to notify people.""" from __future__ import annotations from datetime import timedelta from enum import IntFlag from functools import partial import logging from typing import Any, final, override from propcache.api import cached_property import voluptuous as vol from homeassistant.compone...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/canary/model.py
homeassistant/components/canary/model.py
"""Constants for the Canary integration.""" from __future__ import annotations from collections.abc import ValuesView from typing import TypedDict from canary.model import Location, Reading class CanaryData(TypedDict): """TypedDict for Canary Coordinator Data.""" locations: dict[str, Location] reading...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/canary/camera.py
homeassistant/components/canary/camera.py
"""Support for Canary camera.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final from aiohttp.web import Request, StreamResponse from canary.live_stream_api import LiveStreamSession from canary.model import Device, Location from haffmpeg.camera import CameraM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/canary/const.py
homeassistant/components/canary/const.py
"""Constants for the Canary integration.""" from typing import Final DOMAIN: Final = "canary" MANUFACTURER: Final = "Canary Connect, Inc" # Configuration CONF_FFMPEG_ARGUMENTS: Final = "ffmpeg_arguments" # Defaults DEFAULT_FFMPEG_ARGUMENTS: Final = "-pred 1" DEFAULT_TIMEOUT: Final = 10
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/canary/coordinator.py
homeassistant/components/canary/coordinator.py
"""Provides the Canary DataUpdateCoordinator.""" from __future__ import annotations import asyncio from collections.abc import ValuesView from datetime import timedelta import logging from canary.api import Api from canary.model import Location, Reading from requests.exceptions import ConnectTimeout, HTTPError 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/canary/sensor.py
homeassistant/components/canary/sensor.py
"""Support for Canary sensors.""" from __future__ import annotations from typing import Final from canary.model import Device, Location, SensorType from homeassistant.components.sensor import SensorDeviceClass, SensorEntity from homeassistant.const import ( PERCENTAGE, SIGNAL_STRENGTH_DECIBELS_MILLIWATT, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/canary/__init__.py
homeassistant/components/canary/__init__.py
"""Support for Canary devices.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final from canary.api import Api from requests.exceptions import ConnectTimeout, HTTPError from homeassistant.const import CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME, Platform 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/canary/alarm_control_panel.py
homeassistant/components/canary/alarm_control_panel.py
"""Support for Canary alarm.""" from __future__ import annotations from typing import Any from canary.const import LOCATION_MODE_AWAY, LOCATION_MODE_HOME, LOCATION_MODE_NIGHT from canary.model import Location from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPan...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/canary/config_flow.py
homeassistant/components/canary/config_flow.py
"""Config flow for Canary.""" from __future__ import annotations import logging from typing import Any, Final from canary.api import Api from requests.exceptions import ConnectTimeout, HTTPError import voluptuous as vol from homeassistant.config_entries import ( ConfigEntry, ConfigFlow, ConfigFlowResult...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/kaleidescape/media_player.py
homeassistant/components/kaleidescape/media_player.py
"""Kaleidescape Media Player.""" from __future__ import annotations from datetime import datetime import logging from kaleidescape import const as kaleidescape_const from homeassistant.components.media_player import ( MediaPlayerEntity, MediaPlayerEntityFeature, MediaPlayerState, ) 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/kaleidescape/const.py
homeassistant/components/kaleidescape/const.py
"""Constants for the Kaleidescape integration.""" NAME = "Kaleidescape" DOMAIN = "kaleidescape" DEFAULT_HOST = "my-kaleidescape.local"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/kaleidescape/sensor.py
homeassistant/components/kaleidescape/sensor.py
"""Sensor platform for Kaleidescape integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from kaleidescape import Device as KaleidescapeDevice from homeassistant.components.sensor import SensorEntity, SensorEntityDescription 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/kaleidescape/__init__.py
homeassistant/components/kaleidescape/__init__.py
"""The Kaleidescape integration.""" from __future__ import annotations from dataclasses import dataclass from kaleidescape import Device as KaleidescapeDevice, KaleidescapeError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, EVENT_HOMEASSISTANT_STOP, Platform from ho...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/kaleidescape/remote.py
homeassistant/components/kaleidescape/remote.py
"""Sensor platform for Kaleidescape integration.""" from __future__ import annotations from collections.abc import Iterable from typing import Any from kaleidescape import const as kaleidescape_const from homeassistant.components.remote import RemoteEntity from homeassistant.core import HomeAssistant 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/kaleidescape/entity.py
homeassistant/components/kaleidescape/entity.py
"""Base Entity for Kaleidescape.""" from __future__ import annotations import logging from typing import TYPE_CHECKING from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const import DOMAIN, NAME as KALEIDESCAPE_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/kaleidescape/config_flow.py
homeassistant/components/kaleidescape/config_flow.py
"""Config flow for Kaleidescape.""" from __future__ import annotations from typing import Any, cast from urllib.parse import urlparse import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST from homeassistant.helpers.service_info.ssdp ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/proximity/diagnostics.py
homeassistant/components/proximity/diagnostics.py
"""Diagnostics support for Proximity.""" from __future__ import annotations from typing import Any from homeassistant.components.device_tracker import ATTR_GPS, ATTR_IP, ATTR_MAC from homeassistant.components.diagnostics import REDACTED, async_redact_data from homeassistant.components.person import ATTR_USER_ID from...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/proximity/const.py
homeassistant/components/proximity/const.py
"""Constants for Proximity integration.""" from typing import Final from homeassistant.const import UnitOfLength ATTR_DIR_OF_TRAVEL: Final = "dir_of_travel" ATTR_DIST_TO: Final = "dist_to_zone" ATTR_ENTITIES_DATA: Final = "entities_data" ATTR_IN_IGNORED_ZONE: Final = "is_in_ignored_zone" ATTR_NEAREST: Final = "neare...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/proximity/coordinator.py
homeassistant/components/proximity/coordinator.py
"""Data update coordinator for the Proximity integration.""" from collections import defaultdict from dataclasses import dataclass import logging from typing import cast from homeassistant.components.zone import DOMAIN as ZONE_DOMAIN from homeassistant.config_entries import ConfigEntry from homeassistant.const 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/proximity/sensor.py
homeassistant/components/proximity/sensor.py
"""Support for Proximity sensors.""" from __future__ import annotations from typing import NamedTuple from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.const import UnitOfLength from homeassistant.core import HomeAssistant from ho...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/proximity/__init__.py
homeassistant/components/proximity/__init__.py
"""Support for tracking the proximity of a device.""" from __future__ import annotations import logging from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.event import ( async_track_entity_registry_updated_event, async_track_state_change_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/proximity/config_flow.py
homeassistant/components/proximity/config_flow.py
"""Config flow for proximity.""" from __future__ import annotations from typing import Any, cast import voluptuous as vol from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER_DOMAIN from homeassistant.components.person import DOMAIN as PERSON_DOMAIN from homeassistant.components.zone 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/min_max/const.py
homeassistant/components/min_max/const.py
"""Constants for the Min/Max integration.""" DOMAIN = "min_max" CONF_ENTITY_IDS = "entity_ids" CONF_ROUND_DIGITS = "round_digits"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/min_max/sensor.py
homeassistant/components/min_max/sensor.py
"""Support for displaying minimal, maximal, mean or median values.""" from __future__ import annotations from datetime import datetime import logging import statistics from typing import Any import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, Sen...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/min_max/__init__.py
homeassistant/components/min_max/__init__.py
"""The min_max component.""" from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant PLATFORMS = [Platform.SENSOR] async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Min/Max from a 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/min_max/config_flow.py
homeassistant/components/min_max/config_flow.py
"""Config flow for Min/Max integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, cast import voluptuous as vol from homeassistant.components.input_number import DOMAIN as INPUT_NUMBER_DOMAIN from homeassistant.components.number import DOMAIN as NUMBER_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/itach/__init__.py
homeassistant/components/itach/__init__.py
"""Support for itach devices."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/itach/remote.py
homeassistant/components/itach/remote.py
"""Support for iTach IR devices.""" from __future__ import annotations from collections.abc import Iterable import logging from typing import Any import pyitachip2ir import voluptuous as vol from homeassistant.components import remote from homeassistant.components.remote import ( ATTR_NUM_REPEATS, DEFAULT_N...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linksys_smart/device_tracker.py
homeassistant/components/linksys_smart/device_tracker.py
"""Support for Linksys Smart Wifi routers.""" from __future__ import annotations from http import HTTPStatus import logging import requests import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM_SCHEMA, 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/linksys_smart/__init__.py
homeassistant/components/linksys_smart/__init__.py
"""The linksys_smart 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/androidtv_remote/media_player.py
homeassistant/components/androidtv_remote/media_player.py
"""Media player support for Android TV Remote.""" from __future__ import annotations import asyncio from typing import Any from androidtvremote2 import AndroidTVRemote, ConnectionClosed, VolumeInfo from homeassistant.components.media_player import ( BrowseMedia, MediaClass, MediaPlayerDeviceClass, 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/androidtv_remote/diagnostics.py
homeassistant/components/androidtv_remote/diagnostics.py
"""Diagnostics support for Android TV Remote.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_HOST, CONF_MAC from homeassistant.core import HomeAssistant from .helpers import AndroidTVRemoteConfigEnt...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/androidtv_remote/const.py
homeassistant/components/androidtv_remote/const.py
"""Constants for the Android TV Remote integration.""" from __future__ import annotations from typing import Final DOMAIN: Final = "androidtv_remote" CONF_APPS = "apps" CONF_ENABLE_IME: Final = "enable_ime" CONF_ENABLE_IME_DEFAULT_VALUE: Final = True CONF_APP_NAME = "app_name" CONF_APP_ICON = "app_icon"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/androidtv_remote/helpers.py
homeassistant/components/androidtv_remote/helpers.py
"""Helper functions for Android TV Remote integration.""" from __future__ import annotations from androidtvremote2 import AndroidTVRemote from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.storage import STORAGE_DIR from .const import CONF_EN...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/androidtv_remote/__init__.py
homeassistant/components/androidtv_remote/__init__.py
"""The Android TV Remote integration.""" from __future__ import annotations from asyncio import timeout import logging from androidtvremote2 import CannotConnect, ConnectionClosed, InvalidAuth from homeassistant.const import CONF_HOST, CONF_NAME, EVENT_HOMEASSISTANT_STOP, Platform from homeassistant.core import Eve...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/androidtv_remote/remote.py
homeassistant/components/androidtv_remote/remote.py
"""Remote control support for Android TV Remote.""" from __future__ import annotations import asyncio from collections.abc import Iterable from typing import Any from homeassistant.components.remote import ( ATTR_ACTIVITY, ATTR_DELAY_SECS, ATTR_HOLD_SECS, ATTR_NUM_REPEATS, DEFAULT_DELAY_SECS, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/androidtv_remote/entity.py
homeassistant/components/androidtv_remote/entity.py
"""Base entity for Android TV Remote.""" from __future__ import annotations from typing import Any from androidtvremote2 import AndroidTVRemote, ConnectionClosed from homeassistant.const import CONF_MAC, CONF_NAME from homeassistant.core import callback from homeassistant.exceptions import HomeAssistantError 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/androidtv_remote/config_flow.py
homeassistant/components/androidtv_remote/config_flow.py
"""Config flow for Android TV Remote integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from androidtvremote2 import ( AndroidTVRemote, CannotConnect, ConnectionClosed, InvalidAuth, ) import voluptuous as vol 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/openweathermap/weather.py
homeassistant/components/openweathermap/weather.py
"""Support for the OpenWeatherMap (OWM) service.""" from __future__ import annotations from homeassistant.components.weather import ( Forecast, SingleCoordinatorWeatherEntity, WeatherEntityFeature, ) from homeassistant.const import ( UnitOfLength, UnitOfPrecipitationDepth, UnitOfPressure, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openweathermap/repairs.py
homeassistant/components/openweathermap/repairs.py
"""Issues for OpenWeatherMap.""" from __future__ import annotations from typing import TYPE_CHECKING, cast from homeassistant import data_entry_flow from homeassistant.components.repairs import RepairsFlow from homeassistant.const import CONF_API_KEY, CONF_MODE from homeassistant.core import HomeAssistant, 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/openweathermap/const.py
homeassistant/components/openweathermap/const.py
"""Consts for the OpenWeatherMap.""" from __future__ import annotations from homeassistant.components.weather import ( ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, ATTR_CONDITION_HAIL, ATTR_CONDITION_LIGHTNING, ATTR_CONDITION_LIGHTNING_RAINY, ATTR_CONDITION_PARTLY...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openweathermap/coordinator.py
homeassistant/components/openweathermap/coordinator.py
"""Data coordinator for the OpenWeatherMap (OWM) service.""" from __future__ import annotations from datetime import timedelta import logging from typing import TYPE_CHECKING, Any from pyopenweathermap import ( CurrentAirPollution, CurrentWeather, DailyWeatherForecast, HourlyWeatherForecast, Minu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openweathermap/utils.py
homeassistant/components/openweathermap/utils.py
"""Util functions for OpenWeatherMap.""" from typing import Any from pyopenweathermap import RequestError, create_owm_client from homeassistant.const import CONF_LANGUAGE, CONF_MODE from .const import DEFAULT_LANGUAGE, DEFAULT_OWM_MODE OPTION_DEFAULTS = {CONF_LANGUAGE: DEFAULT_LANGUAGE, CONF_MODE: DEFAULT_OWM_MODE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openweathermap/sensor.py
homeassistant/components/openweathermap/sensor.py
"""Support for the OpenWeatherMap (OWM) service.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, DEGREE,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openweathermap/__init__.py
homeassistant/components/openweathermap/__init__.py
"""The openweathermap component.""" from __future__ import annotations from dataclasses import dataclass import logging from pyopenweathermap import create_owm_client from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_API_KEY, CONF_LANGUAGE, CONF_MODE 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/openweathermap/config_flow.py
homeassistant/components/openweathermap/config_flow.py
"""Config flow for OpenWeatherMap.""" from __future__ import annotations import voluptuous as vol from homeassistant.config_entries import ( ConfigEntry, ConfigFlow, ConfigFlowResult, OptionsFlow, ) from homeassistant.const import ( CONF_API_KEY, CONF_LANGUAGE, CONF_LATITUDE, CONF_LOC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/diagnostics.py
homeassistant/components/smlight/diagnostics.py
"""Collect diagnostics for SMLIGHT devices.""" from __future__ import annotations from typing import Any from pysmlight.const import Actions from homeassistant.core import HomeAssistant from .coordinator import SmConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, config_entry: SmC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/switch.py
homeassistant/components/smlight/switch.py
"""Support for SLZB-06 switches.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from typing import Any from pysmlight import Sensors, SettingsEvent from pysmlight.const import Settings from homeassistant.components.switch import ( Swit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/binary_sensor.py
homeassistant/components/smlight/binary_sensor.py
"""Support for SLZB-06 binary sensors.""" from __future__ import annotations from _collections_abc import Callable from dataclasses import dataclass from pysmlight import Sensors from pysmlight.const import Events as SmEvents from pysmlight.sse import MessageEvent from homeassistant.components.binary_sensor import ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/const.py
homeassistant/components/smlight/const.py
"""Constants for the SMLIGHT Zigbee integration.""" from datetime import timedelta import logging DOMAIN = "smlight" ATTR_MANUFACTURER = "SMLIGHT" DATA_COORDINATOR = "data" FIRMWARE_COORDINATOR = "firmware" SCAN_FIRMWARE_INTERVAL = timedelta(hours=24) LOGGER = logging.getLogger(__package__) SCAN_INTERVAL = timedelt...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/coordinator.py
homeassistant/components/smlight/coordinator.py
"""DataUpdateCoordinator for Smlight.""" from __future__ import annotations from abc import abstractmethod from dataclasses import dataclass from pysmlight import Api2, Info, Sensors from pysmlight.const import Settings, SettingsProp from pysmlight.exceptions import SmlightAuthError, SmlightConnectionError from pysm...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/update.py
homeassistant/components/smlight/update.py
"""Support updates for SLZB-06 ESP32 and Zigbee firmwares.""" from __future__ import annotations import asyncio from collections.abc import Callable from dataclasses import dataclass from typing import Any from pysmlight.const import Events as SmEvents from pysmlight.models import Firmware, Info from pysmlight.sse 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/smlight/sensor.py
homeassistant/components/smlight/sensor.py
"""Support for SLZB-06 sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from itertools import chain from pysmlight import Info, Sensors 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/smlight/__init__.py
homeassistant/components/smlight/__init__.py
"""SMLIGHT SLZB Zigbee device integration.""" from __future__ import annotations from pysmlight import Api2 from homeassistant.const import CONF_HOST, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .coordinator import ( SmConfi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/entity.py
homeassistant/components/smlight/entity.py
"""Base class for all SMLIGHT entities.""" from __future__ import annotations from homeassistant.helpers.device_registry import ( CONNECTION_NETWORK_MAC, DeviceInfo, format_mac, ) from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ATTR_MANUFACTURER from .coordinator...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/button.py
homeassistant/components/smlight/button.py
"""Support for SLZB-06 buttons.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass import logging from pysmlight.web import CmdWrapper from homeassistant.components.button import ( DOMAIN as BUTTON_DOMAIN, ButtonDeviceClass, ButtonEnti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smlight/config_flow.py
homeassistant/components/smlight/config_flow.py
"""Config flow for SMLIGHT Zigbee integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from pysmlight import Api2 from pysmlight.const import Devices from pysmlight.exceptions import SmlightAuthError, SmlightConnectionError import voluptuous as vol 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/esera_onewire/__init__.py
homeassistant/components/esera_onewire/__init__.py
"""Virtual integration: ESERA 1-Wire."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aurora/binary_sensor.py
homeassistant/components/aurora/binary_sensor.py
"""Support for Aurora Forecast binary sensor.""" from __future__ import annotations from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from .coordinator import AuroraConfig...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aurora/const.py
homeassistant/components/aurora/const.py
"""Constants for the Aurora integration.""" DOMAIN = "aurora" CONF_THRESHOLD = "forecast_threshold" DEFAULT_THRESHOLD = 75 ATTRIBUTION = "Data provided by the National Oceanic and Atmospheric Administration"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aurora/coordinator.py
homeassistant/components/aurora/coordinator.py
"""The aurora component.""" from __future__ import annotations from datetime import timedelta import logging from aiohttp import ClientError from auroranoaa import AuroraForecast from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE from homeassistant.cor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false