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/webdav/config_flow.py
homeassistant/components/webdav/config_flow.py
"""Config flow for the WebDAV integration.""" from __future__ import annotations import logging from typing import Any from aiowebdav2.exceptions import ( AccessDeniedError, MethodNotSupportedError, UnauthorizedError, ) import voluptuous as vol import yarl from homeassistant.config_entries import 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/analytics_insights/const.py
homeassistant/components/analytics_insights/const.py
"""Constants for the Homeassistant Analytics integration.""" import logging DOMAIN = "analytics_insights" CONF_TRACKED_ADDONS = "tracked_addons" CONF_TRACKED_INTEGRATIONS = "tracked_integrations" CONF_TRACKED_CUSTOM_INTEGRATIONS = "tracked_custom_integrations" LOGGER = logging.getLogger(__package__)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/analytics_insights/coordinator.py
homeassistant/components/analytics_insights/coordinator.py
"""DataUpdateCoordinator for the Homeassistant Analytics integration.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta from typing import TYPE_CHECKING from python_homeassistant_analytics import ( CustomIntegration, HomeassistantAnalyticsClient, 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/analytics_insights/sensor.py
homeassistant/components/analytics_insights/sensor.py
"""Sensor for Home Assistant analytics.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from homeassistant.components.sensor import ( SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import EntityCategory 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/analytics_insights/__init__.py
homeassistant/components/analytics_insights/__init__.py
"""The Homeassistant Analytics integration.""" from __future__ import annotations from dataclasses import dataclass from python_homeassistant_analytics import ( HomeassistantAnalyticsClient, HomeassistantAnalyticsConnectionError, ) from homeassistant.config_entries import ConfigEntry from homeassistant.cons...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/analytics_insights/config_flow.py
homeassistant/components/analytics_insights/config_flow.py
"""Config flow for Homeassistant Analytics integration.""" from __future__ import annotations from typing import Any from python_homeassistant_analytics import ( HomeassistantAnalyticsClient, HomeassistantAnalyticsConnectionError, ) from python_homeassistant_analytics.models import Environment, IntegrationTy...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/webhooks.py
homeassistant/components/telegram_bot/webhooks.py
"""Support for Telegram bots using webhooks.""" from http import HTTPStatus from ipaddress import IPv4Network, ip_address import logging import secrets import string from aiohttp.web_response import Response from telegram import Bot, Update from telegram.error import NetworkError, TelegramError from telegram.ext 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/telegram_bot/event.py
homeassistant/components/telegram_bot/event.py
"""Event platform for Telegram bot integration.""" from typing import Any from homeassistant.components.event import EventEntity, EventEntityDescription from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platfo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/diagnostics.py
homeassistant/components/telegram_bot/diagnostics.py
"""Diagnostics platform for Telegram bot integration.""" from __future__ import annotations from typing import Any from yarl import URL from homeassistant.components.diagnostics import REDACTED, async_redact_data from homeassistant.const import CONF_API_KEY, CONF_URL from homeassistant.core import HomeAssistant 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/telegram_bot/polling.py
homeassistant/components/telegram_bot/polling.py
"""Support for Telegram bot using polling.""" import logging from telegram import Bot, Update from telegram.error import NetworkError, RetryAfter, TelegramError, TimedOut from telegram.ext import ApplicationBuilder, CallbackContext, TypeHandler from homeassistant.core import HomeAssistant from .bot import BaseTeleg...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/broadcast.py
homeassistant/components/telegram_bot/broadcast.py
"""Support for Telegram bot to send messages only.""" from telegram import Bot from homeassistant.core import HomeAssistant from .bot import BaseTelegramBot, TelegramBotConfigEntry async def async_setup_platform( hass: HomeAssistant, bot: Bot, config: TelegramBotConfigEntry ) -> type[BaseTelegramBot] | 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/telegram_bot/const.py
homeassistant/components/telegram_bot/const.py
"""Constants for the Telegram Bot integration.""" from ipaddress import ip_network DOMAIN = "telegram_bot" PLATFORM_BROADCAST = "broadcast" PLATFORM_POLLING = "polling" PLATFORM_WEBHOOKS = "webhooks" SECTION_ADVANCED_SETTINGS = "advanced_settings" SUBENTRY_TYPE_ALLOWED_CHAT_IDS = "allowed_chat_ids" CONF_ALLOWED_CHA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/helpers.py
homeassistant/components/telegram_bot/helpers.py
"""Helper functions for Telegram bot integration.""" from telegram import Bot from .const import SIGNAL_UPDATE_EVENT def signal(bot: Bot) -> str: """Define signal name.""" return f"{SIGNAL_UPDATE_EVENT}_{bot.id}"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/__init__.py
homeassistant/components/telegram_bot/__init__.py
"""Support to send and receive Telegram messages.""" from __future__ import annotations import logging from types import ModuleType from telegram import Bot from telegram.constants import InputMediaType from telegram.error import InvalidToken, TelegramError import voluptuous as vol from homeassistant.components.scr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/entity.py
homeassistant/components/telegram_bot/entity.py
"""Base entity for Telegram bot integration.""" import telegram from homeassistant.const import CONF_PLATFORM from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import Entity, EntityDescription from . import TelegramBotConfigEntry from .const import DOMAIN...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/bot.py
homeassistant/components/telegram_bot/bot.py
"""Telegram bot classes and utilities.""" from abc import abstractmethod import asyncio from collections.abc import Callable, Sequence import io import logging import os from pathlib import Path from ssl import SSLContext from types import MappingProxyType from typing import Any, cast import httpx from telegram impor...
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/telegram_bot/notify.py
homeassistant/components/telegram_bot/notify.py
"""Telegram bot notification entity.""" from typing import Any from homeassistant.components.notify import ( NotifyEntity, NotifyEntityDescription, NotifyEntityFeature, ) from homeassistant.config_entries import ConfigSubentry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/telegram_bot/config_flow.py
homeassistant/components/telegram_bot/config_flow.py
"""Config flow for Telegram Bot.""" from collections.abc import Mapping from ipaddress import AddressValueError, IPv4Network import logging from types import MappingProxyType from typing import Any from telegram import Bot, ChatFullInfo from telegram.error import BadRequest, InvalidToken, TelegramError import voluptu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aws_s3/const.py
homeassistant/components/aws_s3/const.py
"""Constants for the AWS S3 integration.""" from collections.abc import Callable from typing import Final from homeassistant.util.hass_dict import HassKey DOMAIN: Final = "aws_s3" CONF_ACCESS_KEY_ID = "access_key_id" CONF_SECRET_ACCESS_KEY = "secret_access_key" CONF_ENDPOINT_URL = "endpoint_url" CONF_BUCKET = "buck...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aws_s3/__init__.py
homeassistant/components/aws_s3/__init__.py
"""The AWS S3 integration.""" from __future__ import annotations import logging from typing import cast from aiobotocore.client import AioBaseClient as S3Client from aiobotocore.session import AioSession from botocore.exceptions import ClientError, ConnectionError, ParamValidationError from homeassistant.config_ent...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aws_s3/backup.py
homeassistant/components/aws_s3/backup.py
"""Backup platform for the AWS S3 integration.""" from collections.abc import AsyncIterator, Callable, Coroutine import functools import json import logging from time import time from typing import Any from botocore.exceptions import BotoCoreError from homeassistant.components.backup import ( AgentBackup, Ba...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aws_s3/config_flow.py
homeassistant/components/aws_s3/config_flow.py
"""Config flow for the AWS S3 integration.""" from __future__ import annotations from typing import Any from urllib.parse import urlparse from aiobotocore.session import AioSession from botocore.exceptions import ClientError, ConnectionError, ParamValidationError import voluptuous as vol from homeassistant.config_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/worldtidesinfo/sensor.py
homeassistant/components/worldtidesinfo/sensor.py
"""Support for the worldtides.info API.""" from __future__ import annotations from datetime import timedelta import logging import time import requests import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) from homeassistant.const i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/worldtidesinfo/__init__.py
homeassistant/components/worldtidesinfo/__init__.py
"""The worldtidesinfo 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/airvisual_pro/diagnostics.py
homeassistant/components/airvisual_pro/diagnostics.py
"""Support for AirVisual Pro diagnostics.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_PASSWORD from homeassistant.core import HomeAssistant from . import AirVisualProConfigEntry CONF_MAC_ADDRESS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airvisual_pro/const.py
homeassistant/components/airvisual_pro/const.py
"""Constants for the AirVisual Pro integration.""" import logging DOMAIN = "airvisual_pro" LOGGER = logging.getLogger(__package__)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airvisual_pro/sensor.py
homeassistant/components/airvisual_pro/sensor.py
"""Support for AirVisual Pro sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) 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/airvisual_pro/__init__.py
homeassistant/components/airvisual_pro/__init__.py
"""The AirVisual Pro integration.""" from __future__ import annotations import asyncio from contextlib import suppress from dataclasses import dataclass from datetime import timedelta from typing import Any from pyairvisual.node import ( InvalidAuthenticationError, NodeConnectionError, NodeProError, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airvisual_pro/entity.py
homeassistant/components/airvisual_pro/entity.py
"""The AirVisual Pro integration.""" from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import ( CoordinatorEntity, DataUpdateCoordinator, ) from .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/airvisual_pro/config_flow.py
homeassistant/components/airvisual_pro/config_flow.py
"""Define a config flow manager for AirVisual Pro.""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass, field from typing import Any from pyairvisual.node import ( InvalidAuthenticationError, NodeConnectionError, NodeProError, NodeSamba, ) 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/songpal/media_player.py
homeassistant/components/songpal/media_player.py
"""Support for Songpal-enabled (Sony) media devices.""" from __future__ import annotations import asyncio from collections import OrderedDict import logging from songpal import ( ConnectChange, ContentChange, Device, PowerChange, SettingChange, SongpalException, VolumeChange, ) from songp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/songpal/const.py
homeassistant/components/songpal/const.py
"""Constants for the Songpal component.""" DOMAIN = "songpal" SET_SOUND_SETTING = "set_sound_setting" CONF_ENDPOINT = "endpoint" ERROR_REQUEST_RETRY = 40000
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/songpal/__init__.py
homeassistant/components/songpal/__init__.py
"""The songpal component.""" import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const import CONF_NAME, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing 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/songpal/config_flow.py
homeassistant/components/songpal/config_flow.py
"""Config flow to configure songpal component.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any from urllib.parse import urlparse from songpal import Device, SongpalException import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult 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/version/diagnostics.py
homeassistant/components/version/diagnostics.py
"""Provides diagnostics for Version.""" from __future__ import annotations from typing import Any from attr import asdict from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr, entity_registry as er from .coordinator import VersionConfigEntry async def async_get_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/version/binary_sensor.py
homeassistant/components/version/binary_sensor.py
"""Binary sensor platform for Version.""" from __future__ import annotations from awesomeversion import AwesomeVersion from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.const import CONF_NAME, EntityCatego...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/version/const.py
homeassistant/components/version/const.py
"""Constants for the Version integration.""" from __future__ import annotations from datetime import timedelta from logging import Logger, getLogger from typing import Any, Final from pyhaversion.consts import HaVersionChannel, HaVersionSource from homeassistant.const import CONF_NAME, Platform DOMAIN: Final = "ve...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/version/coordinator.py
homeassistant/components/version/coordinator.py
"""Data update coordinator for Version entities.""" from __future__ import annotations from typing import Any from awesomeversion import AwesomeVersion from pyhaversion import HaVersion, HaVersionSource from pyhaversion.exceptions import HaVersionException from homeassistant.config_entries import ConfigEntry 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/version/sensor.py
homeassistant/components/version/sensor.py
"""Sensor that can display the current Home Assistant versions.""" from __future__ import annotations from typing import Any from homeassistant.components.sensor import SensorEntity, SensorEntityDescription from homeassistant.const import CONF_NAME from homeassistant.core import HomeAssistant from homeassistant.help...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/version/__init__.py
homeassistant/components/version/__init__.py
"""The Version integration.""" from __future__ import annotations import logging from pyhaversion import HaVersion from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .const import ( BOARD_MAP, CONF_BOARD, CONF_CHANNEL, CONF_IMA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/version/entity.py
homeassistant/components/version/entity.py
"""Common entity class for Version integration.""" from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN, HOME_ASSISTANT 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/version/config_flow.py
homeassistant/components/version/config_flow.py
"""Config flow for Version integration.""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_SOURCE from .const import ( ATTR_VERSION_SOURCE, CONF_BETA, CONF_BOARD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/horizon/media_player.py
homeassistant/components/horizon/media_player.py
"""Support for the Unitymedia Horizon HD Recorder.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from horimote import Client, keys from horimote.exceptions import AuthenticationError import voluptuous as vol from homeassistant import util 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/horizon/__init__.py
homeassistant/components/horizon/__init__.py
"""The horizon 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/p1_monitor/diagnostics.py
homeassistant/components/p1_monitor/diagnostics.py
"""Diagnostics support for P1 Monitor.""" from __future__ import annotations from dataclasses import asdict from typing import TYPE_CHECKING, Any, cast from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_HOST, CONF_PORT from homeassistant.core import 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/p1_monitor/const.py
homeassistant/components/p1_monitor/const.py
"""Constants for the P1 Monitor integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final DOMAIN: Final = "p1_monitor" LOGGER = logging.getLogger(__package__) SCAN_INTERVAL = timedelta(seconds=5) SERVICE_SMARTMETER: Final = "smartmeter" SERVICE_WATERME...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/p1_monitor/coordinator.py
homeassistant/components/p1_monitor/coordinator.py
"""Coordinator for the P1 Monitor integration.""" from __future__ import annotations from typing import TypedDict from p1monitor import ( P1Monitor, P1MonitorConnectionError, P1MonitorNoDataError, Phases, Settings, SmartMeter, WaterMeter, ) from homeassistant.config_entries import 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/p1_monitor/sensor.py
homeassistant/components/p1_monitor/sensor.py
"""Support for P1 Monitor sensors.""" from __future__ import annotations from typing import Literal from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( CONF_HOST, CURRENCY_EURO, UnitO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/p1_monitor/__init__.py
homeassistant/components/p1_monitor/__init__.py
"""The P1 Monitor integration.""" from __future__ import annotations from homeassistant.const import CONF_HOST, CONF_PORT, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from .const import LOGGER from .coordinator import P1MonitorConfigEntry, P1MonitorD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/p1_monitor/config_flow.py
homeassistant/components/p1_monitor/config_flow.py
"""Config flow for P1 Monitor integration.""" from __future__ import annotations from typing import Any from p1monitor import P1Monitor, P1MonitorError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PORT 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/dwd_weather_warnings/util.py
homeassistant/components/dwd_weather_warnings/util.py
"""Util functions for the dwd_weather_warnings integration.""" from __future__ import annotations from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er from .exceptions import EntityNotFoundError def get_po...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dwd_weather_warnings/exceptions.py
homeassistant/components/dwd_weather_warnings/exceptions.py
"""Exceptions for the dwd_weather_warnings integration.""" from homeassistant.exceptions import HomeAssistantError class EntityNotFoundError(HomeAssistantError): """When a referenced entity was not found."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dwd_weather_warnings/const.py
homeassistant/components/dwd_weather_warnings/const.py
"""Constants for the dwd_weather_warnings integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final from homeassistant.const import Platform LOGGER = logging.getLogger(__package__) DOMAIN: Final = "dwd_weather_warnings" CONF_REGION_NAME: Final = "reg...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dwd_weather_warnings/coordinator.py
homeassistant/components/dwd_weather_warnings/coordinator.py
"""Data coordinator for the dwd_weather_warnings integration.""" from __future__ import annotations from dwdwfsapi import DwdWeatherWarningsAPI from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dwd_weather_warnings/sensor.py
homeassistant/components/dwd_weather_warnings/sensor.py
"""Support for getting statistical data from a DWD Weather Warnings. Data is fetched from DWD: https://rcccm.dwd.de/DE/wetter/warnungen_aktuell/objekt_einbindung/objekteinbindung.html Warnungen vor extremem Unwetter (Stufe 4) # codespell:ignore vor,extremem Unwetterwarnungen (Stufe 3) Warnungen vor markantem Wetter ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dwd_weather_warnings/__init__.py
homeassistant/components/dwd_weather_warnings/__init__.py
"""The dwd_weather_warnings component.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr from .const import DOMAIN, PLATFORMS from .coordinator import DwdWeatherWarningsConfigEntry, DwdWeatherWarningsCoordinator async def asyn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/dwd_weather_warnings/config_flow.py
homeassistant/components/dwd_weather_warnings/config_flow.py
"""Config flow for the dwd_weather_warnings integration.""" from __future__ import annotations from typing import Any from dwdwfsapi import DwdWeatherWarningsAPI import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.helpers import config_validation as cv, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blink/diagnostics.py
homeassistant/components/blink/diagnostics.py
"""Diagnostics support for Blink.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .coordinator import BlinkConfigEntry TO_REDACT = {"serial", "macaddress", "username", "password", "toke...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blink/services.py
homeassistant/components/blink/services.py
"""Services for the Blink integration.""" from __future__ import annotations import voluptuous as vol from homeassistant.const import ATTR_CONFIG_ENTRY_ID, CONF_PIN from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers 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/blink/switch.py
homeassistant/components/blink/switch.py
"""Support for Blink Motion detection switches.""" from __future__ import annotations from typing import Any from blinkpy.auth import UnauthorizedError from homeassistant.components.switch import ( SwitchDeviceClass, SwitchEntity, SwitchEntityDescription, ) from homeassistant.core import HomeAssistant f...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blink/binary_sensor.py
homeassistant/components/blink/binary_sensor.py
"""Support for Blink system camera control.""" from __future__ import annotations import logging from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.const import EntityCategory from homeassistant.core import...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blink/camera.py
homeassistant/components/blink/camera.py
"""Support for Blink system camera.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from blinkpy.auth import UnauthorizedError from blinkpy.camera import BlinkCamera as BlinkCameraAPI from requests.exceptions import ChunkedEncodingError import voluptuou...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blink/const.py
homeassistant/components/blink/const.py
"""Constants for Blink.""" from homeassistant.const import Platform DOMAIN = "blink" HARDWARE_ID = "Home Assistant" CONF_MIGRATE = "migrate" CONF_CAMERA = "camera" CONF_ALARM_CONTROL_PANEL = "alarm_control_panel" DEFAULT_BRAND = "Blink" DEFAULT_ATTRIBUTION = "Data provided by immedia-semi.com" DEFAULT_SCAN_INTERVAL ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blink/coordinator.py
homeassistant/components/blink/coordinator.py
"""Blink Coordinator.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from aiohttp import ClientError from blinkpy.auth import BlinkTwoFARequiredError, UnauthorizedError from blinkpy.blinkpy import Blink 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/blink/sensor.py
homeassistant/components/blink/sensor.py
"""Support for Blink system camera sensors.""" from __future__ import annotations import logging from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( SIGNAL_STRENGTH_DECIBELS_MILLIWATT, 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/blink/__init__.py
homeassistant/components/blink/__init__.py
"""Support for Blink Home Camera System.""" from copy import deepcopy import logging from typing import Any from blinkpy.auth import Auth from blinkpy.blinkpy import Blink import voluptuous as vol from homeassistant.components import persistent_notification from homeassistant.const import ( CONF_FILE_PATH, 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/blink/alarm_control_panel.py
homeassistant/components/blink/alarm_control_panel.py
"""Support for Blink Alarm Control Panel.""" from __future__ import annotations import logging from blinkpy.auth import UnauthorizedError from blinkpy.blinkpy import Blink, BlinkSyncModule from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPanelEntityFeature, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blink/config_flow.py
homeassistant/components/blink/config_flow.py
"""Config flow to configure Blink.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from blinkpy.auth import Auth, BlinkTwoFARequiredError, LoginError, TokenRefreshFailed from blinkpy.blinkpy import Blink, BlinkSetupError import voluptuous as vol 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/hardkernel/const.py
homeassistant/components/hardkernel/const.py
"""Constants for the Hardkernel integration.""" DOMAIN = "hardkernel"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hardkernel/hardware.py
homeassistant/components/hardkernel/hardware.py
"""The Hardkernel hardware platform.""" from __future__ import annotations from homeassistant.components.hardware import BoardInfo, HardwareInfo from homeassistant.components.hassio import get_os_info from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantError 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/hardkernel/__init__.py
homeassistant/components/hardkernel/__init__.py
"""The Hardkernel integration.""" from __future__ import annotations from homeassistant.components.hassio import get_os_info from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.hassio 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/hardkernel/config_flow.py
homeassistant/components/hardkernel/config_flow.py
"""Config flow for the Hardkernel integration.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import DOMAIN class HardkernelConfigFlow(ConfigFlow, domain=DOMAIN): """Handle a config flow for Hardkernel.""" VER...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/goodwe/diagnostics.py
homeassistant/components/goodwe/diagnostics.py
"""Diagnostics support for Goodwe.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from .coordinator import GoodweConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, config_entry: GoodweConfigEntry ) -> dict[str, Any]: ""...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/goodwe/number.py
homeassistant/components/goodwe/number.py
"""GoodWe PV inverter numeric settings entities.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass import logging from goodwe import Inverter, InverterError from homeassistant.components.number import ( NumberDeviceClass, NumberEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/goodwe/const.py
homeassistant/components/goodwe/const.py
"""Constants for the Goodwe component.""" from datetime import timedelta from homeassistant.const import Platform DOMAIN = "goodwe" PLATFORMS = [Platform.BUTTON, Platform.NUMBER, Platform.SELECT, Platform.SENSOR] DEFAULT_NAME = "GoodWe" SCAN_INTERVAL = timedelta(seconds=10) CONF_MODEL_FAMILY = "model_family"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/goodwe/coordinator.py
homeassistant/components/goodwe/coordinator.py
"""Update coordinator for Goodwe.""" from __future__ import annotations from dataclasses import dataclass import logging from typing import Any from goodwe import Inverter, InverterError, RequestFailedException from homeassistant.config_entries import ConfigEntry 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/goodwe/sensor.py
homeassistant/components/goodwe/sensor.py
"""Support for GoodWe inverter via UDP.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import date, datetime, timedelta from decimal import Decimal import logging from typing import Any from goodwe import Inverter, Sensor, SensorKind 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/goodwe/__init__.py
homeassistant/components/goodwe/__init__.py
"""The Goodwe inverter component.""" from goodwe import Inverter, InverterError, connect from goodwe.const import GOODWE_UDP_PORT from homeassistant.const import CONF_HOST, CONF_PORT from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.device...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/goodwe/button.py
homeassistant/components/goodwe/button.py
"""GoodWe PV inverter selection settings entities.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass from datetime import datetime import logging from goodwe import Inverter, InverterError from homeassistant.components.button import ButtonEntity, ButtonEntityDescription 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/goodwe/select.py
homeassistant/components/goodwe/select.py
"""GoodWe PV inverter selection settings entities.""" import logging from goodwe import Inverter, InverterError, OperationMode from homeassistant.components.select import SelectEntity, SelectEntityDescription from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant 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/goodwe/config_flow.py
homeassistant/components/goodwe/config_flow.py
"""Config flow to configure Goodwe inverters using their local API.""" from __future__ import annotations import logging from typing import Any from goodwe import Inverter, InverterError, connect from goodwe.const import GOODWE_TCP_PORT, GOODWE_UDP_PORT import voluptuous as vol from homeassistant.config_entries 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/melnor/switch.py
homeassistant/components/melnor/switch.py
"""Switch support for Melnor Bluetooth water timer.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from melnor_bluetooth.device import Valve from homeassistant.components.switch import ( SwitchDeviceClass, Switch...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/melnor/number.py
homeassistant/components/melnor/number.py
"""Number support for Melnor Bluetooth water timer.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from melnor_bluetooth.device import Valve from homeassistant.components.number import ( NumberEntity, NumberEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/melnor/const.py
homeassistant/components/melnor/const.py
"""Constants for the melnor integration.""" DOMAIN = "melnor" DEFAULT_NAME = "Melnor Bluetooth" MANUFACTURER_ID = 13 MANUFACTURER_DATA_START = bytearray([89])
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/melnor/coordinator.py
homeassistant/components/melnor/coordinator.py
"""Coordinator for the Melnor integration.""" from datetime import timedelta import logging from melnor_bluetooth.device import Device from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator _LOGGER ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/melnor/time.py
homeassistant/components/melnor/time.py
"""Number support for Melnor Bluetooth water timer.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from datetime import time from typing import Any from melnor_bluetooth.device import Valve from homeassistant.components.time import TimeEntity,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/melnor/sensor.py
homeassistant/components/melnor/sensor.py
"""Sensor support for Melnor Bluetooth water timer.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from typing import Any from melnor_bluetooth.device import Device, Valve from homeassistant.components.sensor import ( Se...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/melnor/__init__.py
homeassistant/components/melnor/__init__.py
"""The melnor integration.""" from __future__ import annotations from melnor_bluetooth.device import Device from homeassistant.components import bluetooth from homeassistant.components.bluetooth.match import BluetoothCallbackMatcher from homeassistant.const import CONF_ADDRESS, Platform from homeassistant.core 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/melnor/entity.py
homeassistant/components/melnor/entity.py
"""Melnor integration models.""" from collections.abc import Callable from melnor_bluetooth.device import Device, Valve from homeassistant.components.number import EntityDescription from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/melnor/config_flow.py
homeassistant/components/melnor/config_flow.py
"""Config flow for melnor.""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant.components.bluetooth import async_discovered_service_info from homeassistant.components.bluetooth.models import BluetoothServiceInfoBleak from homeassistant.config_entries import Confi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/emulated_kasa/const.py
homeassistant/components/emulated_kasa/const.py
"""Constants for emulated_kasa.""" CONF_POWER = "power" CONF_POWER_ENTITY = "power_entity" DOMAIN = "emulated_kasa"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/emulated_kasa/__init__.py
homeassistant/components/emulated_kasa/__init__.py
"""Support for local power state reporting of entities by emulating TP-Link Kasa smart plugs.""" import logging from sense_energy import PlugInstance, SenseLink import voluptuous as vol from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from homeassistant.const import ( CONF_ENTITIES, CONF_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/sonarr/const.py
homeassistant/components/sonarr/const.py
"""Constants for Sonarr.""" import logging DOMAIN = "sonarr" # Config Keys CONF_BASE_PATH = "base_path" CONF_DAYS = "days" CONF_INCLUDED = "include_paths" CONF_UNIT = "unit" CONF_UPCOMING_DAYS = "upcoming_days" CONF_WANTED_MAX_ITEMS = "wanted_max_items" # Defaults DEFAULT_NAME = "Sonarr" DEFAULT_UPCOMING_DAYS = 1 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/sonarr/coordinator.py
homeassistant/components/sonarr/coordinator.py
"""Data update coordinator for the Sonarr integration.""" from __future__ import annotations from datetime import timedelta from typing import TypeVar, cast from aiopyarr import ( Command, Diskspace, SonarrCalendar, SonarrQueue, SonarrSeries, SonarrWantedMissing, SystemStatus, excepti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sonarr/sensor.py
homeassistant/components/sonarr/sensor.py
"""Support for Sonarr sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any, Generic from aiopyarr import ( Command, Diskspace, SonarrCalendar, SonarrQueue, SonarrSeries, SonarrWantedMissing, ) 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/sonarr/__init__.py
homeassistant/components/sonarr/__init__.py
"""The Sonarr component.""" from __future__ import annotations from typing import Any from aiopyarr.models.host_configuration import PyArrHostConfiguration from aiopyarr.sonarr_client import SonarrClient from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_API_KEY, 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/sonarr/entity.py
homeassistant/components/sonarr/entity.py
"""Base Entity for Sonarr.""" from __future__ import annotations from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DEFAULT_NAME, DOMAIN 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/sonarr/config_flow.py
homeassistant/components/sonarr/config_flow.py
"""Config flow for Sonarr.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from aiopyarr import ArrAuthenticationException, ArrException from aiopyarr.models.host_configuration import PyArrHostConfiguration from aiopyarr.sonarr_client import SonarrClien...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/starline/device_tracker.py
homeassistant/components/starline/device_tracker.py
"""StarLine device tracker.""" from typing import Any from homeassistant.components.device_tracker import TrackerEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback 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/starline/switch.py
homeassistant/components/starline/switch.py
"""Support for StarLine switch.""" from __future__ import annotations from typing import Any from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false