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/devolo_home_network/button.py
homeassistant/components/devolo_home_network/button.py
"""Platform for button integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from devolo_plc_api.device import Device from devolo_plc_api.exceptions.device import DevicePasswordProtected, DeviceUnavailable from homeassistant.components.b...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_network/config_flow.py
homeassistant/components/devolo_home_network/config_flow.py
"""Config flow for devolo Home Network integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from devolo_plc_api.device import Device from devolo_plc_api.exceptions.device import DeviceNotFound, DevicePasswordProtected import voluptuous as vol 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/ourgroceries/todo.py
homeassistant/components/ourgroceries/todo.py
"""A todo platform for OurGroceries.""" import asyncio from typing import Any from homeassistant.components.todo import ( TodoItem, TodoItemStatus, TodoListEntity, TodoListEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback 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/ourgroceries/const.py
homeassistant/components/ourgroceries/const.py
"""Constants for the OurGroceries integration.""" DOMAIN = "ourgroceries"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ourgroceries/coordinator.py
homeassistant/components/ourgroceries/coordinator.py
"""The OurGroceries coordinator.""" from __future__ import annotations import asyncio from datetime import timedelta import logging from ourgroceries import OurGroceries from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator im...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ourgroceries/__init__.py
homeassistant/components/ourgroceries/__init__.py
"""The OurGroceries integration.""" from __future__ import annotations from aiohttp import ClientError from ourgroceries import OurGroceries from ourgroceries.exceptions import InvalidLoginException from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Pla...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ourgroceries/config_flow.py
homeassistant/components/ourgroceries/config_flow.py
"""Config flow for OurGroceries integration.""" from __future__ import annotations import logging from typing import Any from aiohttp import ClientError from ourgroceries import OurGroceries from ourgroceries.exceptions import InvalidLoginException import voluptuous as vol from homeassistant.config_entries import C...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/soma/cover.py
homeassistant/components/soma/cover.py
"""Support for Soma Covers.""" from __future__ import annotations from typing import Any from homeassistant.components.cover import ( ATTR_POSITION, ATTR_TILT_POSITION, CoverDeviceClass, CoverEntity, CoverEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.cor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/soma/const.py
homeassistant/components/soma/const.py
"""Define constants for the Soma component.""" DOMAIN = "soma" HOST = "host" PORT = "port" API = "api" DEVICES = "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/soma/utils.py
homeassistant/components/soma/utils.py
"""Soma helpers functions.""" def is_api_response_success(api_response: dict) -> bool: """Check if the response returned from the Connect API is a success or not.""" return "result" in api_response and api_response["result"].lower() == "success"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/soma/sensor.py
homeassistant/components/soma/sensor.py
"""Support for Soma sensors.""" from datetime import timedelta from homeassistant.components.sensor import SensorDeviceClass, SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import PERCENTAGE from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_plat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/soma/__init__.py
homeassistant/components/soma/__init__.py
"""Support for Soma Smartshades.""" from __future__ import annotations from api.soma_api import SomaApi import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_PORT, Platform 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/soma/entity.py
homeassistant/components/soma/entity.py
"""Support for Soma Smartshades.""" from __future__ import annotations from collections.abc import Callable, Coroutine import logging from typing import Any from requests import RequestException from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/soma/config_flow.py
homeassistant/components/soma/config_flow.py
"""Config flow for Soma.""" import logging from typing import Any from api.soma_api import SomaApi from requests import RequestException import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PORT from .const import DOMAIN _LOG...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/controller.py
homeassistant/components/smarttub/controller.py
"""Interface to the SmartTub API.""" import asyncio from datetime import timedelta import logging from typing import Any from aiohttp import client_exceptions from smarttub import APIError, LoginFailed, SmartTub, Spa from smarttub.api import Account from homeassistant.config_entries import ConfigEntry from homeassis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/switch.py
homeassistant/components/smarttub/switch.py
"""Platform for switch integration.""" import asyncio from typing import Any from smarttub import SpaPump from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.helpers.u...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/binary_sensor.py
homeassistant/components/smarttub/binary_sensor.py
"""Platform for binary sensor integration.""" from __future__ import annotations import logging from typing import Any from smarttub import Spa, SpaError, SpaReminder import voluptuous as vol from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) 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/smarttub/const.py
homeassistant/components/smarttub/const.py
"""smarttub constants.""" DOMAIN = "smarttub" EVENT_SMARTTUB = "smarttub" SCAN_INTERVAL = 60 POLLING_TIMEOUT = 10 API_TIMEOUT = 5 DEFAULT_MIN_TEMP = 18.5 DEFAULT_MAX_TEMP = 40 # the device doesn't remember any state for the light, so we have to choose a # mode (smarttub.SpaLight.LightMode) when turning it on. The...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/helpers.py
homeassistant/components/smarttub/helpers.py
"""Helper functions for SmartTub integration.""" import smarttub def get_spa_name(spa: smarttub.Spa) -> str: """Return the name of the specified spa.""" return f"{spa.brand} {spa.model}"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/sensor.py
homeassistant/components/smarttub/sensor.py
"""Platform for sensor integration.""" from enum import Enum from typing import Any import smarttub import voluptuous as vol from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv, entity_platform from homeassist...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/__init__.py
homeassistant/components/smarttub/__init__.py
"""SmartTub integration.""" from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .controller import SmartTubConfigEntry, SmartTubController PLATFORMS = [ Platform.BINARY_SENSOR, Platform.CLIMATE, Platform.LIGHT, Platform.SENSOR, Platform.SWITCH, ] async def...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/entity.py
homeassistant/components/smarttub/entity.py
"""Base classes for SmartTub entities.""" from typing import Any from smarttub import Spa, SpaSensor, SpaState from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import ( CoordinatorEntity, DataUpdateCoordinator, ) from .const import ATTR_SENSORS, DOMA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/climate.py
homeassistant/components/smarttub/climate.py
"""Platform for climate integration.""" from __future__ import annotations from typing import Any from smarttub import Spa from homeassistant.components.climate import ( PRESET_ECO, PRESET_NONE, ClimateEntity, ClimateEntityFeature, HVACAction, HVACMode, ) from homeassistant.const import ATTR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smarttub/light.py
homeassistant/components/smarttub/light.py
"""Platform for light integration.""" from typing import Any from smarttub import SpaLight from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_EFFECT, EFFECT_COLORLOOP, ColorMode, LightEntity, LightEntityFeature, ) from homeassistant.core import HomeAssistant 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/smarttub/config_flow.py
homeassistant/components/smarttub/config_flow.py
"""Config flow to configure the SmartTub integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from smarttub import LoginFailed import voluptuous as vol from homeassistant.config_entries import SOURCE_REAUTH, ConfigFlow, ConfigFlowResult from homeassistant.con...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qld_bushfire/geo_location.py
homeassistant/components/qld_bushfire/geo_location.py
"""Support for Queensland Bushfire Alert Feeds.""" from __future__ import annotations from collections.abc import Callable from datetime import timedelta import logging from typing import Any from georss_qld_bushfire_alert_client import ( QldBushfireAlertFeedEntry, QldBushfireAlertFeedManager, ) import volup...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qld_bushfire/__init__.py
homeassistant/components/qld_bushfire/__init__.py
"""The qld_bushfire 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/vivotek/camera.py
homeassistant/components/vivotek/camera.py
"""Support for Vivotek IP Cameras.""" from __future__ import annotations import logging from typing import TYPE_CHECKING from libpyvivotek.vivotek import VivotekCamera import voluptuous as vol from homeassistant.components.camera import ( PLATFORM_SCHEMA as CAMERA_PLATFORM_SCHEMA, Camera, CameraEntityFe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/vivotek/const.py
homeassistant/components/vivotek/const.py
"""Constants for the Vivotek integration.""" CONF_FRAMERATE = "framerate" CONF_SECURITY_LEVEL = "security_level" CONF_STREAM_PATH = "stream_path" DOMAIN = "vivotek" MANUFACTURER = "Vivotek" INTEGRATION_TITLE = "Vivotek"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/vivotek/__init__.py
homeassistant/components/vivotek/__init__.py
"""The Vivotek camera component.""" import logging from typing import Any from libpyvivotek.vivotek import VivotekCamera, VivotekCameraError from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_AUTHENTICATION, CONF_IP_ADDRESS, CONF_PASSWORD, CONF_PORT, 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/vivotek/config_flow.py
homeassistant/components/vivotek/config_flow.py
"""Config flow for Vivotek IP cameras integration.""" import logging from typing import Any from libpyvivotek.vivotek import SECURITY_LEVELS, VivotekCameraError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult, OptionsFlow from homeassistant.const import ( CONF_AUTHE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/caldav/api.py
homeassistant/components/caldav/api.py
"""Library for working with CalDAV api.""" import caldav from homeassistant.core import HomeAssistant async def async_get_calendars( hass: HomeAssistant, client: caldav.DAVClient, component: str ) -> list[caldav.Calendar]: """Get all calendars that support the specified component.""" def _get_calendars...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/caldav/todo.py
homeassistant/components/caldav/todo.py
"""CalDAV todo platform.""" from __future__ import annotations import asyncio from datetime import date, datetime, timedelta from functools import partial import logging from typing import Any, cast import caldav from caldav.lib.error import DAVError, NotFoundError import requests from homeassistant.components.todo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/caldav/const.py
homeassistant/components/caldav/const.py
"""Constants for CalDAV.""" from typing import Final DOMAIN: Final = "caldav"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/caldav/coordinator.py
homeassistant/components/caldav/coordinator.py
"""Data update coordinator for caldav.""" from __future__ import annotations from datetime import date, datetime, time, timedelta from functools import partial import logging import re from typing import TYPE_CHECKING import caldav from homeassistant.components.calendar import CalendarEvent, extract_offset from hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/caldav/__init__.py
homeassistant/components/caldav/__init__.py
"""The caldav component.""" import logging import caldav from caldav.lib.error import AuthorizationError, DAVError import requests from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_PASSWORD, CONF_URL, CONF_USERNAME, CONF_VERIFY_SSL, Platform, ) 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/caldav/calendar.py
homeassistant/components/caldav/calendar.py
"""Support for WebDav Calendar.""" from __future__ import annotations from datetime import datetime from functools import partial import logging from typing import Any import caldav from caldav.lib.error import DAVError import requests import voluptuous as vol from homeassistant.components.calendar import ( 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/caldav/config_flow.py
homeassistant/components/caldav/config_flow.py
"""Configuration flow for CalDav.""" from collections.abc import Mapping import logging from typing import Any import caldav from caldav.lib.error import AuthorizationError, DAVError import requests import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult 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/intent_script/__init__.py
homeassistant/components/intent_script/__init__.py
"""Handle intents with scripts.""" from __future__ import annotations import logging from typing import Any, TypedDict import voluptuous as vol from homeassistant.components.script import CONF_MODE from homeassistant.const import CONF_DESCRIPTION, CONF_TYPE, SERVICE_RELOAD from homeassistant.core import 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/whois/diagnostics.py
homeassistant/components/whois/diagnostics.py
"""Diagnostics support for Whois.""" from __future__ import annotations from typing import Any from whois import Domain from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from .const import DOM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whois/const.py
homeassistant/components/whois/const.py
"""Constants for the Whois integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final from homeassistant.const import Platform DOMAIN: Final = "whois" PLATFORMS = [Platform.SENSOR] LOGGER = logging.getLogger(__package__) SCAN_INTERVAL = timedelta(hour...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whois/sensor.py
homeassistant/components/whois/sensor.py
"""Get WHOIS information for a given host.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import UTC, datetime from typing import cast from whois import Domain from homeassistant.components.sensor import ( SensorDeviceClass, SensorE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whois/__init__.py
homeassistant/components/whois/__init__.py
"""The Whois integration.""" from __future__ import annotations from whois import Domain, query as whois_query from whois.exceptions import ( FailedParsingWhoisOutput, UnknownDateFormat, UnknownTld, WhoisCommandFailed, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const im...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whois/config_flow.py
homeassistant/components/whois/config_flow.py
"""Config flow to configure the Whois integration.""" from __future__ import annotations from typing import Any import voluptuous as vol import whois from whois.exceptions import ( FailedParsingWhoisOutput, UnknownDateFormat, UnknownTld, WhoisCommandFailed, WhoisPrivateRegistry, WhoisQuotaExc...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/flume/util.py
homeassistant/components/flume/util.py
"""Utilities for Flume.""" from __future__ import annotations from typing import Any from pyflume import FlumeDeviceList from .const import KEY_DEVICE_LOCATION, KEY_DEVICE_LOCATION_NAME def get_valid_flume_devices(flume_devices: FlumeDeviceList) -> list[dict[str, Any]]: """Return a list of Flume devices that ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/flume/binary_sensor.py
homeassistant/components/flume/binary_sensor.py
"""Flume binary sensors.""" from __future__ import annotations from dataclasses import dataclass 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/flume/const.py
homeassistant/components/flume/const.py
"""The Flume component.""" from __future__ import annotations from datetime import timedelta import logging from homeassistant.const import Platform DOMAIN = "flume" PLATFORMS = [ Platform.BINARY_SENSOR, Platform.SENSOR, ] DEFAULT_NAME = "Flume Sensor" # Flume API limits queries to 120 per hour NOTIFICAT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/flume/coordinator.py
homeassistant/components/flume/coordinator.py
"""The IntelliFire integration.""" from __future__ import annotations from dataclasses import dataclass from typing import Any import pyflume from pyflume import FlumeAuth, FlumeData, FlumeDeviceList from requests import Session from homeassistant.config_entries import ConfigEntry from homeassistant.core import Hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/flume/sensor.py
homeassistant/components/flume/sensor.py
"""Sensor for displaying the number of result from Flume.""" from typing import Any from pyflume import FlumeAuth, FlumeData from requests import Session from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) 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/flume/__init__.py
homeassistant/components/flume/__init__.py
"""The flume integration.""" from __future__ import annotations from pyflume import FlumeAuth, FlumeDeviceList from requests import Session from requests.exceptions import RequestException import voluptuous as vol from homeassistant.config_entries import ConfigEntryState from homeassistant.const import ( CONF_CL...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/flume/entity.py
homeassistant/components/flume/entity.py
"""Platform for shared base classes for sensors.""" from __future__ import annotations from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordin...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/flume/config_flow.py
homeassistant/components/flume/config_flow.py
"""Config flow for flume integration.""" from __future__ import annotations from collections.abc import Mapping import logging import os from typing import Any from pyflume import FlumeAuth, FlumeDeviceList from requests.exceptions import RequestException import voluptuous as vol from homeassistant.config_entries i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opensensemap/__init__.py
homeassistant/components/opensensemap/__init__.py
"""The opensensemap 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/opensensemap/air_quality.py
homeassistant/components/opensensemap/air_quality.py
"""Support for openSenseMap Air Quality data.""" from __future__ import annotations from datetime import timedelta import logging from opensensemap_api import OpenSenseMap from opensensemap_api.exceptions import OpenSenseMapError import voluptuous as vol from homeassistant.components.air_quality import ( 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/google_weather/weather.py
homeassistant/components/google_weather/weather.py
"""Weather entity.""" from __future__ import annotations from google_weather_api import ( DailyForecastResponse, HourlyForecastResponse, WeatherCondition, ) from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_HAIL, ATTR_CONDITIO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_weather/const.py
homeassistant/components/google_weather/const.py
"""Constants for the Google Weather integration.""" from typing import Final DOMAIN = "google_weather" SECTION_API_KEY_OPTIONS: Final = "api_key_options" CONF_REFERRER: Final = "referrer"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_weather/coordinator.py
homeassistant/components/google_weather/coordinator.py
"""The Google Weather coordinator.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from datetime import timedelta import logging from typing import TypeVar from google_weather_api import ( CurrentConditionsResponse, DailyForecastResponse...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_weather/sensor.py
homeassistant/components/google_weather/sensor.py
"""Support for Google Weather sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from google_weather_api import CurrentConditionsResponse from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescript...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_weather/__init__.py
homeassistant/components/google_weather/__init__.py
"""The Google Weather integration.""" from __future__ import annotations import asyncio from google_weather_api import GoogleWeatherApi from homeassistant.const import CONF_API_KEY, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession 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/google_weather/entity.py
homeassistant/components/google_weather/entity.py
"""Base entity for Google Weather.""" from __future__ import annotations from homeassistant.config_entries import ConfigSubentry from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import Entity from .const import DOMAIN from .coordinator import GoogleWeath...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_weather/config_flow.py
homeassistant/components/google_weather/config_flow.py
"""Config flow for the Google Weather integration.""" from __future__ import annotations import logging from typing import Any from google_weather_api import GoogleWeatherApi, GoogleWeatherApiError import voluptuous as vol from homeassistant.config_entries import ( ConfigEntry, ConfigEntryState, ConfigF...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/compit/const.py
homeassistant/components/compit/const.py
"""Constants for the Compit integration.""" DOMAIN = "compit" MANUFACTURER_NAME = "Compit"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/compit/coordinator.py
homeassistant/components/compit/coordinator.py
"""Define an object to manage fetching Compit data.""" from datetime import timedelta import logging from compit_inext_api import CompitApiConnector, DeviceInstance from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import D...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/compit/__init__.py
homeassistant/components/compit/__init__.py
"""The Compit integration.""" from compit_inext_api import CannotConnect, CompitApiConnector, InvalidAuth from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady 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/compit/climate.py
homeassistant/components/compit/climate.py
"""Module contains the CompitClimate class for controlling climate entities.""" import logging from typing import Any from compit_inext_api import Param, Parameter from compit_inext_api.consts import ( CompitFanMode, CompitHVACMode, CompitParameter, CompitPresetMode, ) from propcache.api import cached...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/compit/config_flow.py
homeassistant/components/compit/config_flow.py
"""Config flow for Compit integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from compit_inext_api import CannotConnect, CompitApiConnector, InvalidAuth import voluptuous as vol from homeassistant.config_entries import SOURCE_REAUTH, ConfigFl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/diagnostics.py
homeassistant/components/modern_forms/diagnostics.py
"""Diagnostics support for Modern Forms.""" from __future__ import annotations from dataclasses import asdict from typing import TYPE_CHECKING, Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_MAC from hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/switch.py
homeassistant/components/modern_forms/switch.py
"""Support for Modern Forms switches.""" from __future__ import annotations from typing import Any from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/binary_sensor.py
homeassistant/components/modern_forms/binary_sensor.py
"""Support for Modern Forms Binary Sensors.""" from __future__ import annotations from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEnti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/const.py
homeassistant/components/modern_forms/const.py
"""Constants for the Modern Forms integration.""" DOMAIN = "modern_forms" OPT_ON = "on" OPT_SPEED = "speed" OPT_BRIGHTNESS = "brightness" # Services SERVICE_SET_LIGHT_SLEEP_TIMER = "set_light_sleep_timer" SERVICE_CLEAR_LIGHT_SLEEP_TIMER = "clear_light_sleep_timer" SERVICE_SET_FAN_SLEEP_TIMER = "set_fan_sleep_timer" ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/coordinator.py
homeassistant/components/modern_forms/coordinator.py
"""Coordinator for the Modern Forms integration.""" from __future__ import annotations from datetime import timedelta import logging from aiomodernforms import ModernFormsDevice, ModernFormsError from aiomodernforms.models import Device as ModernFormsDeviceState 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/modern_forms/fan.py
homeassistant/components/modern_forms/fan.py
"""Support for Modern Forms Fan Fans.""" from __future__ import annotations from typing import Any from aiomodernforms.const import FAN_POWER_OFF, FAN_POWER_ON import voluptuous as vol from homeassistant.components.fan import FanEntity, FanEntityFeature from homeassistant.config_entries import ConfigEntry from home...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/sensor.py
homeassistant/components/modern_forms/sensor.py
"""Support for Modern Forms switches.""" from __future__ import annotations from datetime import datetime from homeassistant.components.sensor import SensorDeviceClass, SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_pla...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/__init__.py
homeassistant/components/modern_forms/__init__.py
"""The Modern Forms integration.""" from __future__ import annotations from collections.abc import Callable, Coroutine import logging from typing import Any, Concatenate from aiomodernforms import ModernFormsConnectionError, ModernFormsError from homeassistant.config_entries import ConfigEntry 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/modern_forms/entity.py
homeassistant/components/modern_forms/entity.py
"""The Modern Forms integration.""" from __future__ import annotations from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import ModernFormsDataUpdateCoordinator clas...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/light.py
homeassistant/components/modern_forms/light.py
"""Support for Modern Forms Fan lights.""" from __future__ import annotations from typing import Any from aiomodernforms.const import LIGHT_POWER_OFF, LIGHT_POWER_ON import voluptuous as vol from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity from homeassistant.config_entries import C...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/modern_forms/config_flow.py
homeassistant/components/modern_forms/config_flow.py
"""Config flow for Modern Forms.""" from __future__ import annotations from typing import Any from aiomodernforms import ModernFormsConnectionError, ModernFormsDevice import voluptuous as vol from homeassistant.config_entries import SOURCE_ZEROCONF, ConfigFlow, ConfigFlowResult from homeassistant.const import 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/mcp/application_credentials.py
homeassistant/components/mcp/application_credentials.py
"""Application credentials platform for Model Context Protocol.""" from __future__ import annotations from collections.abc import Generator from contextlib import contextmanager import contextvars from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mcp/const.py
homeassistant/components/mcp/const.py
"""Constants for the Model Context Protocol integration.""" DOMAIN = "mcp" CONF_ACCESS_TOKEN = "access_token" CONF_AUTHORIZATION_URL = "authorization_url" CONF_TOKEN_URL = "token_url" CONF_SCOPE = "scope"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mcp/coordinator.py
homeassistant/components/mcp/coordinator.py
"""Types for the Model Context Protocol integration.""" import asyncio from collections.abc import AsyncGenerator, Awaitable, Callable from contextlib import asynccontextmanager import datetime import logging import httpx from mcp.client.session import ClientSession from mcp.client.sse import sse_client import volupt...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mcp/__init__.py
homeassistant/components/mcp/__init__.py
"""The Model Context Protocol integration.""" from __future__ import annotations from dataclasses import dataclass from typing import cast from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssistant from homeassistant.helpers import config_entry_oauth...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mcp/types.py
homeassistant/components/mcp/types.py
"""Types for the Model Context Protocol integration.""" from homeassistant.config_entries import ConfigEntry from .coordinator import ModelContextProtocolCoordinator type ModelContextProtocolConfigEntry = ConfigEntry[ModelContextProtocolCoordinator]
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mcp/config_flow.py
homeassistant/components/mcp/config_flow.py
"""Config flow for the Model Context Protocol integration.""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass import logging from typing import Any, cast import httpx import voluptuous as vol from yarl import URL from homeassistant.components.application_cred...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/local_todo/todo.py
homeassistant/components/local_todo/todo.py
"""A Local To-do todo platform.""" import asyncio import datetime import logging from ical.calendar import Calendar from ical.calendar_stream import IcsCalendarStream from ical.store import TodoStore from ical.todo import Todo, TodoStatus from homeassistant.components.todo import ( TodoItem, TodoItemStatus, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/local_todo/store.py
homeassistant/components/local_todo/store.py
"""Local storage for the Local To-do integration.""" import asyncio from pathlib import Path from homeassistant.core import HomeAssistant class LocalTodoListStore: """Local storage for a single To-do list.""" def __init__(self, hass: HomeAssistant, path: Path) -> None: """Initialize LocalTodoListSt...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/local_todo/const.py
homeassistant/components/local_todo/const.py
"""Constants for the Local To-do integration.""" DOMAIN = "local_todo" CONF_TODO_LIST_NAME = "todo_list_name" CONF_STORAGE_KEY = "storage_key"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/local_todo/__init__.py
homeassistant/components/local_todo/__init__.py
"""The Local To-do integration.""" from __future__ import annotations from pathlib import Path from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.util im...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/local_todo/config_flow.py
homeassistant/components/local_todo/config_flow.py
"""Config flow for Local To-do integration.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.util import slugify from .const import CONF_STORAGE_KEY, CONF_TODO_LIST_NAME, DOM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opple/__init__.py
homeassistant/components/opple/__init__.py
"""The opple 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/opple/light.py
homeassistant/components/opple/light.py
"""Support for the Opple light.""" from __future__ import annotations import logging from typing import Any from pyoppleio.OppleLightDevice import OppleLightDevice import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, PLATFORM_SCHEMA as LIGHT_PLAT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/konnected_esphome/__init__.py
homeassistant/components/konnected_esphome/__init__.py
"""Virtual integration: Konnected ESPHome."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ios/const.py
homeassistant/components/ios/const.py
"""Const for iOS.""" DOMAIN = "ios" ATTR_BATTERY = "battery" ATTR_BATTERY_LEVEL = "level" ATTR_BATTERY_STATE = "state" ATTR_BATTERY_STATE_UNPLUGGED = "Not Charging" ATTR_BATTERY_STATE_CHARGING = "Charging" ATTR_BATTERY_STATE_FULL = "Full" ATTR_BATTERY_STATE_UNKNOWN = "Unknown" BATTERY_STATES = [ ATTR_BATTERY_STA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ios/sensor.py
homeassistant/components/ios/sensor.py
"""Support for Home Assistant iOS app sensors.""" from __future__ import annotations from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import PERCEN...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ios/__init__.py
homeassistant/components/ios/__init__.py
"""Native Home Assistant iOS app component.""" import datetime from http import HTTPStatus from typing import Any from aiohttp import web import voluptuous as vol from homeassistant import config_entries from homeassistant.components.http import KEY_HASS, HomeAssistantView from homeassistant.const import Platform 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/ios/notify.py
homeassistant/components/ios/notify.py
"""Support for iOS push notifications.""" from __future__ import annotations from http import HTTPStatus import logging from typing import Any import requests from homeassistant.components.notify import ( ATTR_DATA, ATTR_MESSAGE, ATTR_TARGET, ATTR_TITLE, ATTR_TITLE_DEFAULT, BaseNotificationS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ios/config_flow.py
homeassistant/components/ios/config_flow.py
"""Config flow for iOS.""" from homeassistant.helpers import config_entry_flow from .const import DOMAIN config_entry_flow.register_discovery_flow( DOMAIN, "Home Assistant iOS", lambda hass: True )
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/statsd/__init__.py
homeassistant/components/statsd/__init__.py
"""Support for sending data to StatsD.""" import logging import statsd import voluptuous as vol from homeassistant.const import CONF_HOST, CONF_PORT, CONF_PREFIX, EVENT_STATE_CHANGED from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv, state as state_helper from hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/onvif/event.py
homeassistant/components/onvif/event.py
"""ONVIF event abstraction.""" from __future__ import annotations import asyncio from collections.abc import Callable import datetime as dt import aiohttp from aiohttp.web import Request from onvif import ONVIFCamera from onvif.client import ( NotificationManager, PullPointManager as ONVIFPullPointManager, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/onvif/diagnostics.py
homeassistant/components/onvif/diagnostics.py
"""Diagnostics support for ONVIF.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/onvif/parsers.py
homeassistant/components/onvif/parsers.py
"""ONVIF event parsers.""" from __future__ import annotations from collections.abc import Callable, Coroutine import dataclasses import datetime from typing import Any from homeassistant.const import EntityCategory from homeassistant.util import dt as dt_util from homeassistant.util.decorator import Registry from ....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false