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/kitchen_sink/const.py
homeassistant/components/kitchen_sink/const.py
"""Constants for the Kitchen Sink integration.""" from __future__ import annotations from collections.abc import Callable from homeassistant.util.hass_dict import HassKey DOMAIN = "kitchen_sink" DATA_BACKUP_AGENT_LISTENERS: HassKey[list[Callable[[], None]]] = HassKey( f"{DOMAIN}.backup_agent_listeners" )
python
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/sensor.py
homeassistant/components/kitchen_sink/sensor.py
"""Demo platform that has a couple of fake sensors.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import DEGREE, UnitOfPower 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/kitchen_sink/__init__.py
homeassistant/components/kitchen_sink/__init__.py
"""The Kitchen Sink integration contains demonstrations of various odds and ends. This sets up a demo environment of features which are obscure or which represent incorrect behavior, and are thus not wanted in the demo integration. """ from __future__ import annotations import datetime from random import random 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/kitchen_sink/button.py
homeassistant/components/kitchen_sink/button.py
"""Demo platform that offers a fake button entity.""" from __future__ import annotations from homeassistant.components import persistent_notification from homeassistant.components.button import ButtonEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant 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/kitchen_sink/lawn_mower.py
homeassistant/components/kitchen_sink/lawn_mower.py
"""Demo platform that has a couple fake lawn mowers.""" from __future__ import annotations from homeassistant.components.lawn_mower import ( LawnMowerActivity, LawnMowerEntity, LawnMowerEntityFeature, ) from homeassistant.config_entries import ConfigEntry 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/kitchen_sink/backup.py
homeassistant/components/kitchen_sink/backup.py
"""Backup platform for the kitchen_sink integration.""" from __future__ import annotations import asyncio from collections.abc import AsyncIterator, Callable, Coroutine import logging from typing import Any from homeassistant.components.backup import ( AddonInfo, AgentBackup, BackupAgent, BackupNotFo...
python
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/device.py
homeassistant/components/kitchen_sink/device.py
"""Create device without entities.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr from . import DOMAIN def async_create_device( hass: HomeAssistant, config_entry_id: str, device_name: str | None, device_tran...
python
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/notify.py
homeassistant/components/kitchen_sink/notify.py
"""Demo platform that offers a fake notify entity.""" from __future__ import annotations from homeassistant.components import persistent_notification from homeassistant.components.notify import NotifyEntity, NotifyEntityFeature from homeassistant.config_entries import ConfigEntry from homeassistant.core import 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/kitchen_sink/config_flow.py
homeassistant/components/kitchen_sink/config_flow.py
"""Config flow to configure the Kitchen Sink component.""" from __future__ import annotations from collections.abc import Mapping from typing import Any import voluptuous as vol from homeassistant import data_entry_flow from homeassistant.config_entries import ( ConfigEntry, ConfigFlow, ConfigFlowResult...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/cover.py
homeassistant/components/abode/cover.py
"""Support for Abode Security System covers.""" from typing import Any from jaraco.abode.devices.cover import Cover from homeassistant.components.cover import CoverEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform 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/abode/services.py
homeassistant/components/abode/services.py
"""Support for the Abode Security System.""" from __future__ import annotations from jaraco.abode.exceptions import Exception as AbodeException import voluptuous as vol from homeassistant.const import ATTR_ENTITY_ID from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.helpers 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/abode/switch.py
homeassistant/components/abode/switch.py
"""Support for Abode Security System switches.""" from __future__ import annotations from typing import Any, cast from jaraco.abode.devices.switch import Switch from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/binary_sensor.py
homeassistant/components/abode/binary_sensor.py
"""Support for Abode Security System binary sensors.""" from __future__ import annotations from typing import cast from jaraco.abode.devices.binary_sensor import BinarySensor from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) 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/abode/lock.py
homeassistant/components/abode/lock.py
"""Support for the Abode Security System locks.""" from typing import Any from jaraco.abode.devices.lock import Lock from homeassistant.components.lock import LockEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant 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/abode/camera.py
homeassistant/components/abode/camera.py
"""Support for Abode Security System cameras.""" from __future__ import annotations from datetime import timedelta from typing import Any, cast from jaraco.abode.devices.base import Device from jaraco.abode.devices.camera import Camera as AbodeCam from jaraco.abode.helpers import timeline import requests from reques...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/const.py
homeassistant/components/abode/const.py
"""Constants for the Abode Security System component.""" import logging LOGGER = logging.getLogger(__package__) DOMAIN = "abode" ATTRIBUTION = "Data provided by goabode.com" CONF_POLLING = "polling"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/sensor.py
homeassistant/components/abode/sensor.py
"""Support for Abode Security System sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import cast from jaraco.abode.devices.sensor import Sensor from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/__init__.py
homeassistant/components/abode/__init__.py
"""Support for the Abode Security System.""" from __future__ import annotations from dataclasses import dataclass, field from functools import partial from pathlib import Path from jaraco.abode.client import Client as Abode import jaraco.abode.config from jaraco.abode.exceptions import ( AuthenticationException ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/entity.py
homeassistant/components/abode/entity.py
"""Support for Abode Security System entities.""" from jaraco.abode.automation import Automation as AbodeAuto from jaraco.abode.devices.base import Device as AbodeDev from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from . import AbodeSystem from .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/abode/alarm_control_panel.py
homeassistant/components/abode/alarm_control_panel.py
"""Support for Abode Security System alarm control panels.""" from __future__ import annotations from jaraco.abode.devices.alarm import Alarm from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPanelEntityFeature, AlarmControlPanelState, ) from homeassistant.co...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/light.py
homeassistant/components/abode/light.py
"""Support for Abode Security System lights.""" from __future__ import annotations from math import ceil from typing import Any from jaraco.abode.devices.light import Light from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ATTR_HS_COLOR, DEFAULT_MAX_KELVIN, DE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/abode/config_flow.py
homeassistant/components/abode/config_flow.py
"""Config flow for the Abode Security System component.""" from __future__ import annotations from collections.abc import Mapping from http import HTTPStatus from typing import Any, cast from jaraco.abode.client import Client as Abode from jaraco.abode.exceptions import ( AuthenticationException as AbodeAuthenti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/media_player.py
homeassistant/components/linkplay/media_player.py
"""Support for LinkPlay media players.""" from __future__ import annotations from datetime import timedelta import logging from typing import TYPE_CHECKING, Any from linkplay.bridge import LinkPlayBridge from linkplay.consts import EqualizerMode, LoopMode, PlayingMode, PlayingStatus from linkplay.controller import L...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/diagnostics.py
homeassistant/components/linkplay/diagnostics.py
"""Diagnostics support for Linkplay.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from . import LinkPlayConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: LinkPlayConfigEntry ) -> dict[str, Any]: """Return diag...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/const.py
homeassistant/components/linkplay/const.py
"""LinkPlay constants.""" from dataclasses import dataclass from linkplay.controller import LinkPlayController from homeassistant.const import Platform from homeassistant.util.hass_dict import HassKey @dataclass class LinkPlaySharedData: """Shared data for LinkPlay.""" controller: LinkPlayController e...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/utils.py
homeassistant/components/linkplay/utils.py
"""Utilities for the LinkPlay component.""" from aiohttp import ClientSession from linkplay.utils import async_create_unverified_client_session from homeassistant.const import EVENT_HOMEASSISTANT_CLOSE from homeassistant.core import Event, HomeAssistant, callback from .const import DATA_SESSION, DOMAIN async def 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/linkplay/__init__.py
homeassistant/components/linkplay/__init__.py
"""Support for LinkPlay devices.""" from dataclasses import dataclass from aiohttp import ClientSession from linkplay.bridge import LinkPlayBridge from linkplay.controller import LinkPlayController from linkplay.discovery import linkplay_factory_httpapi_bridge from linkplay.exceptions import LinkPlayRequestException ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/entity.py
homeassistant/components/linkplay/entity.py
"""BaseEntity to support multiple LinkPlay platforms.""" from collections.abc import Callable, Coroutine from typing import Any, Concatenate from linkplay.bridge import LinkPlayBridge from linkplay.manufacturers import MANUFACTURER_GENERIC, get_info_from_project from homeassistant.exceptions import HomeAssistantErro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/button.py
homeassistant/components/linkplay/button.py
"""Support for LinkPlay buttons.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass import logging from typing import Any from linkplay.bridge import LinkPlayBridge from homeassistant.components.button import ( ButtonDeviceClass, ButtonEnt...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/select.py
homeassistant/components/linkplay/select.py
"""Support for LinkPlay select.""" from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine from dataclasses import dataclass import logging from typing import Any from linkplay.bridge import LinkPlayBridge, LinkPlayPlayer from linkplay.consts import AudioOutputHwMode from linkpl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linkplay/config_flow.py
homeassistant/components/linkplay/config_flow.py
"""Config flow to configure LinkPlay component.""" import logging from typing import Any from aiohttp import ClientSession from linkplay.bridge import LinkPlayBridge from linkplay.discovery import linkplay_factory_httpapi_bridge from linkplay.exceptions import LinkPlayRequestException import voluptuous as vol from h...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fitbit/api.py
homeassistant/components/fitbit/api.py
"""API for fitbit bound to Home Assistant OAuth.""" from abc import ABC, abstractmethod from collections.abc import Awaitable, Callable import logging from typing import Any, cast from fitbit import Fitbit from fitbit.exceptions import HTTPException, HTTPUnauthorized from fitbit_web_api import ApiClient, Configuratio...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fitbit/application_credentials.py
homeassistant/components/fitbit/application_credentials.py
"""application_credentials platform the fitbit integration. See https://dev.fitbit.com/build/reference/web-api/authorization/ for additional details on Fitbit authorization. """ import base64 from http import HTTPStatus import logging from typing import Any, cast import aiohttp from homeassistant.components.applica...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fitbit/model.py
homeassistant/components/fitbit/model.py
"""Data representation for fitbit API responses.""" from collections.abc import Mapping from dataclasses import dataclass from typing import Any from .const import CONF_CLOCK_FORMAT, CONF_MONITORED_RESOURCES, FitbitScope @dataclass class FitbitProfile: """User profile from the Fitbit API response.""" encod...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fitbit/exceptions.py
homeassistant/components/fitbit/exceptions.py
"""Exceptions for fitbit API calls. These exceptions exist to provide common exceptions for the async and sync client libraries. """ from homeassistant.exceptions import HomeAssistantError class FitbitApiException(HomeAssistantError): """Error talking to the fitbit API.""" class FitbitAuthException(FitbitApiE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fitbit/const.py
homeassistant/components/fitbit/const.py
"""Constants for the Fitbit platform.""" from __future__ import annotations from enum import StrEnum from typing import Final from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET DOMAIN: Final = "fitbit" ATTR_ACCESS_TOKEN: Final = "access_token" ATTR_REFRESH_TOKEN: Final = "refresh_token" ATTR_LAST_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/fitbit/coordinator.py
homeassistant/components/fitbit/coordinator.py
"""Coordinator for fetching data from fitbit API.""" import asyncio from dataclasses import dataclass import datetime import logging from typing import Final from fitbit_web_api.models.device import Device from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant 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/fitbit/sensor.py
homeassistant/components/fitbit/sensor.py
"""Support for the Fitbit API.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import datetime import logging from typing import Any, Final, cast from fitbit_web_api.models.device import Device from homeassistant.components.sensor import ( SensorDevic...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fitbit/__init__.py
homeassistant/components/fitbit/__init__.py
"""The fitbit component.""" from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady from homeassistant.helpers import config_entry_oauth2_flow from . import api from .const import FitbitScope from .coordinato...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fitbit/config_flow.py
homeassistant/components/fitbit/config_flow.py
"""Config flow for fitbit.""" from collections.abc import Mapping import logging from typing import Any from homeassistant.config_entries import SOURCE_REAUTH, ConfigFlowResult from homeassistant.const import CONF_TOKEN from homeassistant.helpers import config_entry_oauth2_flow from . import api from .const import D...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sensoterra/const.py
homeassistant/components/sensoterra/const.py
"""Constants for the Sensoterra integration.""" import logging DOMAIN = "sensoterra" SCAN_INTERVAL_MINUTES = 15 SENSOR_EXPIRATION_DAYS = 2 TOKEN_EXPIRATION_DAYS = 10 * 365 CONFIGURATION_URL = "https://monitor.sensoterra.com" LOGGER: logging.Logger = logging.getLogger(__package__)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sensoterra/coordinator.py
homeassistant/components/sensoterra/coordinator.py
"""Polling coordinator for the Sensoterra integration.""" from collections.abc import Callable from datetime import timedelta from sensoterra.customerapi import ( CustomerApi, InvalidAuth as ApiAuthError, Timeout as ApiTimeout, ) from sensoterra.probe import Probe, Sensor from homeassistant.config_entrie...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sensoterra/sensor.py
homeassistant/components/sensoterra/sensor.py
"""Sensoterra devices.""" from __future__ import annotations from datetime import UTC, datetime, timedelta from enum import StrEnum, auto from sensoterra.probe import Probe, Sensor from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClas...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sensoterra/__init__.py
homeassistant/components/sensoterra/__init__.py
"""The Sensoterra integration.""" from __future__ import annotations from sensoterra.customerapi import CustomerApi from homeassistant.const import CONF_TOKEN, Platform from homeassistant.core import HomeAssistant from .coordinator import SensoterraConfigEntry, SensoterraCoordinator PLATFORMS: list[Platform] = [Pl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sensoterra/config_flow.py
homeassistant/components/sensoterra/config_flow.py
"""Config flow for Sensoterra integration.""" from __future__ import annotations from datetime import datetime, timedelta from typing import Any from jwt import DecodeError, decode from sensoterra.customerapi import ( CustomerApi, InvalidAuth as StInvalidAuth, Timeout as StTimeout, ) import voluptuous as...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/upb/const.py
homeassistant/components/upb/const.py
"""Support the UPB PIM.""" import voluptuous as vol from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import VolDictType DOMAIN = "upb" ATTR_ADDRESS = "address" ATTR_BLINK_RATE = "blink_rate" ATTR_BRIGHTNESS = "brightness" ATTR_BRIGHTNESS_PCT = "brightness_pct" ATTR_RATE = ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/upb/__init__.py
homeassistant/components/upb/__init__.py
"""Support the UPB PIM.""" import logging import upb_lib from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_COMMAND, CONF_FILE_PATH, CONF_HOST, Platform from homeassistant.core import HomeAssistant from .const import ( ATTR_ADDRESS, ATTR_BRIGHTNESS_PCT, ATTR_RATE, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/upb/entity.py
homeassistant/components/upb/entity.py
"""Support the UPB PIM.""" from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const import DOMAIN class UpbEntity(Entity): """Base class for all UPB entities.""" _attr_should_poll = False def __init...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/upb/scene.py
homeassistant/components/upb/scene.py
"""Platform for UPB link integration.""" from typing import Any from homeassistant.components.scene import Scene from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_platform from homeassistant.helpers.entity_platform import AddConf...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/upb/light.py
homeassistant/components/upb/light.py
"""Platform for UPB light integration.""" from typing import Any from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_FLASH, ATTR_TRANSITION, ColorMode, LightEntity, LightEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/upb/config_flow.py
homeassistant/components/upb/config_flow.py
"""Config flow for UPB PIM integration.""" import asyncio from contextlib import suppress import logging from typing import Any from urllib.parse import urlparse import upb_lib import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_ADDRESS,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/easyenergy/diagnostics.py
homeassistant/components/easyenergy/diagnostics.py
"""Diagnostics support for easyEnergy.""" from __future__ import annotations from datetime import timedelta from typing import Any from homeassistant.core import HomeAssistant from .coordinator import EasyEnergyConfigEntry, EasyEnergyData def get_gas_price(data: EasyEnergyData, hours: int) -> float | 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/easyenergy/services.py
homeassistant/components/easyenergy/services.py
"""Services for easyEnergy integration.""" from __future__ import annotations from datetime import date, datetime from enum import Enum from functools import partial from typing import Final from easyenergy import Electricity, Gas, VatOption import voluptuous as vol from homeassistant.config_entries import ConfigEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/easyenergy/const.py
homeassistant/components/easyenergy/const.py
"""Constants for the easyEnergy integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final DOMAIN: Final = "easyenergy" LOGGER = logging.getLogger(__package__) SCAN_INTERVAL = timedelta(minutes=10) THRESHOLD_HOUR: Final = 14 SERVICE_TYPE_DEVICE_NAMES = ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/easyenergy/coordinator.py
homeassistant/components/easyenergy/coordinator.py
"""The Coordinator for easyEnergy.""" from __future__ import annotations from datetime import timedelta from typing import NamedTuple from easyenergy import ( EasyEnergy, EasyEnergyConnectionError, EasyEnergyNoDataError, Electricity, Gas, ) from homeassistant.config_entries import ConfigEntry 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/easyenergy/sensor.py
homeassistant/components/easyenergy/sensor.py
"""Support for easyEnergy sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from homeassistant.components.sensor import ( DOMAIN as SENSOR_DOMAIN, SensorDeviceClass, SensorEntity, SensorEntity...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/easyenergy/__init__.py
homeassistant/components/easyenergy/__init__.py
"""The easyEnergy integration.""" from __future__ import annotations from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/easyenergy/config_flow.py
homeassistant/components/easyenergy/config_flow.py
"""Config flow for easyEnergy integration.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import DOMAIN class EasyEnergyFlowHandler(ConfigFlow, domain=DOMAIN): """Config flow for easyEnergy integration.""" VER...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/linx/__init__.py
homeassistant/components/linx/__init__.py
"""Virtual integration: Linx."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/discogs/sensor.py
homeassistant/components/discogs/sensor.py
"""Show the amount of records in a user's Discogs collection.""" from __future__ import annotations from datetime import timedelta import logging import random import discogs_client import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/discogs/__init__.py
homeassistant/components/discogs/__init__.py
"""The discogs 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/weatherflow/event.py
homeassistant/components/weatherflow/event.py
"""Event entities for the WeatherFlow integration.""" from __future__ import annotations from dataclasses import dataclass from pyweatherflowudp.device import EVENT_RAIN_START, EVENT_STRIKE, WeatherFlowDevice from homeassistant.components.event import EventEntity, EventEntityDescription from homeassistant.config_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/weatherflow/const.py
homeassistant/components/weatherflow/const.py
"""Constants for the WeatherFlow integration.""" import logging from homeassistant.config_entries import ConfigEntry DOMAIN = "weatherflow" LOGGER = logging.getLogger(__package__) def format_dispatch_call(config_entry: ConfigEntry) -> str: """Construct a dispatch call from a ConfigEntry.""" return f"{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/weatherflow/sensor.py
homeassistant/components/weatherflow/sensor.py
"""Sensors for the weatherflow integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass, field from datetime import datetime from enum import Enum from pyweatherflowudp.const import EVENT_RAPID_WIND from pyweatherflowudp.device import ( EVENT_OBSER...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weatherflow/__init__.py
homeassistant/components/weatherflow/__init__.py
"""Get data from Smart Weather station via UDP.""" from __future__ import annotations from pyweatherflowudp.client import EVENT_DEVICE_DISCOVERED, WeatherFlowListener from pyweatherflowudp.device import EVENT_LOAD_COMPLETE, WeatherFlowDevice from pyweatherflowudp.errors import ListenerError from homeassistant.config...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weatherflow/config_flow.py
homeassistant/components/weatherflow/config_flow.py
"""Config flow for WeatherFlow.""" from __future__ import annotations import asyncio from asyncio import Future from asyncio.exceptions import CancelledError from typing import Any from pyweatherflowudp.client import EVENT_DEVICE_DISCOVERED, WeatherFlowListener from pyweatherflowudp.errors import AddressInUseError, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/profiler/const.py
homeassistant/components/profiler/const.py
"""Consts used by profiler.""" DOMAIN = "profiler" DEFAULT_NAME = "Profiler"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/profiler/__init__.py
homeassistant/components/profiler/__init__.py
"""The profiler integration.""" import asyncio from collections.abc import Generator import contextlib from contextlib import suppress from datetime import timedelta from functools import _lru_cache_wrapper import logging import reprlib import sys import threading import time import traceback from typing import Any, 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/profiler/config_flow.py
homeassistant/components/profiler/config_flow.py
"""Config flow for Profiler integration.""" from typing import Any from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from .const import DEFAULT_NAME, DOMAIN class ProfilerConfigFlow(ConfigFlow, domain=DOMAIN): """Handle a config flow for Profiler.""" VERSION = 1 async def async_st...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/diagnostics.py
homeassistant/components/wmspro/diagnostics.py
"""Diagnostics support for WMS WebControl pro API integration.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from . import WebControlProConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: WebControlProConfigEntry ) -...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/cover.py
homeassistant/components/wmspro/cover.py
"""Support for covers connected with WMS WebControl pro.""" from __future__ import annotations from datetime import timedelta from typing import Any from wmspro.const import ( WMS_WebControl_pro_API_actionDescription as ACTION_DESC, WMS_WebControl_pro_API_actionType, WMS_WebControl_pro_API_responseType, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/switch.py
homeassistant/components/wmspro/switch.py
"""Support for loads connected with WMS WebControl pro.""" from __future__ import annotations from datetime import timedelta from typing import Any from wmspro.const import ( WMS_WebControl_pro_API_actionDescription, WMS_WebControl_pro_API_responseType, ) from homeassistant.components.switch import SwitchEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/const.py
homeassistant/components/wmspro/const.py
"""Constants for the WMS WebControl pro API integration.""" DOMAIN = "wmspro" SUGGESTED_HOST = "webcontrol" ATTRIBUTION = "Data provided by WMS WebControl pro API" MANUFACTURER = "WAREMA Renkhoff SE" BRIGHTNESS_SCALE = (1, 100)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/__init__.py
homeassistant/components/wmspro/__init__.py
"""The WMS WebControl pro API integration.""" from __future__ import annotations import aiohttp from wmspro.webcontrol import WebControlPro from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptio...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/entity.py
homeassistant/components/wmspro/entity.py
"""Generic entity for the WMS WebControl pro API integration.""" from __future__ import annotations from wmspro.destination import Destination from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const import ATTRIBUTION, DOMAIN, MANUFACTURER class Web...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/button.py
homeassistant/components/wmspro/button.py
"""Identify support for WMS WebControl pro.""" from __future__ import annotations from wmspro.const import WMS_WebControl_pro_API_actionDescription from homeassistant.components.button import ButtonDeviceClass, ButtonEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform 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/wmspro/scene.py
homeassistant/components/wmspro/scene.py
"""Support for scenes provided by WMS WebControl pro.""" from __future__ import annotations from typing import Any from wmspro.scene import Scene as WMS_Scene from homeassistant.components.scene import Scene from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry import DeviceInfo 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/wmspro/light.py
homeassistant/components/wmspro/light.py
"""Support for lights connected with WMS WebControl pro.""" from __future__ import annotations from datetime import timedelta from typing import Any from wmspro.const import ( WMS_WebControl_pro_API_actionDescription, WMS_WebControl_pro_API_responseType, ) from homeassistant.components.light import ATTR_BRI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wmspro/config_flow.py
homeassistant/components/wmspro/config_flow.py
"""Config flow for WMS WebControl pro API integration.""" from __future__ import annotations import ipaddress import logging from typing import Any import aiohttp import voluptuous as vol from wmspro.webcontrol import WebControlPro from homeassistant.config_entries import SOURCE_DHCP, ConfigFlow, ConfigFlowResult 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/pocketcasts/sensor.py
homeassistant/components/pocketcasts/sensor.py
"""Support for Pocket Casts.""" from __future__ import annotations from datetime import timedelta import logging from pycketcasts import pocketcasts import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) from homeassistant.const 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/pocketcasts/__init__.py
homeassistant/components/pocketcasts/__init__.py
"""The pocketcasts 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/emulated_hue/const.py
homeassistant/components/emulated_hue/const.py
"""Constants for emulated_hue.""" HUE_SERIAL_NUMBER = "001788FFFE23BFC2" HUE_UUID = "2f402f80-da50-11e1-9b23-001788255acc" DOMAIN = "emulated_hue"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/emulated_hue/config.py
homeassistant/components/emulated_hue/config.py
"""Support for local control of entities by emulating a Philips Hue bridge.""" from __future__ import annotations from functools import cache import logging from homeassistant.components import ( climate, cover, fan, humidifier, light, media_player, scene, script, ) 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/emulated_hue/__init__.py
homeassistant/components/emulated_hue/__init__.py
"""Support for local control of entities by emulating a Philips Hue bridge.""" from __future__ import annotations import logging from aiohttp import web import voluptuous as vol from homeassistant.components.http import KEY_HASS from homeassistant.components.network import async_get_source_ip 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/emulated_hue/upnp.py
homeassistant/components/emulated_hue/upnp.py
"""Support UPNP discovery method that mimics Hue hubs.""" from __future__ import annotations import asyncio from contextlib import suppress import logging import socket from typing import cast from aiohttp import web from homeassistant import core from homeassistant.components.http import HomeAssistantView from .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/emulated_hue/hue_api.py
homeassistant/components/emulated_hue/hue_api.py
"""Support for a Hue API to control Home Assistant.""" from __future__ import annotations import asyncio from collections.abc import Iterable from functools import lru_cache import hashlib from http import HTTPStatus from ipaddress import ip_address import logging import time from typing import Any from aiohttp 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/worxlandroid/sensor.py
homeassistant/components/worxlandroid/sensor.py
"""Support for Worx Landroid mower.""" from __future__ import annotations import asyncio import logging import aiohttp import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) from homeassistant.const import CONF_HOST, CONF_PIN, CONF_T...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/worxlandroid/__init__.py
homeassistant/components/worxlandroid/__init__.py
"""The worxlandroid 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/zwave_me/cover.py
homeassistant/components/zwave_me/cover.py
"""Representation of a cover.""" from __future__ import annotations from typing import Any from homeassistant.components.cover import ( ATTR_POSITION, CoverEntity, CoverEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback 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/zwave_me/switch.py
homeassistant/components/zwave_me/switch.py
"""Representation of a switchBinary.""" import logging from typing import Any from homeassistant.components.switch import ( SwitchDeviceClass, SwitchEntity, SwitchEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback 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/zwave_me/number.py
homeassistant/components/zwave_me/number.py
"""Representation of a switchMultilevel.""" from homeassistant.components.number import NumberEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platfo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_me/binary_sensor.py
homeassistant/components/zwave_me/binary_sensor.py
"""Representation of a sensorBinary.""" from __future__ import annotations from zwave_me_ws import ZWaveMeData from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry 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/zwave_me/lock.py
homeassistant/components/zwave_me/lock.py
"""Representation of a doorlock.""" from __future__ import annotations from typing import Any from zwave_me_ws import ZWaveMeData from homeassistant.components.lock import LockEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helper...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_me/const.py
homeassistant/components/zwave_me/const.py
"""Constants for ZWaveMe.""" from enum import StrEnum from homeassistant.const import Platform # Base component constants DOMAIN = "zwave_me" class ZWaveMePlatform(StrEnum): """Included ZWaveMe platforms.""" BINARY_SENSOR = "sensorBinary" BRIGHTNESS_LIGHT = "lightMultilevel" BUTTON = "toggleButton...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_me/helpers.py
homeassistant/components/zwave_me/helpers.py
"""Helpers for zwave_me config flow.""" from __future__ import annotations from zwave_me_ws import ZWaveMe async def get_uuid(url: str, token: str | None = None) -> str | None: """Get an uuid from Z-Wave-Me.""" conn = ZWaveMe(url=url, token=token) uuid = None if await conn.get_connection(): ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_me/fan.py
homeassistant/components/zwave_me/fan.py
"""Representation of a fan.""" from __future__ import annotations from typing import Any from homeassistant.components.fan import FanEntity, FanEntityFeature from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_me/siren.py
homeassistant/components/zwave_me/siren.py
"""Representation of a sirenBinary.""" from typing import Any from homeassistant.components.siren import SirenEntity, SirenEntityFeature from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect 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/zwave_me/sensor.py
homeassistant/components/zwave_me/sensor.py
"""Representation of a sensorMultilevel.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from zwave_me_ws import ZWaveMeData from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_me/__init__.py
homeassistant/components/zwave_me/__init__.py
"""The Z-Wave-Me WS integration.""" from zwave_me_ws import ZWaveMe, ZWaveMeData from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_TOKEN, CONF_URL from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers 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/zwave_me/entity.py
homeassistant/components/zwave_me/entity.py
"""The Z-Wave-Me WS integration.""" from zwave_me_ws import ZWaveMeData from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity import Entity from .const import DOMAIN ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false