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/lidarr/coordinator.py
homeassistant/components/lidarr/coordinator.py
"""Data update coordinator for the Lidarr integration.""" from __future__ import annotations from abc import ABC, abstractmethod from dataclasses import dataclass from datetime import timedelta from typing import Generic, TypeVar, cast from aiopyarr import LidarrAlbum, LidarrQueue, LidarrRootFolder, exceptions 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/lidarr/sensor.py
homeassistant/components/lidarr/sensor.py
"""Support for Lidarr.""" from __future__ import annotations from collections.abc import Callable import dataclasses from typing import Any, Generic from aiopyarr import LidarrQueue, LidarrQueueItem, LidarrRootFolder from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lidarr/__init__.py
homeassistant/components/lidarr/__init__.py
"""The Lidarr component.""" from __future__ import annotations from dataclasses import fields from aiopyarr.lidarr_client import LidarrClient from aiopyarr.models.host_configuration import PyArrHostConfiguration from homeassistant.const import CONF_API_KEY, CONF_URL, CONF_VERIFY_SSL, Platform 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/lidarr/entity.py
homeassistant/components/lidarr/entity.py
"""The Lidarr component.""" 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 .coordinator import LidarrDataUp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lidarr/config_flow.py
homeassistant/components/lidarr/config_flow.py
"""Config flow for Lidarr.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from aiohttp import ClientConnectorError from aiopyarr import exceptions from aiopyarr.lidarr_client import LidarrClient import voluptuous as vol from homeassistant.config_entries import SOURC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/event.py
homeassistant/components/doorbird/event.py
"""Support for doorbird events.""" from typing import TYPE_CHECKING from homeassistant.components.event import ( EventDeviceClass, EventEntity, EventEntityDescription, ) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeas...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/repairs.py
homeassistant/components/doorbird/repairs.py
"""Repairs for DoorBird.""" from __future__ import annotations import voluptuous as vol from homeassistant import data_entry_flow from homeassistant.components.repairs import RepairsFlow from homeassistant.core import HomeAssistant from homeassistant.helpers import issue_registry as ir class DoorBirdReloadConfirmR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/view.py
homeassistant/components/doorbird/view.py
"""Support for DoorBird devices.""" from __future__ import annotations from http import HTTPStatus from aiohttp import web from homeassistant.components.http import KEY_HASS, HomeAssistantView from homeassistant.helpers.dispatcher import async_dispatcher_send from .const import API_URL, DOMAIN from .util import 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/doorbird/util.py
homeassistant/components/doorbird/util.py
"""DoorBird integration utils.""" from typing import Any, cast from homeassistant.core import HomeAssistant, callback from .const import DOMAIN from .device import ConfiguredDoorBird from .models import DoorBirdConfigEntry def get_mac_address_from_door_station_info(door_station_info: dict[str, Any]) -> str: ""...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/models.py
homeassistant/components/doorbird/models.py
"""The doorbird integration models.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from homeassistant.config_entries import ConfigEntry from .device import ConfiguredDoorBird type DoorBirdConfigEntry = ConfigEntry[DoorBirdData] @dataclass class DoorBirdData: ""...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/camera.py
homeassistant/components/doorbird/camera.py
"""Support for viewing the camera feed from a DoorBird video doorbell.""" from __future__ import annotations import datetime import logging import aiohttp from homeassistant.components.camera import Camera, CameraEntityFeature from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform 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/doorbird/const.py
homeassistant/components/doorbird/const.py
"""The DoorBird integration constants.""" from homeassistant.const import Platform DOMAIN = "doorbird" PLATFORMS = [Platform.BUTTON, Platform.CAMERA, Platform.EVENT] CONF_EVENTS = "events" MANUFACTURER = "Bird Home Automation Group" DOORBIRD_OUI = "1CCAE3" DOORBIRD_INFO_KEY_FIRMWARE = "FIRMWARE" DOORBIRD_INFO_KEY_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/doorbird/__init__.py
homeassistant/components/doorbird/__init__.py
"""Support for DoorBird devices.""" from __future__ import annotations from http import HTTPStatus import logging from aiohttp import ClientResponseError from doorbirdpy import DoorBird from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_TOKEN, CONF_USERNAME, ) 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/doorbird/entity.py
homeassistant/components/doorbird/entity.py
"""The DoorBird integration base entity.""" from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const import ( DOORBIRD_INFO_KEY_BUILD_NUMBER, DOORBIRD_INFO_KEY_DEVICE_TYPE, DOORBIRD_INFO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/button.py
homeassistant/components/doorbird/button.py
"""Support for relays and actions in a DoorBird video doorbell.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass, replace from typing import Any from homeassistant.components.button import ButtonEntity, ButtonEntityDescription from homeassistant.const import EntityCategory 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/doorbird/logbook.py
homeassistant/components/doorbird/logbook.py
"""Describe logbook events.""" from __future__ import annotations from collections.abc import Callable from homeassistant.components.logbook import ( LOGBOOK_ENTRY_ENTITY_ID, LOGBOOK_ENTRY_MESSAGE, LOGBOOK_ENTRY_NAME, ) from homeassistant.const import ATTR_ENTITY_ID from homeassistant.core import Event, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/device.py
homeassistant/components/doorbird/device.py
"""Support for DoorBird devices.""" from __future__ import annotations from collections import defaultdict from dataclasses import dataclass from http import HTTPStatus import logging from typing import Any from aiohttp import ClientResponseError from doorbirdpy import ( DoorBird, DoorBirdScheduleEntry, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/doorbird/config_flow.py
homeassistant/components/doorbird/config_flow.py
"""Config flow for DoorBird integration.""" from __future__ import annotations from collections.abc import Mapping from http import HTTPStatus import logging from typing import Any from aiohttp import ClientResponseError from doorbirdpy import DoorBird import voluptuous as vol from homeassistant.config_entries impo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/siren/const.py
homeassistant/components/siren/const.py
"""Constants for the siren component.""" from enum import IntFlag from typing import Final DOMAIN: Final = "siren" ATTR_TONE: Final = "tone" ATTR_AVAILABLE_TONES: Final = "available_tones" ATTR_DURATION: Final = "duration" ATTR_VOLUME_LEVEL: Final = "volume_level" class SirenEntityFeature(IntFlag): """Support...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/siren/__init__.py
homeassistant/components/siren/__init__.py
"""Component to interface with various sirens/chimes.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any, TypedDict, cast, final from propcache.api import cached_property import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeas...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/siren/trigger.py
homeassistant/components/siren/trigger.py
"""Provides triggers for sirens.""" from homeassistant.const import STATE_OFF, STATE_ON from homeassistant.core import HomeAssistant from homeassistant.helpers.trigger import Trigger, make_entity_target_state_trigger from . import DOMAIN TRIGGERS: dict[str, type[Trigger]] = { "turned_on": make_entity_target_stat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/irish_rail_transport/sensor.py
homeassistant/components/irish_rail_transport/sensor.py
"""Support for Irish Rail RTPI information.""" from __future__ import annotations from datetime import timedelta from typing import Any from pyirishrail.pyirishrail import IrishRailRTPI import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/irish_rail_transport/__init__.py
homeassistant/components/irish_rail_transport/__init__.py
"""The irish_rail_transport 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/no_ip/__init__.py
homeassistant/components/no_ip/__init__.py
"""Integrate with NO-IP Dynamic DNS service.""" import asyncio import base64 from datetime import datetime, timedelta import logging import aiohttp from aiohttp.hdrs import AUTHORIZATION, USER_AGENT import voluptuous as vol from homeassistant.const import CONF_DOMAIN, CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME 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/comed_hourly_pricing/sensor.py
homeassistant/components/comed_hourly_pricing/sensor.py
"""Support for ComEd Hourly Pricing data.""" from __future__ import annotations import asyncio from datetime import timedelta import json import logging import aiohttp import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, SensorEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/comed_hourly_pricing/__init__.py
homeassistant/components/comed_hourly_pricing/__init__.py
"""The comed_hourly_pricing 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/nut/diagnostics.py
homeassistant/components/nut/diagnostics.py
"""Diagnostics support for Nut.""" from __future__ import annotations from typing import Any import attr from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant from homeassistant.helpers import devi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nut/switch.py
homeassistant/components/nut/switch.py
"""Provides a switch for switchable NUT outlets.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.switch import ( SwitchDeviceClass, SwitchEntity, SwitchEntityDescription, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.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/nut/const.py
homeassistant/components/nut/const.py
"""The nut component.""" from __future__ import annotations from homeassistant.const import Platform DOMAIN = "nut" PLATFORMS = [ Platform.BUTTON, Platform.SENSOR, Platform.SWITCH, ] DEFAULT_NAME = "NUT UPS" DEFAULT_HOST = "localhost" DEFAULT_PORT = 3493 KEY_STATUS = "ups.status" KEY_STATUS_DISPLAY = ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nut/sensor.py
homeassistant/components/nut/sensor.py
"""Provides a sensor to track various status aspects of a NUT device.""" from __future__ import annotations import logging from typing import Final from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const impo...
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/nut/__init__.py
homeassistant/components/nut/__init__.py
"""The nut component.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta import logging from typing import TYPE_CHECKING from aionut import AIONUTClient, NUTError, NUTLoginError 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/nut/entity.py
homeassistant/components/nut/entity.py
"""Base entity for the NUT integration.""" from __future__ import annotations from dataclasses import asdict from typing import cast from homeassistant.const import ( ATTR_MANUFACTURER, ATTR_MODEL, ATTR_SERIAL_NUMBER, ATTR_SW_VERSION, ) from homeassistant.helpers.device_registry import DeviceInfo 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/nut/device_action.py
homeassistant/components/nut/device_action.py
"""Provides device actions for Network UPS Tools (NUT).""" from __future__ import annotations from typing import cast import voluptuous as vol from homeassistant.components.device_automation import InvalidDeviceAutomationConfig from homeassistant.config_entries import ConfigEntryState from homeassistant.const 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/nut/button.py
homeassistant/components/nut/button.py
"""Provides a switch for switchable NUT outlets.""" from __future__ import annotations import logging from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, ButtonEntityDescription, ) from homeassistant.core import HomeAssistant 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/nut/config_flow.py
homeassistant/components/nut/config_flow.py
"""Config flow for Network UPS Tools (NUT) integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from aionut import NUTError, NUTLoginError import voluptuous as vol from homeassistant.config_entries import ConfigEntry, ConfigFlow, ConfigFlowResu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lg_soundbar/media_player.py
homeassistant/components/lg_soundbar/media_player.py
"""Support for LG soundbars.""" from __future__ import annotations from typing import Any import temescal from homeassistant.components.media_player import ( MediaPlayerEntity, MediaPlayerEntityFeature, MediaPlayerState, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const 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/lg_soundbar/const.py
homeassistant/components/lg_soundbar/const.py
"""Constants for the LG Soundbar integration.""" DOMAIN = "lg_soundbar" DEFAULT_PORT = 9741
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lg_soundbar/__init__.py
homeassistant/components/lg_soundbar/__init__.py
"""The lg_soundbar component.""" import logging from homeassistant import config_entries, core from homeassistant.const import CONF_HOST, CONF_PORT, Platform from homeassistant.exceptions import ConfigEntryNotReady from .config_flow import test_connect from .const import DOMAIN _LOGGER = logging.getLogger(__name__)...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lg_soundbar/config_flow.py
homeassistant/components/lg_soundbar/config_flow.py
"""Config flow to configure the LG Soundbar integration.""" import logging from queue import Empty, Full, Queue import temescal import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PORT from .const import DEFAULT_PORT, DOMAIN ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/altruist/const.py
homeassistant/components/altruist/const.py
"""Constants for the Altruist integration.""" DOMAIN = "altruist" CONF_HOST = "host"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/altruist/coordinator.py
homeassistant/components/altruist/coordinator.py
"""Coordinator module for Altruist integration in Home Assistant. This module defines the AltruistDataUpdateCoordinator class, which manages data updates for Altruist sensors using the AltruistClient. """ from datetime import timedelta import logging from altruistclient import AltruistClient, AltruistError 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/altruist/sensor.py
homeassistant/components/altruist/sensor.py
"""Defines the Altruist sensor platform.""" from collections.abc import Callable from dataclasses import dataclass import logging from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( CONCENTRAT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/altruist/__init__.py
homeassistant/components/altruist/__init__.py
"""The Altruist integration.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import AltruistConfigEntry, AltruistDataUpdateCoordinator PLATFORMS = [Platform.SENSOR] async def async_setup_entry(hass: HomeAssistant, entry:...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/altruist/config_flow.py
homeassistant/components/altruist/config_flow.py
"""Config flow for the Altruist integration.""" import logging from typing import Any from altruistclient import AltruistClient, AltruistDeviceModel, AltruistError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.helpers.aiohttp_client import async_get...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/slack/const.py
homeassistant/components/slack/const.py
"""Constants for the Slack integration.""" from typing import Final ATTR_BLOCKS = "blocks" ATTR_BLOCKS_TEMPLATE = "blocks_template" ATTR_FILE = "file" ATTR_PASSWORD = "password" ATTR_PATH = "path" ATTR_SNOOZE = "snooze_endtime" ATTR_URL = "url" ATTR_USERNAME = "username" ATTR_USER_ID = "user_id" ATTR_THREAD_TS = "thr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/slack/utils.py
homeassistant/components/slack/utils.py
"""Utils for the Slack integration.""" import logging import aiofiles from slack_sdk.errors import SlackApiError from slack_sdk.web.async_client import AsyncWebClient _LOGGER = logging.getLogger(__name__) async def upload_file_to_slack( client: AsyncWebClient, channel_ids: list[str | None], file_conten...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/slack/sensor.py
homeassistant/components/slack/sensor.py
"""Slack platform for sensor component.""" from __future__ import annotations from slack_sdk.web.async_client import AsyncWebClient from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) 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/slack/__init__.py
homeassistant/components/slack/__init__.py
"""The slack integration.""" from __future__ import annotations import logging from aiohttp.client_exceptions import ClientError from slack_sdk.errors import SlackApiError from slack_sdk.web.async_client import AsyncWebClient from homeassistant.config_entries import ConfigEntry 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/slack/entity.py
homeassistant/components/slack/entity.py
"""The slack integration.""" from __future__ import annotations from slack_sdk.web.async_client import AsyncWebClient from homeassistant.config_entries import ConfigEntry from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import Entity, EntityDescription ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/slack/notify.py
homeassistant/components/slack/notify.py
"""Slack platform for notify component.""" from __future__ import annotations import asyncio import logging import os from typing import Any, TypedDict, cast from urllib.parse import urlparse from aiohttp import BasicAuth from aiohttp.client_exceptions import ClientError from slack_sdk.errors import SlackApiError 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/slack/config_flow.py
homeassistant/components/slack/config_flow.py
"""Config flow for Slack integration.""" from __future__ import annotations import logging from slack_sdk.errors import SlackApiError from slack_sdk.web.async_client import AsyncSlackResponse, AsyncWebClient import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/awair/const.py
homeassistant/components/awair/const.py
"""Constants for the Awair component.""" from __future__ import annotations from datetime import timedelta import logging API_ABS_HUMID = "abs_humid" API_CO2 = "carbon_dioxide" API_DEW_POINT = "dew_point" API_DUST = "dust" API_HUMID = "humidity" API_LUX = "illuminance" API_PM10 = "particulate_matter_10" API_PM25 = "...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/awair/coordinator.py
homeassistant/components/awair/coordinator.py
"""DataUpdateCoordinators for awair integration.""" from __future__ import annotations from asyncio import gather, timeout from dataclasses import dataclass from datetime import timedelta from aiohttp import ClientSession from python_awair import Awair, AwairLocal from python_awair.air_data import AirData from pytho...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/awair/sensor.py
homeassistant/components/awair/sensor.py
"""Support for Awair sensors.""" from __future__ import annotations from dataclasses import dataclass from typing import Any, cast from python_awair.air_data import AirData from python_awair.devices import AwairBaseDevice, AwairLocalDevice from homeassistant.components.sensor import ( SensorDeviceClass, Sen...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/awair/__init__.py
homeassistant/components/awair/__init__.py
"""The awair component.""" from __future__ import annotations from homeassistant.const import CONF_HOST, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .coordinator import ( AwairCloudDataUpdateCoordinator, AwairConfigEntry,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/awair/config_flow.py
homeassistant/components/awair/config_flow.py
"""Config flow for Awair.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, Self, cast from aiohttp.client_exceptions import ClientError from python_awair import Awair, AwairLocal, AwairLocalDevice from python_awair.exceptions import AuthError, AwairError from python_a...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/freedns/__init__.py
homeassistant/components/freedns/__init__.py
"""Integrate with FreeDNS Dynamic DNS service at freedns.afraid.org.""" import asyncio from datetime import datetime, timedelta import logging import aiohttp import voluptuous as vol from homeassistant.const import CONF_ACCESS_TOKEN, CONF_SCAN_INTERVAL, CONF_URL from homeassistant.core import HomeAssistant 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/sftp_storage/client.py
homeassistant/components/sftp_storage/client.py
"""Client for SFTP Storage integration.""" from __future__ import annotations from collections.abc import AsyncIterator from dataclasses import dataclass import json from types import TracebackType from typing import TYPE_CHECKING, Self from asyncssh import ( SFTPClient, SFTPClientFile, SSHClientConnecti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sftp_storage/const.py
homeassistant/components/sftp_storage/const.py
"""Constants for the SFTP Storage integration.""" from __future__ import annotations from collections.abc import Callable import logging from typing import Final from homeassistant.util.hass_dict import HassKey DOMAIN: Final = "sftp_storage" LOGGER = logging.getLogger(__package__) CONF_HOST: Final = "host" CONF_P...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sftp_storage/__init__.py
homeassistant/components/sftp_storage/__init__.py
"""Integration for SFTP Storage.""" from __future__ import annotations import contextlib from dataclasses import dataclass, field import errno import logging from pathlib import Path from homeassistant.components.backup import BackupAgentError from homeassistant.config_entries import ConfigEntry from homeassistant.c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sftp_storage/backup.py
homeassistant/components/sftp_storage/backup.py
"""Backup platform for the SFTP Storage integration.""" from __future__ import annotations from collections.abc import AsyncIterator, Callable, Coroutine from typing import Any from asyncssh.sftp import SFTPError from homeassistant.components.backup import ( AgentBackup, BackupAgent, BackupAgentError, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sftp_storage/config_flow.py
homeassistant/components/sftp_storage/config_flow.py
"""Config flow to configure the SFTP Storage integration.""" from __future__ import annotations from contextlib import suppress from pathlib import Path import shutil from typing import Any, cast from asyncssh import KeyImportError, SSHClientConnectionOptions, connect from asyncssh.misc import PermissionDenied 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/homewizard/diagnostics.py
homeassistant/components/homewizard/diagnostics.py
"""Diagnostics support for P1 Monitor.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_IP_ADDRESS from homeassistant.core import HomeAssistant from .coordinator 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/homewizard/repairs.py
homeassistant/components/homewizard/repairs.py
"""Repairs for HomeWizard integration.""" from __future__ import annotations from homeassistant import data_entry_flow from homeassistant.components.repairs import RepairsFlow from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_IP_ADDRESS, CONF_TOKEN from homeassistant.core impor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homewizard/switch.py
homeassistant/components/homewizard/switch.py
"""Creates HomeWizard switch entities.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from homewizard_energy import HomeWizardEnergy from homewizard_energy.models import CombinedModels as DeviceResponseEntry 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/homewizard/number.py
homeassistant/components/homewizard/number.py
"""Creates HomeWizard Number entities.""" from __future__ import annotations from homeassistant.components.number import NumberEntity from homeassistant.const import PERCENTAGE, EntityCategory from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homewizard/const.py
homeassistant/components/homewizard/const.py
"""Constants for the Homewizard integration.""" from __future__ import annotations from datetime import timedelta import logging from homeassistant.const import Platform DOMAIN = "homewizard" PLATFORMS = [ Platform.BUTTON, Platform.NUMBER, Platform.SELECT, Platform.SENSOR, Platform.SWITCH, ] LO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homewizard/coordinator.py
homeassistant/components/homewizard/coordinator.py
"""Update coordinator for HomeWizard.""" from __future__ import annotations from homewizard_energy import HomeWizardEnergy from homewizard_energy.errors import DisabledError, RequestError, UnauthorizedError from homewizard_energy.models import CombinedModels as DeviceResponseEntry 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/homewizard/helpers.py
homeassistant/components/homewizard/helpers.py
"""Helpers for HomeWizard.""" from __future__ import annotations from collections.abc import Callable, Coroutine from typing import Any, Concatenate from homewizard_energy.errors import DisabledError, RequestError, UnauthorizedError from homeassistant.exceptions import HomeAssistantError from .const import DOMAIN ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homewizard/sensor.py
homeassistant/components/homewizard/sensor.py
"""Creates HomeWizard sensor entities.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from typing import Final from homewizard_energy.const import Model from homewizard_energy.models import CombinedModels, External...
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/homewizard/__init__.py
homeassistant/components/homewizard/__init__.py
"""The Homewizard integration.""" from homewizard_energy import ( HomeWizardEnergy, HomeWizardEnergyV1, HomeWizardEnergyV2, has_v2_api, ) from homeassistant.config_entries import SOURCE_REAUTH from homeassistant.const import CONF_IP_ADDRESS, CONF_TOKEN from homeassistant.core import HomeAssistant from...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homewizard/entity.py
homeassistant/components/homewizard/entity.py
"""Base entity for the HomeWizard integration.""" from __future__ import annotations from homeassistant.const import ATTR_CONNECTIONS, ATTR_IDENTIFIERS from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .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/homewizard/button.py
homeassistant/components/homewizard/button.py
"""Support for HomeWizard buttons.""" from homeassistant.components.button import ButtonDeviceClass, ButtonEntity from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from .coordinator import HomeWi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homewizard/select.py
homeassistant/components/homewizard/select.py
"""Support for HomeWizard select platform.""" from __future__ import annotations from homewizard_energy.models import Batteries from homeassistant.components.select import SelectEntity, SelectEntityDescription from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant 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/homewizard/config_flow.py
homeassistant/components/homewizard/config_flow.py
"""Config flow for HomeWizard.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from homewizard_energy import ( HomeWizardEnergy, HomeWizardEnergyV1, HomeWizardEnergyV2, has_v2_api, ) from homewizard_energy.errors import ( DisabledError, Request...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hko/weather.py
homeassistant/components/hko/weather.py
"""Support for the HKO service.""" from homeassistant.components.weather import ( Forecast, WeatherEntity, WeatherEntityFeature, ) from homeassistant.const import UnitOfTemperature from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo 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/hko/const.py
homeassistant/components/hko/const.py
"""Constants for the Hong Kong Observatory integration.""" from hko import LOCATIONS from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_FOG, ATTR_CONDITION_LIGHTNING_RAINY, ATTR_CONDITION_PARTLYCLOUDY, ATTR_CONDITION_POURING, AT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hko/coordinator.py
homeassistant/components/hko/coordinator.py
"""Weather data coordinator for the HKO API.""" from asyncio import timeout from datetime import timedelta import logging from typing import Any from aiohttp import ClientSession from hko import HKO, HKOError from homeassistant.components.weather import ( ATTR_CONDITION_CLOUDY, ATTR_CONDITION_FOG, ATTR_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/hko/__init__.py
homeassistant/components/hko/__init__.py
"""The Hong Kong Observatory integration.""" from __future__ import annotations from hko import LOCATIONS from homeassistant.const import CONF_LOCATION, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .const import DEFAULT_DISTRICT,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/hko/config_flow.py
homeassistant/components/hko/config_flow.py
"""Config flow for Hong Kong Observatory integration.""" from __future__ import annotations from asyncio import timeout import logging from typing import Any from hko import HKO, LOCATIONS, HKOError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.con...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/chacon_dio/cover.py
homeassistant/components/chacon_dio/cover.py
"""Cover Platform for Chacon Dio REV-SHUTTER devices.""" import logging from typing import Any from dio_chacon_wifi_api.const import DeviceTypeEnum, ShutterMoveEnum from homeassistant.components.cover import ( ATTR_POSITION, CoverDeviceClass, CoverEntity, CoverEntityFeature, ) from homeassistant.core...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/chacon_dio/switch.py
homeassistant/components/chacon_dio/switch.py
"""Switch Platform for Chacon Dio REV-LIGHT and switch plug devices.""" import logging from typing import Any from dio_chacon_wifi_api.const import DeviceTypeEnum from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/chacon_dio/const.py
homeassistant/components/chacon_dio/const.py
"""Constants for the chacon_dio integration.""" DOMAIN = "chacon_dio" MANUFACTURER = "Chacon"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/chacon_dio/__init__.py
homeassistant/components/chacon_dio/__init__.py
"""The chacon_dio integration.""" from dataclasses import dataclass import logging from typing import Any from dio_chacon_wifi_api import DIOChaconAPIClient from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_PASSWORD, CONF_USERNAME, EVENT_HOMEASSISTANT_STOP, P...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/chacon_dio/entity.py
homeassistant/components/chacon_dio/entity.py
"""Base entity for the Chacon Dio entity.""" import logging from typing import Any from dio_chacon_wifi_api import DIOChaconAPIClient from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const import DOMAIN, MANUFACTURER _LOGGER = logging.getLogger(__na...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/chacon_dio/config_flow.py
homeassistant/components/chacon_dio/config_flow.py
"""Config flow for chacon_dio integration.""" from __future__ import annotations import logging from typing import Any from dio_chacon_wifi_api import DIOChaconAPIClient from dio_chacon_wifi_api.exceptions import DIOChaconAPIError, DIOChaconInvalidAuthError import voluptuous as vol from homeassistant.config_entries...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/minecraft_server/api.py
homeassistant/components/minecraft_server/api.py
"""API for the Minecraft Server integration.""" from dataclasses import dataclass from enum import StrEnum import logging from dns.resolver import LifetimeTimeout from mcstatus import BedrockServer, JavaServer from mcstatus.responses import BedrockStatusResponse, JavaStatusResponse 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/minecraft_server/diagnostics.py
homeassistant/components/minecraft_server/diagnostics.py
"""Diagnostics for the Minecraft Server integration.""" from collections.abc import Iterable from dataclasses import asdict from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_ADDRESS from homeassistant.core import HomeAssistant 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/minecraft_server/binary_sensor.py
homeassistant/components/minecraft_server/binary_sensor.py
"""The Minecraft Server binary sensor platform.""" from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/minecraft_server/const.py
homeassistant/components/minecraft_server/const.py
"""Constants for the Minecraft Server integration.""" DOMAIN = "minecraft_server" KEY_LATENCY = "latency" KEY_MOTD = "motd"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/minecraft_server/coordinator.py
homeassistant/components/minecraft_server/coordinator.py
"""The Minecraft Server integration.""" from __future__ import annotations from datetime import timedelta import logging from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_ADDRESS, CONF_TYPE from homeassistant.core import HomeAssistant from homeassistant.exceptions import Confi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/minecraft_server/sensor.py
homeassistant/components/minecraft_server/sensor.py
"""The Minecraft Server sensor platform.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from homeassistant.components.sensor import SensorEntity, SensorEntityDescription from homeassistant.const import CONF_TYPE, EntityCategory, Uni...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/minecraft_server/__init__.py
homeassistant/components/minecraft_server/__init__.py
"""The Minecraft Server integration.""" from __future__ import annotations import logging from typing import Any import dns.asyncresolver import dns.rdata import dns.rdataclass import dns.rdatatype from homeassistant.const import CONF_ADDRESS, CONF_HOST, CONF_PORT, Platform 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/minecraft_server/entity.py
homeassistant/components/minecraft_server/entity.py
"""Base entity for the Minecraft Server integration.""" from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_TYPE from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .api import MinecraftServerTyp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/minecraft_server/config_flow.py
homeassistant/components/minecraft_server/config_flow.py
"""Config flow for Minecraft Server integration.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_ADDRESS, CONF_TYPE from .api import MinecraftServer, Minec...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/kitchen_sink/weather.py
homeassistant/components/kitchen_sink/weather.py
"""Demo platform that offers fake meteorological data.""" from __future__ import annotations from datetime import timedelta from homeassistant.components.weather import ( ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, ATTR_CONDITION_HAIL, ATTR_CONDITION_LIGHTNING, 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/kitchen_sink/image.py
homeassistant/components/kitchen_sink/image.py
"""Demo image platform.""" from __future__ import annotations from pathlib import Path from homeassistant.components.image import ImageEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import ( AddConfigEntryEntitie...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/kitchen_sink/repairs.py
homeassistant/components/kitchen_sink/repairs.py
"""Repairs platform for the demo integration.""" from __future__ import annotations import voluptuous as vol from homeassistant import data_entry_flow from homeassistant.components.repairs import ConfirmRepairFlow, RepairsFlow from homeassistant.core import HomeAssistant class DemoFixFlow(RepairsFlow): """Hand...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/kitchen_sink/switch.py
homeassistant/components/kitchen_sink/switch.py
"""Demo platform that has some fake switches.""" from __future__ import annotations from typing import Any from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.device_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/kitchen_sink/lock.py
homeassistant/components/kitchen_sink/lock.py
"""Demo platform that has a couple of fake locks.""" from __future__ import annotations from typing import Any from homeassistant.components.lock import LockEntity, LockEntityFeature, LockState from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helper...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false