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/smtp/const.py
homeassistant/components/smtp/const.py
"""Constants for the smtp integration.""" from typing import Final DOMAIN: Final = "smtp" ATTR_IMAGES: Final = "images" # optional embedded image file attachments ATTR_HTML: Final = "html" ATTR_SENDER_NAME: Final = "sender_name" CONF_ENCRYPTION: Final = "encryption" CONF_DEBUG: Final = "debug" CONF_SERVER: Final =...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smtp/__init__.py
homeassistant/components/smtp/__init__.py
"""The smtp 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/smtp/notify.py
homeassistant/components/smtp/notify.py
"""Mail (SMTP) notification service.""" from __future__ import annotations from email.mime.application import MIMEApplication from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import email.utils import logging import os from pathlib import Path ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomorrowio/weather.py
homeassistant/components/tomorrowio/weather.py
"""Weather component that handles meteorological data for your location.""" from __future__ import annotations from datetime import datetime from pytomorrowio.const import DAILY, FORECASTS, HOURLY, NOWCAST, WeatherCode from homeassistant.components.weather import ( ATTR_FORECAST_CONDITION, ATTR_FORECAST_HUM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomorrowio/const.py
homeassistant/components/tomorrowio/const.py
"""Constants for the Tomorrow.io integration.""" from __future__ import annotations import logging from pytomorrowio.const import DAILY, HOURLY, NOWCAST, WeatherCode from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_FOG, ATTR_CONDITION_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/tomorrowio/coordinator.py
homeassistant/components/tomorrowio/coordinator.py
"""The Tomorrow.io integration.""" from __future__ import annotations import asyncio from datetime import timedelta from math import ceil from typing import Any from pytomorrowio import TomorrowioV4 from pytomorrowio.const import CURRENT, FORECASTS from pytomorrowio.exceptions import ( CantConnectException, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomorrowio/sensor.py
homeassistant/components/tomorrowio/sensor.py
"""Sensor component that handles additional Tomorrowio data for your location.""" from __future__ import annotations from abc import abstractmethod from collections.abc import Callable from dataclasses import dataclass from typing import Any from pytomorrowio.const import ( HealthConcernType, PollenIndex, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomorrowio/__init__.py
homeassistant/components/tomorrowio/__init__.py
"""The Tomorrow.io integration.""" from __future__ import annotations from pytomorrowio import TomorrowioV4 from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN from homeassistant.config_entries import ConfigEntry from homeassistant...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomorrowio/entity.py
homeassistant/components/tomorrowio/entity.py
"""The Tomorrow.io integration.""" from __future__ import annotations from pytomorrowio.const import CURRENT from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_API_KEY from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.updat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomorrowio/config_flow.py
homeassistant/components/tomorrowio/config_flow.py
"""Config flow for Tomorrow.io integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from pytomorrowio.exceptions import ( CantConnectException, InvalidAPIKeyException, RateLimitedException, ) from pytomorrowio.pytomorrowio import Tom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cloudflare/const.py
homeassistant/components/cloudflare/const.py
"""Constants for Cloudflare.""" DOMAIN = "cloudflare" # Config CONF_RECORDS = "records" # Defaults DEFAULT_UPDATE_INTERVAL = 60 # in minutes # Services SERVICE_UPDATE_RECORDS = "update_records"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cloudflare/helpers.py
homeassistant/components/cloudflare/helpers.py
"""Helpers for the CloudFlare integration.""" import pycfdns def get_zone_id(target_zone_name: str, zones: list[pycfdns.ZoneModel]) -> str | None: """Get the zone ID for the target zone name.""" for zone in zones: if zone["name"] == target_zone_name: return zone["id"] return 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/cloudflare/__init__.py
homeassistant/components/cloudflare/__init__.py
"""Update the IP addresses of your Cloudflare DNS records.""" from __future__ import annotations import asyncio from dataclasses import dataclass from datetime import datetime, timedelta import logging import socket import pycfdns from homeassistant.config_entries import ConfigEntry from homeassistant.const import ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cloudflare/config_flow.py
homeassistant/components/cloudflare/config_flow.py
"""Config flow for Cloudflare integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any import pycfdns import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_API_TOKEN, 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/media_player/device_trigger.py
homeassistant/components/media_player/device_trigger.py
"""Provides device automations for Media player.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import ( DEVICE_TRIGGER_BASE_SCHEMA, entity, ) from homeassistant.components.homeassistant.triggers import state as state_trigger 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/media_player/device_condition.py
homeassistant/components/media_player/device_condition.py
"""Provides device automations for Media player.""" from __future__ import annotations import voluptuous as vol from homeassistant.const import ( ATTR_ENTITY_ID, CONF_CONDITION, CONF_DEVICE_ID, CONF_DOMAIN, CONF_ENTITY_ID, CONF_TYPE, STATE_BUFFERING, STATE_IDLE, STATE_OFF, 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/media_player/significant_change.py
homeassistant/components/media_player/significant_change.py
"""Helper to test significant Media Player state changes.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.significant_change import ( check_absolute_change, check_valid_float, ) from . import ( ATTR_ENTITY_PIC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/media_player/browse_media.py
homeassistant/components/media_player/browse_media.py
"""Browse media features for media player.""" from __future__ import annotations from collections.abc import Sequence from dataclasses import dataclass, field from datetime import timedelta import logging from typing import Any from urllib.parse import quote import yarl from homeassistant.components.http.auth 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/media_player/const.py
homeassistant/components/media_player/const.py
"""Provides the constants needed for component.""" from enum import IntFlag, StrEnum from homeassistant.helpers.deprecation import EnumWithDeprecatedMembers # How long our auth signature on the content should be valid for CONTENT_AUTH_EXPIRY_TIME = 3600 * 24 ATTR_APP_ID = "app_id" ATTR_APP_NAME = "app_name" ATTR_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/media_player/intent.py
homeassistant/components/media_player/intent.py
"""Intents for the media_player integration.""" import asyncio from collections.abc import Iterable from dataclasses import dataclass, field import logging import time from typing import cast import voluptuous as vol from homeassistant.const import ( SERVICE_MEDIA_NEXT_TRACK, SERVICE_MEDIA_PAUSE, SERVICE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/media_player/errors.py
homeassistant/components/media_player/errors.py
"""Errors for the Media Player component.""" from homeassistant.exceptions import HomeAssistantError class MediaPlayerException(HomeAssistantError): """Base class for Media Player exceptions.""" class BrowseError(MediaPlayerException): """Error while browsing.""" class SearchError(MediaPlayerException): ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/media_player/reproduce_state.py
homeassistant/components/media_player/reproduce_state.py
"""Module that groups code required to handle state restore for component.""" from __future__ import annotations import asyncio from collections.abc import Iterable from typing import Any from homeassistant.const import ( ATTR_SUPPORTED_FEATURES, SERVICE_MEDIA_PAUSE, SERVICE_MEDIA_PLAY, SERVICE_MEDIA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/media_player/__init__.py
homeassistant/components/media_player/__init__.py
"""Component to interface with various media players.""" from __future__ import annotations import asyncio import collections from collections.abc import Callable from contextlib import suppress import datetime as dt from enum import StrEnum import functools as ft from functools import lru_cache import hashlib from h...
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/media_player/trigger.py
homeassistant/components/media_player/trigger.py
"""Provides triggers for media players.""" from homeassistant.core import HomeAssistant from homeassistant.helpers.trigger import Trigger, make_entity_transition_trigger from . import MediaPlayerState from .const import DOMAIN TRIGGERS: dict[str, type[Trigger]] = { "stopped_playing": make_entity_transition_trigg...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/websocket_api/automation.py
homeassistant/components/websocket_api/automation.py
"""Automation related helper methods for the Websocket API.""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass from enum import StrEnum import logging from typing import Any, Self from homeassistant.const import CONF_TARGET from homeassistant.core import 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/websocket_api/http.py
homeassistant/components/websocket_api/http.py
"""View to accept incoming websocket connection.""" from __future__ import annotations import asyncio from collections import deque from collections.abc import Callable, Coroutine import datetime as dt from functools import partial import logging from typing import TYPE_CHECKING, Any, Final from aiohttp import WSMsg...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/websocket_api/error.py
homeassistant/components/websocket_api/error.py
"""WebSocket API related errors.""" from homeassistant.exceptions import HomeAssistantError class Disconnect(HomeAssistantError): """Disconnect the current session."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/websocket_api/util.py
homeassistant/components/websocket_api/util.py
"""Websocket API util."".""" from __future__ import annotations from aiohttp import web def describe_request(request: web.Request) -> str: """Describe a request.""" description = f"from {request.remote}" if user_agent := request.headers.get("user-agent"): description += f" ({user_agent})" re...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/websocket_api/decorators.py
homeassistant/components/websocket_api/decorators.py
"""Decorators for the Websocket API.""" from __future__ import annotations from collections.abc import Callable from functools import wraps from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.const import HASSIO_USER_NAME from homeassistant.core import HomeAssistant, callback 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/websocket_api/commands.py
homeassistant/components/websocket_api/commands.py
"""Commands part of Websocket API.""" from __future__ import annotations from collections.abc import Callable from functools import lru_cache, partial import json import logging from typing import Any, cast import voluptuous as vol from homeassistant.auth.models import User from homeassistant.auth.permissions.const...
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/websocket_api/const.py
homeassistant/components/websocket_api/const.py
"""Websocket constants.""" from __future__ import annotations from collections.abc import Awaitable, Callable from typing import TYPE_CHECKING, Any, Final from homeassistant.core import HomeAssistant if TYPE_CHECKING: from .connection import ActiveConnection type WebSocketCommandHandler = Callable[ [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/websocket_api/sensor.py
homeassistant/components/websocket_api/sensor.py
"""Entity to track connections to websocket API.""" from __future__ import annotations from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform 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/websocket_api/connection.py
homeassistant/components/websocket_api/connection.py
"""Connection session.""" from __future__ import annotations from collections.abc import Callable, Hashable from contextvars import ContextVar from typing import TYPE_CHECKING, Any, Literal from aiohttp import web import voluptuous as vol from homeassistant.auth.models import RefreshToken, User from homeassistant.c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/websocket_api/__init__.py
homeassistant/components/websocket_api/__init__.py
"""WebSocket based API for Home Assistant.""" from __future__ import annotations from typing import Final, cast from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType, VolSchemaType from homeassistant.loader...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/websocket_api/messages.py
homeassistant/components/websocket_api/messages.py
"""Message templates for websocket commands.""" from __future__ import annotations from functools import lru_cache import logging from typing import Any, Final import voluptuous as vol from homeassistant.const import ( COMPRESSED_STATE_ATTRIBUTES, COMPRESSED_STATE_CONTEXT, COMPRESSED_STATE_LAST_CHANGED,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/websocket_api/auth.py
homeassistant/components/websocket_api/auth.py
"""Handle the auth of a connection.""" from __future__ import annotations from collections.abc import Callable, Coroutine from typing import TYPE_CHECKING, Any, Final from aiohttp.web import Request import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.components.http.ban 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/zestimate/sensor.py
homeassistant/components/zestimate/sensor.py
"""Support for zestimate data from zillow.com.""" from __future__ import annotations from datetime import timedelta import logging import requests import voluptuous as vol import xmltodict from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) 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/zestimate/__init__.py
homeassistant/components/zestimate/__init__.py
"""The zestimate 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/input_number/reproduce_state.py
homeassistant/components/input_number/reproduce_state.py
"""Reproduce an Input number state.""" from __future__ import annotations import asyncio from collections.abc import Iterable import logging from typing import Any import voluptuous as vol from homeassistant.const import ATTR_ENTITY_ID from homeassistant.core import Context, HomeAssistant, State from . 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/input_number/__init__.py
homeassistant/components/input_number/__init__.py
"""Support to set a numeric value from a slider or text box.""" from __future__ import annotations from contextlib import suppress import logging from typing import Self import voluptuous as vol from homeassistant.const import ( ATTR_EDITABLE, ATTR_MODE, CONF_ICON, CONF_ID, CONF_MODE, 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/elv/switch.py
homeassistant/components/elv/switch.py
"""Support for PCA 301 smart switch.""" from __future__ import annotations import logging from typing import Any import pypca from serial import SerialException from homeassistant.components.switch import SwitchEntity from homeassistant.const import EVENT_HOMEASSISTANT_STOP from homeassistant.core import 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/elv/__init__.py
homeassistant/components/elv/__init__.py
"""The Elv integration.""" import voluptuous as vol from homeassistant.const import CONF_DEVICE, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.typing import ConfigType DOMAIN = "elv" DEFAULT_DEVICE = "/dev/ttyUSB...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nws/weather.py
homeassistant/components/nws/weather.py
"""Support for NWS weather service.""" from __future__ import annotations from collections.abc import Mapping from functools import partial from typing import Any, Required, TypedDict, cast import voluptuous as vol from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_SUN...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nws/diagnostics.py
homeassistant/components/nws/diagnostics.py
"""Diagnostics support for NWS.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE from homeassistant.core import HomeAssistant from . import NWSConfigEntry 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/nws/const.py
homeassistant/components/nws/const.py
"""Constants for National Weather Service Integration.""" from __future__ import annotations from datetime import timedelta from typing import Final from homeassistant.components.weather import ( ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, ATTR_CONDITION_HAIL, ATTR_COND...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nws/coordinator.py
homeassistant/components/nws/coordinator.py
"""The NWS coordinator.""" from __future__ import annotations from datetime import datetime import logging from typing import TYPE_CHECKING from aiohttp import ClientResponseError from pynws import NwsNoDataError, SimpleNWS, call_with_retry from homeassistant.core import HomeAssistant from homeassistant.helpers 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/nws/sensor.py
homeassistant/components/nws/sensor.py
"""Sensors for National Weather Service (NWS).""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass from datetime import datetime from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescri...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nws/__init__.py
homeassistant/components/nws/__init__.py
"""The National Weather Service integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass import datetime import logging from pynws import NwsNoDataError, SimpleNWS, call_with_retry 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/nws/config_flow.py
homeassistant/components/nws/config_flow.py
"""Config flow for National Weather Service (NWS) integration.""" from __future__ import annotations import logging from typing import Any import aiohttp from pynws import SimpleNWS import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_AP...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/diagnostics.py
homeassistant/components/hassio/diagnostics.py
"""Diagnostics support for Supervisor.""" from __future__ import annotations from typing import Any from attr import asdict from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr, entity_registry as er from .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/hassio/http.py
homeassistant/components/hassio/http.py
"""HTTP Support for Hass.io.""" from __future__ import annotations from http import HTTPStatus import logging import os import re from typing import TYPE_CHECKING from urllib.parse import quote, unquote import aiohttp from aiohttp import web from aiohttp.client import ClientTimeout from aiohttp.hdrs import ( AUT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/repairs.py
homeassistant/components/hassio/repairs.py
"""Repairs implementation for supervisor integration.""" from __future__ import annotations from collections.abc import Callable, Coroutine from types import MethodType from typing import Any from aiohasupervisor import SupervisorError from aiohasupervisor.models import ContextType import voluptuous as vol 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/hassio/discovery.py
homeassistant/components/hassio/discovery.py
"""Implement the services discovery feature from Hass.io for Add-ons.""" from __future__ import annotations import asyncio import logging from typing import Any from uuid import UUID from aiohasupervisor import SupervisorError from aiohasupervisor.models import Discovery from aiohttp import web from aiohttp.web_exce...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/handler.py
homeassistant/components/hassio/handler.py
"""Handler for Hass.io.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine from http import HTTPStatus import logging import os from typing import Any from aiohasupervisor import SupervisorClient from aiohasupervisor.models import SupervisorOptions import aiohttp fro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/system_health.py
homeassistant/components/hassio/system_health.py
"""Provide info to system health.""" from __future__ import annotations import os from typing import Any from homeassistant.components import system_health from homeassistant.core import HomeAssistant, callback from .coordinator import ( get_host_info, get_info, get_network_info, get_os_info, ge...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/switch.py
homeassistant/components/hassio/switch.py
"""Switch platform for Hass.io addons.""" from __future__ import annotations import logging from typing import Any from aiohasupervisor import SupervisorError from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.config_entries import ConfigEntry 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/hassio/update_helper.py
homeassistant/components/hassio/update_helper.py
"""Update helpers for Supervisor.""" from __future__ import annotations from aiohasupervisor import SupervisorError from aiohasupervisor.models import ( HomeAssistantUpdateOptions, OSUpdate, StoreAddonUpdate, ) from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistan...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/websocket_api.py
homeassistant/components/hassio/websocket_api.py
"""Websocekt API handlers for the hassio integration.""" import logging from numbers import Number import re from typing import Any, cast import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.components.websocket_api import ActiveConnection from homeassistant.const import ATT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/binary_sensor.py
homeassistant/components/hassio/binary_sensor.py
"""Binary sensor platform for Hass.io addons.""" from __future__ import annotations from dataclasses import dataclass import itertools from aiohasupervisor.models.mounts import MountState from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntity...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/ingress.py
homeassistant/components/hassio/ingress.py
"""Hass.io Add-on ingress service.""" from __future__ import annotations import asyncio from collections.abc import Iterable from functools import lru_cache from ipaddress import ip_address import logging from urllib.parse import quote import aiohttp from aiohttp import ClientTimeout, ClientWebSocketResponse, hdrs, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/const.py
homeassistant/components/hassio/const.py
"""Hass.io const variables.""" from __future__ import annotations from datetime import timedelta from enum import StrEnum from typing import TYPE_CHECKING from homeassistant.util.hass_dict import HassKey if TYPE_CHECKING: from .config import HassioConfig from .handler import HassIO DOMAIN = "hassio" 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/hassio/coordinator.py
homeassistant/components/hassio/coordinator.py
"""Data for Hass.io.""" from __future__ import annotations import asyncio from collections import defaultdict from copy import deepcopy import logging from typing import TYPE_CHECKING, Any from aiohasupervisor import SupervisorError, SupervisorNotFoundError from aiohasupervisor.models import StoreInfo from aiohasupe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/update.py
homeassistant/components/hassio/update.py
"""Update platform for Supervisor.""" from __future__ import annotations import re from typing import Any from aiohasupervisor import SupervisorError from aiohasupervisor.models import Job from awesomeversion import AwesomeVersion, AwesomeVersionStrategy from homeassistant.components.update import ( UpdateEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/jobs.py
homeassistant/components/hassio/jobs.py
"""Track Supervisor job data and allow subscription to updates.""" from collections.abc import Callable from dataclasses import dataclass, replace from functools import partial import logging from typing import Any from uuid import UUID from aiohasupervisor.models import Job from homeassistant.core import ( CALL...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/sensor.py
homeassistant/components/hassio/sensor.py
"""Sensor platform for Hass.io addons.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import PERCENTAGE, Enti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/config.py
homeassistant/components/hassio/config.py
"""Provide persistent configuration for the hassio integration.""" from __future__ import annotations from dataclasses import dataclass, replace from typing import Required, Self, TypedDict from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.storage import Store from homeassistant.helpe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/__init__.py
homeassistant/components/hassio/__init__.py
"""Support for Hass.io.""" from __future__ import annotations import asyncio from contextlib import suppress from datetime import datetime import logging import os import re import struct from typing import Any, NamedTuple from aiohasupervisor import SupervisorError from aiohasupervisor.models import GreenOptions, Y...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/addon_panel.py
homeassistant/components/hassio/addon_panel.py
"""Implement the Ingress Panel feature for Hass.io Add-ons.""" from http import HTTPStatus import logging from typing import Any from aiohttp import web from homeassistant.components import frontend, panel_custom from homeassistant.components.http import HomeAssistantView from homeassistant.const import ATTR_ICON 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/hassio/entity.py
homeassistant/components/hassio/entity.py
"""Base for Hass.io entities.""" from __future__ import annotations from typing import Any from aiohasupervisor.models.mounts import CIFSMountResponse, NFSMountResponse from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/backup.py
homeassistant/components/hassio/backup.py
"""Backup functionality for supervised installations.""" from __future__ import annotations import asyncio from collections.abc import AsyncIterator, Callable, Coroutine, Mapping from contextlib import suppress import logging import os from pathlib import Path, PurePath from typing import Any, cast from uuid import U...
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/hassio/auth.py
homeassistant/components/hassio/auth.py
"""Implement the auth feature from Hass.io for Add-ons.""" from http import HTTPStatus from ipaddress import ip_address import logging import os from aiohttp import web from aiohttp.web_exceptions import HTTPNotFound, HTTPUnauthorized import voluptuous as vol from homeassistant.auth.models import User 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/hassio/config_flow.py
homeassistant/components/hassio/config_flow.py
"""Config flow for Home Assistant Supervisor integration.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import DOMAIN class HassIoConfigFlow(ConfigFlow, domain=DOMAIN): """Handle a config flow for Home Assistant S...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/addon_manager.py
homeassistant/components/hassio/addon_manager.py
"""Provide add-on management.""" from __future__ import annotations import asyncio from collections.abc import Awaitable, Callable, Coroutine from dataclasses import dataclass from enum import Enum from functools import partial, wraps import logging from typing import Any, Concatenate from aiohasupervisor import Sup...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hassio/issues.py
homeassistant/components/hassio/issues.py
"""Supervisor events monitor.""" from __future__ import annotations import asyncio from dataclasses import dataclass, field from datetime import datetime import logging from typing import Any, NotRequired, TypedDict from uuid import UUID from aiohasupervisor import SupervisorError from aiohasupervisor.models 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/qwikswitch/switch.py
homeassistant/components/qwikswitch/switch.py
"""Support for Qwikswitch relays.""" from __future__ import annotations from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType 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/qwikswitch/binary_sensor.py
homeassistant/components/qwikswitch/binary_sensor.py
"""Support for Qwikswitch Binary Sensors.""" from __future__ import annotations import logging from pyqwikswitch.qwikswitch import SENSORS from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import Ad...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qwikswitch/sensor.py
homeassistant/components/qwikswitch/sensor.py
"""Support for Qwikswitch Sensors.""" from __future__ import annotations import logging from typing import Any from pyqwikswitch.qwikswitch import SENSORS from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform 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/qwikswitch/__init__.py
homeassistant/components/qwikswitch/__init__.py
"""Support for Qwikswitch devices.""" from __future__ import annotations import logging from pyqwikswitch.async_ import QSUsb from pyqwikswitch.qwikswitch import CMD_BUTTONS, QS_CMD, QS_ID, SENSORS, QSType import voluptuous as vol from homeassistant.components.binary_sensor import DEVICE_CLASSES_SCHEMA from homeass...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qwikswitch/entity.py
homeassistant/components/qwikswitch/entity.py
"""Support for Qwikswitch devices.""" from __future__ import annotations from homeassistant.components.light import ATTR_BRIGHTNESS from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity import Entity from . import DOMAIN 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/qwikswitch/light.py
homeassistant/components/qwikswitch/light.py
"""Support for Qwikswitch Relays and Dimmers.""" from __future__ import annotations from homeassistant.components.light import ColorMode, LightEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import ConfigType, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/israel_rail/const.py
homeassistant/components/israel_rail/const.py
"""Constants for the israel rail integration.""" from datetime import timedelta from typing import Final DOMAIN = "israel_rail" CONF_START: Final = "from" CONF_DESTINATION: Final = "to" DEFAULT_NAME = "Next Destination" DEPARTURES_COUNT = 3 DEFAULT_SCAN_INTERVAL = timedelta(seconds=90) ATTRIBUTION = "Data provid...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/israel_rail/coordinator.py
homeassistant/components/israel_rail/coordinator.py
"""DataUpdateCoordinator for the israel rail integration.""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime import logging from israelrailapi import TrainSchedule from israelrailapi.api import TrainRoute from israelrailapi.train_station import station_name_to_id 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/israel_rail/sensor.py
homeassistant/components/israel_rail/sensor.py
"""Support for israel rail.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime import logging from typing import TYPE_CHECKING from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/israel_rail/__init__.py
homeassistant/components/israel_rail/__init__.py
"""The Israel Rail component.""" import logging from israelrailapi import TrainSchedule from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from .const import CONF_DESTINATION, CONF_START, DOMAIN from .coordinator import Isra...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/israel_rail/config_flow.py
homeassistant/components/israel_rail/config_flow.py
"""Config flow for israel rail.""" import logging from typing import Any from israelrailapi import TrainSchedule from israelrailapi.stations import STATIONS import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import CONF_DESTINATION, CONF_START, DOMAIN STATION...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weather/significant_change.py
homeassistant/components/weather/significant_change.py
"""Helper to test significant Weather state changes.""" from __future__ import annotations from typing import Any from homeassistant.const import UnitOfPressure, UnitOfSpeed, UnitOfTemperature from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.significant_change import ( check_abso...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weather/websocket_api.py
homeassistant/components/weather/websocket_api.py
"""The weather websocket API.""" from __future__ import annotations from typing import Any, Literal import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_validation as cv from homeassistant.util.jso...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weather/const.py
homeassistant/components/weather/const.py
"""Constants for weather.""" from __future__ import annotations from collections.abc import Callable from enum import IntFlag from typing import TYPE_CHECKING, Final from homeassistant.const import ( UnitOfLength, UnitOfPrecipitationDepth, UnitOfPressure, UnitOfSpeed, UnitOfTemperature, ) 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/weather/intent.py
homeassistant/components/weather/intent.py
"""Intents for the weather integration.""" from __future__ import annotations import voluptuous as vol from homeassistant.core import HomeAssistant, State from homeassistant.helpers import intent from . import DOMAIN, INTENT_GET_WEATHER async def async_setup_intents(hass: HomeAssistant) -> None: """Set up 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/weather/__init__.py
homeassistant/components/weather/__init__.py
"""Weather component that handles meteorological data for your location.""" from __future__ import annotations import abc from collections.abc import Callable, Iterable from contextlib import suppress from datetime import timedelta from functools import partial import logging from typing import ( Any, Final, ...
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/yalexs_ble/util.py
homeassistant/components/yalexs_ble/util.py
"""The yalexs_ble integration models.""" from __future__ import annotations import platform from yalexs_ble import local_name_is_unique from homeassistant.components.bluetooth import ( BluetoothServiceInfoBleak, async_discovered_service_info, ) from homeassistant.components.bluetooth.match import ( ADDR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/yalexs_ble/models.py
homeassistant/components/yalexs_ble/models.py
"""The yalexs_ble integration models.""" from __future__ import annotations from dataclasses import dataclass from yalexs_ble import PushLock @dataclass class YaleXSBLEData: """Data for the yale xs ble integration.""" title: str lock: PushLock always_connected: bool
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/yalexs_ble/binary_sensor.py
homeassistant/components/yalexs_ble/binary_sensor.py
"""Support for yalexs ble binary sensors.""" from __future__ import annotations from yalexs_ble import ConnectionInfo, DoorStatus, LockInfo, LockState from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.core import HomeAssistant, callback fro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/yalexs_ble/lock.py
homeassistant/components/yalexs_ble/lock.py
"""Support for Yale Access Bluetooth locks.""" from __future__ import annotations from typing import Any from yalexs_ble import ConnectionInfo, LockInfo, LockState, LockStatus from homeassistant.components.lock import LockEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/yalexs_ble/const.py
homeassistant/components/yalexs_ble/const.py
"""Constants for the Yale Access Bluetooth integration.""" DOMAIN = "yalexs_ble" CONF_LOCAL_NAME = "local_name" CONF_KEY = "key" CONF_SLOT = "slot" CONF_ALWAYS_CONNECTED = "always_connected" DEVICE_TIMEOUT = 55
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/yalexs_ble/config_cache.py
homeassistant/components/yalexs_ble/config_cache.py
"""The Yale Access Bluetooth integration.""" from __future__ import annotations from yalexs_ble import ValidatedLockConfig from homeassistant.core import HomeAssistant, callback from homeassistant.util.hass_dict import HassKey CONFIG_CACHE: HassKey[dict[str, ValidatedLockConfig]] = HassKey( "yalexs_ble_config_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/yalexs_ble/sensor.py
homeassistant/components/yalexs_ble/sensor.py
"""Support for yalexs ble sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from yalexs_ble import ConnectionInfo, LockInfo, LockState from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescriptio...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/yalexs_ble/__init__.py
homeassistant/components/yalexs_ble/__init__.py
"""The Yale Access Bluetooth integration.""" from __future__ import annotations from yalexs_ble import ( AuthError, ConnectionInfo, LockInfo, LockState, PushLock, YaleXSBLEError, close_stale_connections_by_address, local_name_is_unique, ) from homeassistant.components import bluetooth...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/yalexs_ble/entity.py
homeassistant/components/yalexs_ble/entity.py
"""The yalexs_ble integration entities.""" from __future__ import annotations from yalexs_ble import ConnectionInfo, LockInfo, LockState from homeassistant.components import bluetooth from homeassistant.core import callback from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_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/yalexs_ble/config_flow.py
homeassistant/components/yalexs_ble/config_flow.py
"""Config flow for Yale Access Bluetooth integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any, Self from bleak_retry_connector import BleakError, BLEDevice import voluptuous as vol from yalexs_ble import ( AuthError, DisconnectedError, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false