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/airzone/const.py
homeassistant/components/airzone/const.py
"""Constants for the Airzone integration.""" from typing import Final from aioairzone.common import TemperatureUnit from homeassistant.const import UnitOfTemperature DOMAIN: Final = "airzone" MANUFACTURER: Final = "Airzone" AIOAIRZONE_DEVICE_TIMEOUT_SEC: Final = 10 API_TEMPERATURE_STEP: Final = 0.5 TEMP_UNIT_LIB_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airzone/coordinator.py
homeassistant/components/airzone/coordinator.py
"""The Airzone integration.""" from __future__ import annotations from asyncio import timeout from datetime import timedelta import logging from typing import Any from aioairzone.exceptions import AirzoneError from aioairzone.localapi import AirzoneLocalApi from homeassistant.config_entries import ConfigEntry 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/airzone/sensor.py
homeassistant/components/airzone/sensor.py
"""Support for the Airzone sensors.""" from __future__ import annotations from typing import Any, Final from aioairzone.const import ( AZD_HOT_WATER, AZD_HUMIDITY, AZD_TEMP, AZD_TEMP_UNIT, AZD_THERMOSTAT_BATTERY, AZD_THERMOSTAT_SIGNAL, AZD_WEBSERVER, AZD_WIFI_RSSI, AZD_ZONES, ) 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/airzone/__init__.py
homeassistant/components/airzone/__init__.py
"""The Airzone integration.""" from __future__ import annotations import logging from typing import Any from aioairzone.const import ( AZD_FIRMWARE, AZD_FULL_NAME, AZD_MAC, AZD_MODEL, AZD_WEBSERVER, DEFAULT_SYSTEM_ID, ) from aioairzone.localapi import AirzoneLocalApi, ConnectionOptions 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/airzone/entity.py
homeassistant/components/airzone/entity.py
"""Entity classes for the Airzone integration.""" from __future__ import annotations import logging from typing import Any from aioairzone.const import ( API_SYSTEM_ID, API_ZONE_ID, AZD_AVAILABLE, AZD_FIRMWARE, AZD_FULL_NAME, AZD_HOT_WATER, AZD_ID, AZD_MAC, AZD_MODEL, AZD_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/airzone/water_heater.py
homeassistant/components/airzone/water_heater.py
"""Support for the Airzone water heater.""" from __future__ import annotations from typing import Any, Final from aioairzone.common import HotWaterOperation from aioairzone.const import ( API_ACS_ON, API_ACS_POWER_MODE, API_ACS_SET_POINT, AZD_HOT_WATER, AZD_OPERATION, AZD_OPERATIONS, AZD_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airzone/select.py
homeassistant/components/airzone/select.py
"""Support for the Airzone sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any, Final from aioairzone.common import GrilleAngle, OperationMode, QAdapt, SleepTimeout from aioairzone.const import ( API_COLD_ANGLE, API_HEAT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airzone/climate.py
homeassistant/components/airzone/climate.py
"""Support for the Airzone climate.""" from __future__ import annotations from typing import Any, Final from aioairzone.common import OperationAction, OperationMode from aioairzone.const import ( API_COOL_SET_POINT, API_HEAT_SET_POINT, API_MODE, API_ON, API_SET_POINT, API_SPEED, AZD_ACTIO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airzone/config_flow.py
homeassistant/components/airzone/config_flow.py
"""Config flow for Airzone.""" from __future__ import annotations import logging from typing import Any from aioairzone.const import DEFAULT_PORT, DEFAULT_SYSTEM_ID from aioairzone.exceptions import AirzoneError, InvalidSystem from aioairzone.localapi import AirzoneLocalApi, ConnectionOptions import voluptuous as vo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/automation/trace.py
homeassistant/components/automation/trace.py
"""Trace support for automation.""" from __future__ import annotations from collections.abc import Generator from contextlib import contextmanager from typing import Any from homeassistant.components.trace import ( CONF_STORED_TRACES, ActionTrace, async_store_trace, ) from homeassistant.core import Conte...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/automation/const.py
homeassistant/components/automation/const.py
"""Constants for the automation integration.""" import logging CONF_TRIGGER_VARIABLES = "trigger_variables" DOMAIN = "automation" CONF_HIDE_ENTITY = "hide_entity" CONF_CONDITION_TYPE = "condition_type" CONF_INITIAL_STATE = "initial_state" CONF_BLUEPRINT = "blueprint" CONF_INPUT = "input" CONF_TRACE = "trace" DEFAU...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/automation/helpers.py
homeassistant/components/automation/helpers.py
"""Helpers for automation integration.""" from homeassistant.components import blueprint from homeassistant.const import SERVICE_RELOAD from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.singleton import singleton from .const import DOMAIN, LOGGER DATA_BLUEPRINTS = "automation_blueprin...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/automation/config.py
homeassistant/components/automation/config.py
"""Config validation helper for the automation integration.""" from __future__ import annotations from collections.abc import Mapping from contextlib import suppress from enum import StrEnum from typing import Any import voluptuous as vol from voluptuous.humanize import humanize_error from homeassistant.components ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/automation/reproduce_state.py
homeassistant/components/automation/reproduce_state.py
"""Reproduce an Automation state.""" from __future__ import annotations import asyncio from collections.abc import Iterable import logging from typing import Any from homeassistant.const import ( ATTR_ENTITY_ID, SERVICE_TURN_OFF, SERVICE_TURN_ON, STATE_OFF, STATE_ON, ) from homeassistant.core 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/automation/__init__.py
homeassistant/components/automation/__init__.py
"""Allow to set up simple automation rules via the config file.""" from __future__ import annotations from abc import ABC, abstractmethod import asyncio from collections.abc import Callable, Mapping from dataclasses import dataclass import logging from typing import Any, Protocol, cast from propcache.api import cach...
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/automation/logbook.py
homeassistant/components/automation/logbook.py
"""Describe logbook events.""" from collections.abc import Callable from typing import Any from homeassistant.components.logbook import ( LOGBOOK_ENTRY_CONTEXT_ID, LOGBOOK_ENTRY_ENTITY_ID, LOGBOOK_ENTRY_MESSAGE, LOGBOOK_ENTRY_NAME, LOGBOOK_ENTRY_SOURCE, LazyEventPartialState, ) 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/cisco_mobility_express/device_tracker.py
homeassistant/components/cisco_mobility_express/device_tracker.py
"""Support for Cisco Mobility Express.""" from __future__ import annotations import logging from ciscomobilityexpress.ciscome import CiscoMobilityExpress import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cisco_mobility_express/__init__.py
homeassistant/components/cisco_mobility_express/__init__.py
"""Component to embed Cisco Mobility Express."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knocki/event.py
homeassistant/components/knocki/event.py
"""Event entity for Knocki integration.""" from knocki import Event, EventType, KnockiClient, Trigger from homeassistant.components.event import EventEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity_platform 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/knocki/const.py
homeassistant/components/knocki/const.py
"""Constants for the Knocki integration.""" import logging DOMAIN = "knocki" 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/knocki/coordinator.py
homeassistant/components/knocki/coordinator.py
"""Update coordinator for Knocki integration.""" from knocki import Event, KnockiClient, KnockiConnectionError, Trigger from homeassistant.components.event import DOMAIN as EVENT_DOMAIN from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knocki/__init__.py
homeassistant/components/knocki/__init__.py
"""The Knocki integration.""" from __future__ import annotations from knocki import Event, EventType, KnockiClient from homeassistant.const import CONF_TOKEN, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .coordinator import Knock...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knocki/config_flow.py
homeassistant/components/knocki/config_flow.py
"""Config flow for Knocki integration.""" from __future__ import annotations from typing import Any from knocki import KnockiClient, KnockiConnectionError, KnockiInvalidAuthError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_PASSW...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/webostv/media_player.py
homeassistant/components/webostv/media_player.py
"""Support for interface with an LG webOS TV.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine from contextlib import suppress from datetime import timedelta from functools import wraps from http import HTTPStatus import logging from typing import Any, Concatenate, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/webostv/device_trigger.py
homeassistant/components/webostv/device_trigger.py
"""Provides device automations for control of LG webOS TV.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import ( DEVICE_TRIGGER_BASE_SCHEMA, InvalidDeviceAutomationConfig, ) from homeassistant.const import CONF_DEVICE_ID, CONF_PLATFORM, 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/webostv/diagnostics.py
homeassistant/components/webostv/diagnostics.py
"""Diagnostics support for LG webOS TV.""" from __future__ import annotations from typing import Any from aiowebostv import WebOsClient from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_CLIENT_SECRET, CONF_HOST, CONF_UNIQUE_ID from homeassistant.core import 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/webostv/const.py
homeassistant/components/webostv/const.py
"""Constants for the LG webOS TV integration.""" import asyncio import aiohttp from aiowebostv import WebOsTvCommandError from homeassistant.const import Platform DOMAIN = "webostv" PLATFORMS = [Platform.MEDIA_PLAYER] DATA_HASS_CONFIG = "hass_config" DEFAULT_NAME = "LG webOS TV" ATTR_BUTTON = "button" ATTR_PAYLOAD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/webostv/helpers.py
homeassistant/components/webostv/helpers.py
"""Helper functions for LG webOS TV.""" from __future__ import annotations import logging from aiowebostv import WebOsClient, WebOsTvState from homeassistant.config_entries import ConfigEntry, ConfigEntryState from homeassistant.const import CONF_CLIENT_SECRET, CONF_HOST 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/webostv/__init__.py
homeassistant/components/webostv/__init__.py
"""The LG webOS TV integration.""" from __future__ import annotations from contextlib import suppress from aiowebostv import WebOsClient, WebOsTvPairError from homeassistant.components import notify as hass_notify from homeassistant.const import ( ATTR_CONFIG_ENTRY_ID, CONF_CLIENT_SECRET, CONF_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/webostv/trigger.py
homeassistant/components/webostv/trigger.py
"""LG webOS TV trigger dispatcher.""" from __future__ import annotations from typing import cast from homeassistant.const import CONF_PLATFORM from homeassistant.core import CALLBACK_TYPE, HomeAssistant from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.trigger import ( TriggerAct...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/webostv/notify.py
homeassistant/components/webostv/notify.py
"""Support for LG webOS TV notification service.""" from __future__ import annotations from typing import Any from aiowebostv import WebOsClient from homeassistant.components.notify import ATTR_DATA, BaseNotificationService from homeassistant.const import ATTR_CONFIG_ENTRY_ID, ATTR_ICON from homeassistant.core 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/webostv/config_flow.py
homeassistant/components/webostv/config_flow.py
"""Config flow for LG webOS TV integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, Self from urllib.parse import urlparse from aiowebostv import WebOsClient, WebOsTvPairError import voluptuous as vol from homeassistant.config_entries import ( ConfigFlow...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/webostv/triggers/turn_on.py
homeassistant/components/webostv/triggers/turn_on.py
"""LG webOS TV device turn on trigger.""" from __future__ import annotations import voluptuous as vol from homeassistant.const import ( ATTR_DEVICE_ID, ATTR_ENTITY_ID, CONF_DEVICE_ID, CONF_DOMAIN, CONF_PLATFORM, CONF_TYPE, ) from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callbac...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/webostv/triggers/__init__.py
homeassistant/components/webostv/triggers/__init__.py
"""LG webOS TV triggers."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/my/__init__.py
homeassistant/components/my/__init__.py
"""Support for my.home-assistant.io redirect service.""" from homeassistant.components import frontend from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType DOMAIN = "my" URL_PATH = "_my_redirect" CONFIG_SCHEMA = cv....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/apcupsd/diagnostics.py
homeassistant/components/apcupsd/diagnostics.py
"""Diagnostics support for APCUPSD.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .coordinator import APCUPSdConfigEntry TO_REDACT = {"SERIALNO", "HOSTNAME"} async def async_get_con...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/apcupsd/binary_sensor.py
homeassistant/components/apcupsd/binary_sensor.py
"""Support for tracking the online status of a UPS.""" from __future__ import annotations from typing import Final from homeassistant.components.binary_sensor import ( BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/apcupsd/const.py
homeassistant/components/apcupsd/const.py
"""Constants for APCUPSd component.""" from typing import Final DOMAIN: Final = "apcupsd" CONNECTION_TIMEOUT: int = 10 # Field name of last self test retrieved from apcupsd. LAST_S_TEST: Final = "laststest" # Mapping of deprecated sensor keys (as reported by apcupsd, lower-cased) to their deprecation # repair issue...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/apcupsd/coordinator.py
homeassistant/components/apcupsd/coordinator.py
"""Support for APCUPSd via its Network Information Server (NIS).""" from __future__ import annotations import asyncio from datetime import timedelta import logging from typing import Final import aioapcaccess from homeassistant.config_entries import ConfigEntry 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/apcupsd/sensor.py
homeassistant/components/apcupsd/sensor.py
"""Support for APCUPSd sensors.""" from __future__ import annotations import logging from homeassistant.components.automation import automations_with_entity from homeassistant.components.script import scripts_with_entity from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, Senso...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/apcupsd/__init__.py
homeassistant/components/apcupsd/__init__.py
"""Support for APCUPSd via its Network Information Server (NIS).""" from __future__ import annotations from typing import Final from homeassistant.const import CONF_HOST, CONF_PORT, Platform from homeassistant.core import HomeAssistant from .coordinator import APCUPSdConfigEntry, APCUPSdCoordinator PLATFORMS: Fina...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/apcupsd/entity.py
homeassistant/components/apcupsd/entity.py
"""Base entity for APCUPSd integration.""" from __future__ import annotations from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .coordinator import APCUPSdCoordinator class APCUPSdEntity(CoordinatorEntity[APCUPSdCoordinator]): ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/apcupsd/config_flow.py
homeassistant/components/apcupsd/config_flow.py
"""Config flow for APCUPSd integration.""" from __future__ import annotations import asyncio from typing import Any import aioapcaccess import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_HOST, CONF_PORT from homeassistant.helpers 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/nextbus/util.py
homeassistant/components/nextbus/util.py
"""Utils for NextBus integration module.""" from typing import Any, NamedTuple def listify(maybe_list: Any) -> list[Any]: """Return list version of whatever value is passed in. This is used to provide a consistent way of interacting with the JSON results from the API. There are several attributes that w...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nextbus/const.py
homeassistant/components/nextbus/const.py
"""NextBus Constants.""" DOMAIN = "nextbus" CONF_AGENCY = "agency" CONF_ROUTE = "route"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nextbus/coordinator.py
homeassistant/components/nextbus/coordinator.py
"""NextBus data update coordinator.""" from datetime import datetime, timedelta import logging from typing import Any, override from py_nextbus import NextBusClient from py_nextbus.client import NextBusFormatError, NextBusHTTPError from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nextbus/sensor.py
homeassistant/components/nextbus/sensor.py
"""NextBus sensor.""" from __future__ import annotations import logging from typing import cast from homeassistant.components.sensor import SensorDeviceClass, SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_NAME, CONF_STOP 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/nextbus/__init__.py
homeassistant/components/nextbus/__init__.py
"""NextBus platform.""" from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_STOP, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from .const import CONF_AGENCY, CONF_ROUTE, DOMAIN from .coordinator import NextBusData...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nextbus/config_flow.py
homeassistant/components/nextbus/config_flow.py
"""Config flow to configure the Nextbus integration.""" from collections import Counter import logging from py_nextbus import NextBusClient import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_STOP from homeassistant.helpers.selector 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/medcom_ble/const.py
homeassistant/components/medcom_ble/const.py
"""Constants for the Medcom BLE integration.""" DOMAIN = "medcom_ble" # 5 minutes scan interval, which is perfectly # adequate for background monitoring DEFAULT_SCAN_INTERVAL = 300 # Units for the radiation monitors UNIT_CPM = "CPM"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/medcom_ble/coordinator.py
homeassistant/components/medcom_ble/coordinator.py
"""The Medcom BLE integration.""" from __future__ import annotations from datetime import timedelta import logging from bleak import BleakError from medcom_ble import MedcomBleDevice, MedcomBleDeviceData from homeassistant.components import bluetooth from homeassistant.config_entries import ConfigEntry 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/medcom_ble/sensor.py
homeassistant/components/medcom_ble/sensor.py
"""Support for Medcom BLE radiation monitor sensors.""" from __future__ import annotations import logging from homeassistant import config_entries from homeassistant.components.sensor import ( SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.core import HomeAssistant 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/medcom_ble/__init__.py
homeassistant/components/medcom_ble/__init__.py
"""The Medcom BLE integration.""" from __future__ import annotations from homeassistant.components import bluetooth from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady 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/medcom_ble/config_flow.py
homeassistant/components/medcom_ble/config_flow.py
"""Config flow for Medcom BlE integration.""" from __future__ import annotations import logging from typing import Any from bleak import BleakError from bluetooth_data_tools import human_readable_name from medcom_ble import MedcomBleDevice, MedcomBleDeviceData from medcom_ble.const import INSPECTOR_SERVICE_UUID 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/blinksticklight/__init__.py
homeassistant/components/blinksticklight/__init__.py
"""The blinksticklight 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/blinksticklight/light.py
homeassistant/components/blinksticklight/light.py
"""Support for Blinkstick lights.""" # mypy: ignore-errors from __future__ import annotations from typing import Any # from blinkstick import blinkstick import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_HS_COLOR, PLATFORM_SCHEMA as LIGHT_PLATFORM_SCHEMA, Col...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/subaru/diagnostics.py
homeassistant/components/subaru/diagnostics.py
"""Diagnostics for the Subaru integration.""" from __future__ import annotations from typing import Any from subarulink.const import ( LATITUDE, LONGITUDE, ODOMETER, RAW_API_FIELDS_TO_REDACT, VEHICLE_NAME, ) from homeassistant.components.diagnostics import async_redact_data 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/subaru/device_tracker.py
homeassistant/components/subaru/device_tracker.py
"""Support for Subaru device tracker.""" from __future__ import annotations from typing import Any from subarulink.const import LATITUDE, LONGITUDE, TIMESTAMP from homeassistant.components.device_tracker import TrackerEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import 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/subaru/lock.py
homeassistant/components/subaru/lock.py
"""Support for Subaru door locks.""" import logging from typing import Any import voluptuous as vol from homeassistant.components.lock import LockEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import SERVICE_LOCK, SERVICE_UNLOCK 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/subaru/const.py
homeassistant/components/subaru/const.py
"""Constants for the Subaru integration.""" from subarulink.const import ALL_DOORS, DRIVERS_DOOR, TAILGATE_DOOR from homeassistant.const import Platform DOMAIN = "subaru" FETCH_INTERVAL = 300 UPDATE_INTERVAL = 7200 CONF_UPDATE_ENABLED = "update_enabled" # entry fields ENTRY_CONTROLLER = "controller" ENTRY_COORDINAT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/subaru/sensor.py
homeassistant/components/subaru/sensor.py
"""Support for Subaru sensors.""" from __future__ import annotations import logging from typing import Any import subarulink.const as sc from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries 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/subaru/__init__.py
homeassistant/components/subaru/__init__.py
"""The Subaru integration.""" from datetime import timedelta import logging import time from subarulink import Controller as SubaruAPI, InvalidCredentials, SubaruException from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_COUNTRY, CONF_DEVICE_ID, CONF_PASSWORD, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/subaru/config_flow.py
homeassistant/components/subaru/config_flow.py
"""Config flow for Subaru integration.""" from __future__ import annotations from datetime import datetime import logging from typing import TYPE_CHECKING, Any from subarulink import ( Controller as SubaruAPI, InvalidCredentials, InvalidPIN, SubaruException, ) from subarulink.const import COUNTRY_CAN...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/subaru/remote_service.py
homeassistant/components/subaru/remote_service.py
"""Remote vehicle services for Subaru integration.""" import logging from subarulink.exceptions import SubaruException from homeassistant.exceptions import HomeAssistantError from .const import SERVICE_UNLOCK, VEHICLE_NAME, VEHICLE_VIN _LOGGER = logging.getLogger(__name__) async def async_call_remote_service(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/snmp/device_tracker.py
homeassistant/components/snmp/device_tracker.py
"""Support for fetching WiFi associations through SNMP.""" from __future__ import annotations import binascii import logging from typing import TYPE_CHECKING from pysnmp.error import PySnmpError from pysnmp.hlapi.v3arch.asyncio import ( CommunityData, Udp6TransportTarget, UdpTransportTarget, UsmUserD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/snmp/util.py
homeassistant/components/snmp/util.py
"""Support for displaying collected data over SNMP.""" from __future__ import annotations import logging from pysnmp.hlapi.v3arch.asyncio import ( CommunityData, ContextData, ObjectIdentity, ObjectType, SnmpEngine, Udp6TransportTarget, UdpTransportTarget, UsmUserData, ) from pysnmp.hl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/snmp/switch.py
homeassistant/components/snmp/switch.py
"""Support for SNMP enabled switch.""" from __future__ import annotations import logging from typing import Any import pysnmp.hlapi.v3arch.asyncio as hlapi from pysnmp.hlapi.v3arch.asyncio import ( CommunityData, ObjectIdentity, ObjectType, UdpTransportTarget, UsmUserData, get_cmd, set_cm...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/snmp/const.py
homeassistant/components/snmp/const.py
"""SNMP constants.""" CONF_ACCEPT_ERRORS = "accept_errors" CONF_AUTH_KEY = "auth_key" CONF_AUTH_PROTOCOL = "auth_protocol" CONF_BASEOID = "baseoid" CONF_COMMUNITY = "community" CONF_DEFAULT_VALUE = "default_value" CONF_PRIV_KEY = "priv_key" CONF_PRIV_PROTOCOL = "priv_protocol" CONF_VERSION = "version" CONF_VARTYPE = "...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/snmp/sensor.py
homeassistant/components/snmp/sensor.py
"""Support for displaying collected data over SNMP.""" from __future__ import annotations from datetime import timedelta import logging from struct import unpack from pyasn1.codec.ber import decoder from pysnmp.error import PySnmpError import pysnmp.hlapi.v3arch.asyncio as hlapi from pysnmp.hlapi.v3arch.asyncio 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/snmp/__init__.py
homeassistant/components/snmp/__init__.py
"""The snmp component.""" from .util import async_get_snmp_engine __all__ = ["async_get_snmp_engine"]
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/irm_kmi/weather.py
homeassistant/components/irm_kmi/weather.py
"""Support for IRM KMI weather.""" from irm_kmi_api import CurrentWeatherData from homeassistant.components.weather import ( Forecast, SingleCoordinatorWeatherEntity, WeatherEntityFeature, ) from homeassistant.const import ( CONF_UNIQUE_ID, UnitOfPrecipitationDepth, UnitOfPressure, UnitOfS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/irm_kmi/const.py
homeassistant/components/irm_kmi/const.py
"""Constants for the IRM KMI integration.""" from typing import Final 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, ATTR_CONDITION_RA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/irm_kmi/coordinator.py
homeassistant/components/irm_kmi/coordinator.py
"""DataUpdateCoordinator for the IRM KMI integration.""" from datetime import timedelta import logging from irm_kmi_api import IrmKmiApiClientHa, IrmKmiApiError from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE, CONF_LOCATION from homeassistant.core 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/irm_kmi/utils.py
homeassistant/components/irm_kmi/utils.py
"""Helper functions for use with IRM KMI integration.""" from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import CONF_LANGUAGE_OVERRIDE, LANGS def preferred_language(hass: HomeAssistant, config_entry: ConfigEntry | None) -> str: """Get the preferred 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/irm_kmi/__init__.py
homeassistant/components/irm_kmi/__init__.py
"""Integration for IRM KMI weather.""" import logging from irm_kmi_api import IrmKmiApiClientHa from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .const import IRM_KMI_TO_HA_CONDITION_MAP, PLATFORMS, USER_AGENT from .coordinator import IrmKmiC...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/irm_kmi/entity.py
homeassistant/components/irm_kmi/entity.py
"""Base class shared among IRM KMI entities.""" from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN, IRM_KMI_NAME from .coordinator import IrmKmiConfigEntry, IrmKmiCoordinator from .utils 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/irm_kmi/data.py
homeassistant/components/irm_kmi/data.py
"""Define data classes for the IRM KMI integration.""" from dataclasses import dataclass, field from irm_kmi_api import CurrentWeatherData, ExtendedForecast from homeassistant.components.weather import Forecast @dataclass class ProcessedCoordinatorData: """Dataclass that will be exposed to the entities consumi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/irm_kmi/config_flow.py
homeassistant/components/irm_kmi/config_flow.py
"""Config flow to set up IRM KMI integration via the UI.""" import logging from irm_kmi_api import IrmKmiApiClient, IrmKmiApiError import voluptuous as vol from homeassistant.config_entries import ( ConfigFlow, ConfigFlowResult, OptionsFlow, OptionsFlowWithReload, ) 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/yeelightsunflower/__init__.py
homeassistant/components/yeelightsunflower/__init__.py
"""The yeelightsunflower 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/yeelightsunflower/light.py
homeassistant/components/yeelightsunflower/light.py
"""Support for Yeelight Sunflower color bulbs (not Yeelight Blue or WiFi).""" from __future__ import annotations import logging from typing import Any import voluptuous as vol import yeelightsunflower from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_HS_COLOR, PLATFORM_SCHEMA as LIGHT_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/google_maps/device_tracker.py
homeassistant/components/google_maps/device_tracker.py
"""Support for Google Maps location sharing.""" from __future__ import annotations from datetime import timedelta import logging from locationsharinglib import Service from locationsharinglib.locationsharinglibexceptions import InvalidCookies import voluptuous as vol from homeassistant.components.device_tracker 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/google_maps/__init__.py
homeassistant/components/google_maps/__init__.py
"""The google_maps 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/bliss_automation/__init__.py
homeassistant/components/bliss_automation/__init__.py
"""Virtual integration: Bliss automation."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/simu/__init__.py
homeassistant/components/simu/__init__.py
"""Virtual integration: SIMU LiveIn2."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/microsoft_face_detect/image_processing.py
homeassistant/components/microsoft_face_detect/image_processing.py
"""Component that will help set the Microsoft face detect processing.""" from __future__ import annotations import logging from typing import TYPE_CHECKING import voluptuous as vol from homeassistant.components.image_processing import ( ATTR_AGE, ATTR_GENDER, ATTR_GLASSES, PLATFORM_SCHEMA as IMAGE_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/microsoft_face_detect/__init__.py
homeassistant/components/microsoft_face_detect/__init__.py
"""The microsoft_face_detect 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/fireservicerota/switch.py
homeassistant/components/fireservicerota/switch.py
"""Switch platform for FireServiceRota integration.""" import logging from typing import Any from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatche...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fireservicerota/binary_sensor.py
homeassistant/components/fireservicerota/binary_sensor.py
"""Binary Sensor platform for FireServiceRota integration.""" from __future__ import annotations from typing import Any from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry 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/fireservicerota/const.py
homeassistant/components/fireservicerota/const.py
"""Constants for the FireServiceRota integration.""" DOMAIN = "fireservicerota" URL_LIST = { "www.brandweerrooster.nl": "BrandweerRooster", "www.fireservicerota.co.uk": "FireServiceRota", } WSS_BWRURL = "wss://{0}/cable?access_token={1}" DATA_CLIENT = "client" DATA_COORDINATOR = "coordinator"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fireservicerota/coordinator.py
homeassistant/components/fireservicerota/coordinator.py
"""The FireServiceRota integration.""" from __future__ import annotations from datetime import timedelta import logging from pyfireservicerota import ( ExpiredTokenError, FireServiceRota, FireServiceRotaIncidents, InvalidAuthError, InvalidTokenError, ) from homeassistant.config_entries import 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/fireservicerota/sensor.py
homeassistant/components/fireservicerota/sensor.py
"""Sensor platform for FireServiceRota integration.""" import logging from typing import Any from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fireservicerota/__init__.py
homeassistant/components/fireservicerota/__init__.py
"""The FireServiceRota integration.""" from __future__ import annotations from datetime import timedelta from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import ( FireServiceConfigEntry, FireServiceRotaClient, FireServiceUpdateCoordinator, ) MIN_TI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fireservicerota/config_flow.py
homeassistant/components/fireservicerota/config_flow.py
"""Config flow for FireServiceRota.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from pyfireservicerota import FireServiceRota, InvalidAuthError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/workday/diagnostics.py
homeassistant/components/workday/diagnostics.py
"""Diagnostics support for Workday.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: ConfigEntry ) -> dict[str, Any]: """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/workday/repairs.py
homeassistant/components/workday/repairs.py
"""Repairs platform for the Workday integration.""" from __future__ import annotations from typing import Any, cast from holidays import list_supported_countries import voluptuous as vol from homeassistant import data_entry_flow from homeassistant.components.repairs import ConfirmRepairFlow, RepairsFlow 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/workday/util.py
homeassistant/components/workday/util.py
"""Helpers functions for the Workday component.""" from __future__ import annotations from datetime import date, timedelta from functools import partial from typing import TYPE_CHECKING from holidays import PUBLIC, DateLike, HolidayBase, country_holidays from homeassistant.const import CONF_COUNTRY from homeassista...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/workday/binary_sensor.py
homeassistant/components/workday/binary_sensor.py
"""Sensor to indicate whether the current day is a workday.""" from __future__ import annotations from datetime import datetime from typing import Final from holidays import HolidayBase import voluptuous as vol from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.const import 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/workday/const.py
homeassistant/components/workday/const.py
"""Add constants for Workday integration.""" from __future__ import annotations import logging from homeassistant.const import WEEKDAYS, Platform LOGGER = logging.getLogger(__package__) ALLOWED_DAYS = [*WEEKDAYS, "holiday"] DOMAIN = "workday" PLATFORMS = [Platform.BINARY_SENSOR, Platform.CALENDAR] CONF_PROVINCE ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/workday/__init__.py
homeassistant/components/workday/__init__.py
"""Sensor to indicate whether the current day is a workday.""" from __future__ import annotations from datetime import timedelta from typing import cast from holidays import DateLike, HolidayBase from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_COUNTRY, CONF_LANGUAGE from ho...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/workday/entity.py
homeassistant/components/workday/entity.py
"""Base workday entity.""" from __future__ import annotations from abc import abstractmethod from datetime import date, datetime, timedelta from holidays import HolidayBase, __version__ as python_holidays_version from homeassistant.core import CALLBACK_TYPE, ServiceResponse, callback from homeassistant.helpers.devi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false