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/zwave_js/device_action.py
homeassistant/components/zwave_js/device_action.py
"""Provides device actions for Z-Wave JS.""" from __future__ import annotations from collections import defaultdict import re from typing import Any import voluptuous as vol from zwave_js_server.const import CommandClass from zwave_js_server.const.command_class.lock import ATTR_CODE_SLOT, ATTR_USERCODE from zwave_js...
python
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_js/button.py
homeassistant/components/zwave_js/button.py
"""Representation of Z-Wave buttons.""" from __future__ import annotations from zwave_js_server.model.driver import Driver from zwave_js_server.model.node import Node as ZwaveNode from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, ButtonEntity from homeassistant.const import EntityCategory from hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_js/trigger.py
homeassistant/components/zwave_js/trigger.py
"""Z-Wave JS trigger dispatcher.""" from __future__ import annotations from homeassistant.core import HomeAssistant from homeassistant.helpers.trigger import Trigger from .triggers import event, value_updated TRIGGERS = { event.RELATIVE_PLATFORM_TYPE: event.EventTrigger, value_updated.RELATIVE_PLATFORM_TYPE...
python
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_js/logbook.py
homeassistant/components/zwave_js/logbook.py
"""Describe Z-Wave JS logbook events.""" from __future__ import annotations from collections.abc import Callable from zwave_js_server.const import CommandClass from homeassistant.components.logbook import LOGBOOK_ENTRY_MESSAGE, LOGBOOK_ENTRY_NAME from homeassistant.const import ATTR_DEVICE_ID from homeassistant.cor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/zwave_js/select.py
homeassistant/components/zwave_js/select.py
"""Support for Z-Wave controls using the select platform.""" from __future__ import annotations from typing import cast from zwave_js_server.const import TARGET_VALUE_PROPERTY, CommandClass from zwave_js_server.const.command_class.lock import TARGET_MODE_PROPERTY from zwave_js_server.const.command_class.sound_switch...
python
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_js/discovery_data_template.py
homeassistant/components/zwave_js/discovery_data_template.py
"""Data template classes for discovery used to generate additional data for setup.""" from __future__ import annotations from collections.abc import Iterable, Mapping from dataclasses import dataclass, field from enum import Enum import logging from typing import Any, cast from zwave_js_server.const import CommandCl...
python
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_js/climate.py
homeassistant/components/zwave_js/climate.py
"""Representation of Z-Wave thermostats.""" from __future__ import annotations from typing import Any, cast from zwave_js_server.const import CommandClass from zwave_js_server.const.command_class.thermostat import ( THERMOSTAT_CURRENT_TEMP_PROPERTY, THERMOSTAT_HUMIDITY_PROPERTY, THERMOSTAT_MODE_PROPERTY,...
python
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_js/light.py
homeassistant/components/zwave_js/light.py
"""Support for Z-Wave lights.""" from __future__ import annotations from typing import TYPE_CHECKING, Any, cast from zwave_js_server.const import ( TARGET_VALUE_PROPERTY, TRANSITION_DURATION_OPTION, CommandClass, ) from zwave_js_server.const.command_class.color_switch import ( COLOR_SWITCH_COMBINED_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/zwave_js/config_flow.py
homeassistant/components/zwave_js/config_flow.py
"""Config flow for Z-Wave JS integration.""" from __future__ import annotations import asyncio import base64 from contextlib import suppress from datetime import datetime import logging from pathlib import Path from typing import Any from awesomeversion import AwesomeVersion from serial.tools import list_ports impor...
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/zwave_js/scripts/__init__.py
homeassistant/components/zwave_js/scripts/__init__.py
"""Scripts module for Z-Wave JS."""
python
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_js/scripts/convert_device_diagnostics_to_fixture.py
homeassistant/components/zwave_js/scripts/convert_device_diagnostics_to_fixture.py
"""Script to convert a device diagnostics file to a fixture.""" from __future__ import annotations import argparse import json from pathlib import Path from typing import Any from homeassistant.util import slugify def get_arguments() -> argparse.Namespace: """Get parsed passed in arguments.""" parser = arg...
python
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_js/triggers/value_updated.py
homeassistant/components/zwave_js/triggers/value_updated.py
"""Offer Z-Wave JS value updated listening automation trigger.""" from __future__ import annotations from collections.abc import Callable import functools from typing import Any import voluptuous as vol from zwave_js_server.const import CommandClass from zwave_js_server.model.driver import Driver from zwave_js_serve...
python
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_js/triggers/event.py
homeassistant/components/zwave_js/triggers/event.py
"""Offer Z-Wave JS event listening automation trigger.""" from __future__ import annotations from collections.abc import Callable import functools from typing import Any from pydantic import ValidationError import voluptuous as vol from zwave_js_server.model.controller import CONTROLLER_EVENT_MODEL_MAP from zwave_js...
python
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_js/triggers/trigger_helpers.py
homeassistant/components/zwave_js/triggers/trigger_helpers.py
"""Helpers for Z-Wave JS custom triggers.""" from homeassistant.config_entries import ConfigEntryState from homeassistant.const import ATTR_CONFIG_ENTRY_ID, ATTR_DEVICE_ID, ATTR_ENTITY_ID from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import device_registry as dr, entity_registry 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/zwave_js/triggers/__init__.py
homeassistant/components/zwave_js/triggers/__init__.py
"""Z-Wave JS 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/deconz/device_trigger.py
homeassistant/components/deconz/device_trigger.py
"""Provides device automations for deconz events.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import ( DEVICE_TRIGGER_BASE_SCHEMA, InvalidDeviceAutomationConfig, ) from homeassistant.components.homeassistant.triggers import event as event_tri...
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/deconz/diagnostics.py
homeassistant/components/deconz/diagnostics.py
"""Diagnostics support for deCONZ.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_API_KEY, CONF_UNIQUE_ID from homeassistant.core import HomeAssistant from . import DeconzConfigEntry REDACT_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/deconz/util.py
homeassistant/components/deconz/util.py
"""Utilities for deCONZ integration.""" from __future__ import annotations from typing import TYPE_CHECKING from homeassistant.core import HomeAssistant, callback from .const import DOMAIN from .hub import DeconzHub if TYPE_CHECKING: from . import DeconzConfigEntry def serial_from_unique_id(unique_id: str | ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/cover.py
homeassistant/components/deconz/cover.py
"""Support for deCONZ covers.""" from __future__ import annotations from typing import Any, cast from pydeconz.interfaces.lights import CoverAction from pydeconz.models import ResourceType from pydeconz.models.event import EventType from pydeconz.models.light.cover import Cover from homeassistant.components.cover i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/services.py
homeassistant/components/deconz/services.py
"""deCONZ services.""" from typing import TYPE_CHECKING from pydeconz.utils import normalize_bridge_id import voluptuous as vol from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.helpers import ( config_validation as cv, device_registry as dr, entity_registry as er, ) ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/switch.py
homeassistant/components/deconz/switch.py
"""Support for deCONZ switches.""" from __future__ import annotations from typing import Any from pydeconz.models.event import EventType from pydeconz.models.light.light import Light from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN, SwitchEntity from homeassistant.core import HomeAssistant, callb...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/number.py
homeassistant/components/deconz/number.py
"""Support for configuring different deCONZ numbers.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from pydeconz.gateway import DeconzSession from pydeconz.interfaces.sensors import SensorResources from pydeconz.models.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/deconz/binary_sensor.py
homeassistant/components/deconz/binary_sensor.py
"""Support for deCONZ binary sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from pydeconz.interfaces.sensors import SensorResources from pydeconz.models.event import EventType from pydeconz.models.sensor import SensorBase as PydeconzSensorBase 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/deconz/lock.py
homeassistant/components/deconz/lock.py
"""Support for deCONZ locks.""" from __future__ import annotations from typing import Any from pydeconz.models.event import EventType from pydeconz.models.light.lock import Lock from pydeconz.models.sensor.door_lock import DoorLock from homeassistant.components.lock import DOMAIN as LOCK_DOMAIN, LockEntity 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/deconz/const.py
homeassistant/components/deconz/const.py
"""Constants for the deCONZ component.""" import logging from pydeconz.models import ResourceType from homeassistant.const import Platform LOGGER = logging.getLogger(__package__) DOMAIN = "deconz" HASSIO_CONFIGURATION_URL = "homeassistant://hassio/ingress/core_deconz" CONF_BRIDGE_ID = "bridgeid" CONF_GROUP_ID_BA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/fan.py
homeassistant/components/deconz/fan.py
"""Support for deCONZ fans.""" from __future__ import annotations from typing import Any from pydeconz.models.event import EventType from pydeconz.models.light.light import Light, LightFanSpeed from homeassistant.components.fan import ( DOMAIN as FAN_DOMAIN, FanEntity, FanEntityFeature, ) 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/deconz/errors.py
homeassistant/components/deconz/errors.py
"""Errors for the deCONZ component.""" from homeassistant.exceptions import HomeAssistantError class DeconzException(HomeAssistantError): """Base class for deCONZ exceptions.""" class AlreadyConfigured(DeconzException): """Gateway is already configured.""" class AuthenticationRequired(DeconzException): ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/siren.py
homeassistant/components/deconz/siren.py
"""Support for deCONZ siren.""" from __future__ import annotations from typing import Any from pydeconz.models.event import EventType from pydeconz.models.light.siren import Siren from homeassistant.components.siren import ( ATTR_DURATION, DOMAIN as SIREN_DOMAIN, SirenEntity, SirenEntityFeature, ) 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/deconz/sensor.py
homeassistant/components/deconz/sensor.py
"""Support for deCONZ sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from typing import Generic, TypeVar from pydeconz.interfaces.sensors import SensorResources from pydeconz.models.event import EventType from pydeco...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/__init__.py
homeassistant/components/deconz/__init__.py
"""Support for deCONZ devices.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntry from homeassistant.const import EVENT_HOMEASSISTANT_STOP from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady 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/deconz/entity.py
homeassistant/components/deconz/entity.py
"""Base class for deCONZ devices.""" from __future__ import annotations from pydeconz.models.deconz_device import DeconzDevice as PydeconzDevice from pydeconz.models.group import Group as PydeconzGroup from pydeconz.models.light import LightBase as PydeconzLightBase from pydeconz.models.scene import Scene as Pydeconz...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/button.py
homeassistant/components/deconz/button.py
"""Support for deCONZ buttons.""" from __future__ import annotations from dataclasses import dataclass from pydeconz.models.event import EventType from pydeconz.models.scene import Scene as PydeconzScene from pydeconz.models.sensor.presence import Presence from homeassistant.components.button import ( DOMAIN 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/deconz/logbook.py
homeassistant/components/deconz/logbook.py
"""Describe deCONZ logbook events.""" from __future__ import annotations from collections.abc import Callable from homeassistant.components.logbook import LOGBOOK_ENTRY_MESSAGE, LOGBOOK_ENTRY_NAME from homeassistant.const import ATTR_DEVICE_ID, CONF_EVENT, CONF_ID from homeassistant.core import Event, 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/deconz/scene.py
homeassistant/components/deconz/scene.py
"""Support for deCONZ scenes.""" from __future__ import annotations from typing import Any from pydeconz.models.event import EventType from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN, Scene from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import Add...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/alarm_control_panel.py
homeassistant/components/deconz/alarm_control_panel.py
"""Support for deCONZ alarm control panel devices.""" from __future__ import annotations from pydeconz.models.alarm_system import AlarmSystemArmAction from pydeconz.models.event import EventType from pydeconz.models.sensor.ancillary_control import ( AncillaryControl, AncillaryControlPanel, ) 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/deconz/select.py
homeassistant/components/deconz/select.py
"""Support for deCONZ select entities.""" from __future__ import annotations from pydeconz.models.event import EventType from pydeconz.models.sensor.air_purifier import AirPurifier, AirPurifierFanMode from pydeconz.models.sensor.presence import ( Presence, PresenceConfigDeviceMode, PresenceConfigSensitivi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/deconz_event.py
homeassistant/components/deconz/deconz_event.py
"""Representation of a deCONZ remote or keypad.""" from __future__ import annotations from typing import Any from pydeconz.models.event import EventType from pydeconz.models.sensor.ancillary_control import ( AncillaryControl, AncillaryControlAction, ) from pydeconz.models.sensor.presence import Presence, Pre...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/climate.py
homeassistant/components/deconz/climate.py
"""Support for deCONZ climate devices.""" from __future__ import annotations from typing import Any from pydeconz.models.event import EventType from pydeconz.models.sensor.thermostat import ( Thermostat, ThermostatFanMode, ThermostatMode, ThermostatPreset, ) from homeassistant.components.climate 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/deconz/light.py
homeassistant/components/deconz/light.py
"""Support for deCONZ lights.""" from __future__ import annotations from typing import Any, TypedDict, cast from pydeconz.interfaces.groups import GroupHandler from pydeconz.interfaces.lights import LightHandler from pydeconz.models.event import EventType from pydeconz.models.group import Group, TypedGroupAction 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/deconz/config_flow.py
homeassistant/components/deconz/config_flow.py
"""Config flow to configure deCONZ component.""" from __future__ import annotations import asyncio from collections.abc import Mapping import logging from pprint import pformat from typing import Any, cast from urllib.parse import urlparse from pydeconz.errors import LinkButtonNotPressed, RequestError, ResponseError...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/hub/api.py
homeassistant/components/deconz/hub/api.py
"""deCONZ API representation.""" from __future__ import annotations import asyncio from typing import TYPE_CHECKING from pydeconz import DeconzSession, errors from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client from ..const import LOGGER from ..errors import Authentication...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/hub/config.py
homeassistant/components/deconz/hub/config.py
"""deCONZ config entry abstraction.""" from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING, Self from homeassistant.const import CONF_API_KEY, CONF_HOST, CONF_PORT from ..const import ( CONF_ALLOW_CLIP_SENSOR, CONF_ALLOW_DECONZ_GROUPS, CONF_ALLOW_NEW_DEV...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/hub/__init__.py
homeassistant/components/deconz/hub/__init__.py
"""Internal functionality not part of HA infrastructure.""" from .api import get_deconz_api from .hub import DeconzHub __all__ = ["DeconzHub", "get_deconz_api"]
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/deconz/hub/hub.py
homeassistant/components/deconz/hub/hub.py
"""Representation of a deCONZ gateway.""" from __future__ import annotations from collections.abc import Callable from typing import TYPE_CHECKING, cast from pydeconz import DeconzSession from pydeconz.interfaces import sensors from pydeconz.interfaces.api_handlers import APIHandler, GroupedAPIHandler from pydeconz....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qbittorrent/switch.py
homeassistant/components/qbittorrent/switch.py
"""Support for monitoring the qBittorrent API.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.config_entries import ConfigEntry 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/qbittorrent/const.py
homeassistant/components/qbittorrent/const.py
"""Constants for qBittorrent.""" from typing import Final DOMAIN: Final = "qbittorrent" DEFAULT_NAME = "qBittorrent" DEFAULT_URL = "http://127.0.0.1:8080" STATE_ATTR_TORRENTS = "torrents" STATE_ATTR_ALL_TORRENTS = "all_torrents" STATE_UP_DOWN = "up_down" STATE_SEEDING = "seeding" STATE_DOWNLOADING = "downloading" ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qbittorrent/coordinator.py
homeassistant/components/qbittorrent/coordinator.py
"""The QBittorrent coordinator.""" from __future__ import annotations from datetime import timedelta import logging from qbittorrentapi import ( APIConnectionError, Client, Forbidden403Error, LoginFailed, SyncMainDataDictionary, TorrentInfoList, ) from qbittorrentapi.torrents import TorrentSt...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qbittorrent/helpers.py
homeassistant/components/qbittorrent/helpers.py
"""Helper functions for qBittorrent.""" from datetime import UTC, datetime from typing import Any, cast from qbittorrentapi import Client, TorrentDictionary, TorrentInfoList def setup_client(url: str, username: str, password: str, verify_ssl: bool) -> Client: """Create a qBittorrent client.""" client = Clie...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qbittorrent/sensor.py
homeassistant/components/qbittorrent/sensor.py
"""Support for monitoring the qBittorrent API.""" from __future__ import annotations from collections.abc import Callable, Mapping from dataclasses import dataclass import logging from typing import Any, cast from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qbittorrent/__init__.py
homeassistant/components/qbittorrent/__init__.py
"""The qbittorrent component.""" import logging from typing import Any from qbittorrentapi import APIConnectionError, Forbidden403Error, LoginFailed from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ATTR_DEVICE_ID, CONF_PASSWORD, CONF_URL, CONF_USERNAME, CONF_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/qbittorrent/config_flow.py
homeassistant/components/qbittorrent/config_flow.py
"""Config flow for qBittorrent.""" from __future__ import annotations import logging from typing import Any from qbittorrentapi import APIConnectionError, Forbidden403Error, LoginFailed import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult 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/airos/diagnostics.py
homeassistant/components/airos/diagnostics.py
"""Diagnostics support for airOS.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_HOST, CONF_PASSWORD from homeassistant.core import HomeAssistant from .coordinator import AirOSConfigEntry IP_REDACT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airos/binary_sensor.py
homeassistant/components/airos/binary_sensor.py
"""AirOS Binary Sensor component for Home Assistant.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airos/const.py
homeassistant/components/airos/const.py
"""Constants for the Ubiquiti airOS integration.""" from datetime import timedelta DOMAIN = "airos" SCAN_INTERVAL = timedelta(minutes=1) MANUFACTURER = "Ubiquiti" DEFAULT_VERIFY_SSL = False DEFAULT_SSL = True SECTION_ADVANCED_SETTINGS = "advanced_settings"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airos/coordinator.py
homeassistant/components/airos/coordinator.py
"""DataUpdateCoordinator for AirOS.""" from __future__ import annotations import logging from airos.airos8 import AirOS8, AirOS8Data from airos.exceptions import ( AirOSConnectionAuthenticationError, AirOSConnectionSetupError, AirOSDataMissingError, AirOSDeviceConnectionError, ) from homeassistant.c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airos/sensor.py
homeassistant/components/airos/sensor.py
"""AirOS Sensor component for Home Assistant.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from airos.data import DerivedWirelessMode, DerivedWirelessRole, NetRole from homeassistant.components.sensor import ( SensorDeviceClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airos/__init__.py
homeassistant/components/airos/__init__.py
"""The Ubiquiti airOS integration.""" from __future__ import annotations import logging from airos.airos8 import AirOS8 from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_SSL, CONF_USERNAME, CONF_VERIFY_SSL, Platform, ) from homeassistant.core import HomeAssistant, callback fro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airos/entity.py
homeassistant/components/airos/entity.py
"""Generic AirOS Entity Class.""" from __future__ import annotations from homeassistant.const import CONF_HOST, CONF_SSL from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN, MANUFACTURER,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airos/config_flow.py
homeassistant/components/airos/config_flow.py
"""Config flow for the Ubiquiti airOS integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from airos.exceptions import ( AirOSConnectionAuthenticationError, AirOSConnectionSetupError, AirOSDataMissingError, AirOSDeviceConnection...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/weather.py
homeassistant/components/knx/weather.py
"""Support for KNX weather entities.""" from __future__ import annotations from xknx import XKNX from xknx.devices import Weather as XknxWeather from homeassistant import config_entries from homeassistant.components.weather import WeatherEntity from homeassistant.const import ( CONF_ENTITY_CATEGORY, CONF_NAM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/device_trigger.py
homeassistant/components/knx/device_trigger.py
"""Provide device triggers for KNX.""" from __future__ import annotations from typing import Any, Final import voluptuous as vol from homeassistant.components.device_automation import ( DEVICE_TRIGGER_BASE_SCHEMA, InvalidDeviceAutomationConfig, ) from homeassistant.const import CONF_DEVICE_ID, CONF_DOMAIN, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/diagnostics.py
homeassistant/components/knx/diagnostics.py
"""Diagnostics support for the KNX integration.""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant import config as conf_util from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry 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/knx/repairs.py
homeassistant/components/knx/repairs.py
"""Repairs for KNX integration.""" from __future__ import annotations from collections.abc import Callable from functools import partial from typing import TYPE_CHECKING, Any, Final import voluptuous as vol from xknx.exceptions.exception import InvalidSecureConfiguration from xknx.telegram import GroupAddress, Indiv...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/datetime.py
homeassistant/components/knx/datetime.py
"""Support for KNX datetime entities.""" from __future__ import annotations from datetime import datetime from typing import Any from xknx.devices import DateTimeDevice as XknxDateTimeDevice from xknx.dpt.dpt_19 import KNXDateTime as XKNXDateTime from homeassistant import config_entries from homeassistant.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/knx/cover.py
homeassistant/components/knx/cover.py
"""Support for KNX cover entities.""" from __future__ import annotations from typing import Any from xknx import XKNX from xknx.devices import Cover as XknxCover from homeassistant import config_entries from homeassistant.components.cover import ( ATTR_POSITION, ATTR_TILT_POSITION, CoverDeviceClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/schema.py
homeassistant/components/knx/schema.py
"""Voluptuous schemas for the KNX integration.""" from __future__ import annotations from abc import ABC from collections import OrderedDict import math from typing import ClassVar, Final import voluptuous as vol from xknx.devices.climate import FanSpeedMode, SetpointShiftMode from xknx.dpt import DPTBase, DPTNumeri...
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/knx/services.py
homeassistant/components/knx/services.py
"""KNX integration services.""" from __future__ import annotations import logging from typing import TYPE_CHECKING import voluptuous as vol from xknx.dpt import DPTArray, DPTBase, DPTBinary from xknx.exceptions import ConversionError from xknx.telegram import Telegram from xknx.telegram.address import parse_device_g...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/switch.py
homeassistant/components/knx/switch.py
"""Support for KNX switch entities.""" from __future__ import annotations from typing import Any from xknx.devices import Switch as XknxSwitch from homeassistant import config_entries from homeassistant.components.switch import SwitchEntity from homeassistant.const import ( CONF_DEVICE_CLASS, CONF_ENTITY_CA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/number.py
homeassistant/components/knx/number.py
"""Support for KNX number entities.""" from __future__ import annotations from typing import cast from xknx import XKNX from xknx.devices import NumericValue from homeassistant import config_entries from homeassistant.components.number import RestoreNumber from homeassistant.const import ( CONF_ENTITY_CATEGORY,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/websocket.py
homeassistant/components/knx/websocket.py
"""KNX Websocket API.""" from __future__ import annotations from collections.abc import Awaitable, Callable from contextlib import ExitStack from functools import wraps import inspect from typing import TYPE_CHECKING, Any, Final, overload import knx_frontend as knx_panel import voluptuous as vol from xknx.telegram i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/telegrams.py
homeassistant/components/knx/telegrams.py
"""KNX Telegram handler.""" from __future__ import annotations from collections import deque from typing import Final, TypedDict from xknx import XKNX from xknx.dpt import DPTArray, DPTBase, DPTBinary from xknx.dpt.dpt import DPTComplexData, DPTEnumData from xknx.exceptions import XKNXException from xknx.telegram 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/knx/binary_sensor.py
homeassistant/components/knx/binary_sensor.py
"""Support for KNX binary sensor entities.""" from __future__ import annotations from typing import Any from xknx.devices import BinarySensor as XknxBinarySensor from homeassistant import config_entries from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.const import ( CONF_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/const.py
homeassistant/components/knx/const.py
"""Constants for the KNX integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable from enum import Enum, StrEnum from typing import TYPE_CHECKING, Final, TypedDict from xknx.dpt.dpt_20 import HVACControllerMode from xknx.telegram import Telegram from homeassistant.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/knx/expose.py
homeassistant/components/knx/expose.py
"""Expose Home Assistant entity states to KNX.""" from __future__ import annotations from collections.abc import Callable import logging from xknx import XKNX from xknx.devices import DateDevice, DateTimeDevice, ExposeSensor, TimeDevice from xknx.dpt import DPTNumeric, DPTString from xknx.exceptions import Conversio...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/time.py
homeassistant/components/knx/time.py
"""Support for KNX time entities.""" from __future__ import annotations from datetime import time as dt_time from typing import Any from xknx.devices import TimeDevice as XknxTimeDevice from xknx.dpt.dpt_10 import KNXTime as XknxTime from homeassistant import config_entries from homeassistant.components.time 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/knx/fan.py
homeassistant/components/knx/fan.py
"""Support for KNX fan entities.""" from __future__ import annotations import math from typing import Any from propcache.api import cached_property from xknx.devices import Fan as XknxFan from homeassistant import config_entries from homeassistant.components.fan import FanEntity, FanEntityFeature 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/knx/validation.py
homeassistant/components/knx/validation.py
"""Validation helpers for KNX config schemas.""" from collections.abc import Callable from enum import Enum import ipaddress from typing import Any import voluptuous as vol from xknx.dpt import DPTBase, DPTNumeric, DPTString from xknx.exceptions import CouldNotParseAddress from xknx.telegram.address import Individual...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/sensor.py
homeassistant/components/knx/sensor.py
"""Support for KNX sensor entities.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from functools import partial from typing import Any from xknx.core.connection_state import XknxConnectionState, XknxConnectionType...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/__init__.py
homeassistant/components/knx/__init__.py
"""The KNX integration.""" from __future__ import annotations import contextlib from pathlib import Path from typing import Final import voluptuous as vol from xknx.exceptions import XKNXException from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/dpt.py
homeassistant/components/knx/dpt.py
"""KNX DPT serializer.""" from collections.abc import Mapping from functools import cache from typing import Literal, TypedDict from xknx.dpt import DPTBase, DPTComplex, DPTEnum, DPTNumeric from xknx.dpt.dpt_16 import DPTString from homeassistant.components.sensor import SensorDeviceClass, SensorStateClass HaDptCla...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/project.py
homeassistant/components/knx/project.py
"""Handle KNX project data.""" from __future__ import annotations from dataclasses import dataclass import logging from typing import Final from xknx import XKNX from xknx.dpt import DPTBase from xknx.telegram.address import DeviceAddressableType, GroupAddress, GroupAddressType from xknxproject import XKNXProj 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/knx/entity.py
homeassistant/components/knx/entity.py
"""Base classes for KNX entities.""" from __future__ import annotations from typing import TYPE_CHECKING, Any from xknx.devices import Device as XknxDevice from homeassistant.const import CONF_ENTITY_CATEGORY, EntityCategory from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.ent...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/button.py
homeassistant/components/knx/button.py
"""Support for KNX button entities.""" from __future__ import annotations from xknx.devices import RawValue as XknxRawValue from homeassistant import config_entries from homeassistant.components.button import ButtonEntity from homeassistant.const import CONF_ENTITY_CATEGORY, CONF_NAME, CONF_PAYLOAD, Platform 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/knx/trigger.py
homeassistant/components/knx/trigger.py
"""Provide KNX automation triggers.""" from typing import Final import voluptuous as vol from xknx.dpt import DPTBase from xknx.telegram import Telegram, TelegramDirection from xknx.telegram.address import DeviceGroupAddress, parse_device_group_address from xknx.telegram.apci import GroupValueRead, GroupValueResponse...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/knx_module.py
homeassistant/components/knx/knx_module.py
"""Base module for the KNX integration.""" from __future__ import annotations import logging from xknx import XKNX from xknx.core import XknxConnectionState from xknx.core.state_updater import StateTrackerType, TrackerOptions from xknx.core.telegram_queue import TelegramQueue from xknx.dpt import DPTBase from xknx.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/knx/scene.py
homeassistant/components/knx/scene.py
"""Support for KNX scene entities.""" from __future__ import annotations from typing import Any from xknx.devices import Device as XknxDevice, Scene as XknxScene from homeassistant import config_entries from homeassistant.components.scene import BaseScene from homeassistant.const import CONF_ENTITY_CATEGORY, CONF_N...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/text.py
homeassistant/components/knx/text.py
"""Support for KNX text entities.""" from __future__ import annotations from propcache.api import cached_property from xknx.devices import Notification as XknxNotification from xknx.dpt import DPTLatin1 from homeassistant import config_entries from homeassistant.components.text import TextEntity, TextMode 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/knx/date.py
homeassistant/components/knx/date.py
"""Support for KNX date entities.""" from __future__ import annotations from datetime import date as dt_date from typing import Any from xknx.devices import DateDevice as XknxDateDevice from xknx.dpt.dpt_11 import KNXDate as XKNXDate from homeassistant import config_entries from homeassistant.components.date 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/knx/select.py
homeassistant/components/knx/select.py
"""Support for KNX select entities.""" from __future__ import annotations from xknx import XKNX from xknx.devices import Device as XknxDevice, RawValue from homeassistant import config_entries from homeassistant.components.select import SelectEntity from homeassistant.const import ( CONF_ENTITY_CATEGORY, 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/knx/climate.py
homeassistant/components/knx/climate.py
"""Support for KNX climate entities.""" from __future__ import annotations from typing import Any from xknx import XKNX from xknx.devices import ( Climate as XknxClimate, ClimateMode as XknxClimateMode, Device as XknxDevice, ) from xknx.devices.fan import FanSpeedMode from xknx.dpt.dpt_20 import HVACCont...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/device.py
homeassistant/components/knx/device.py
"""Handle Home Assistant Devices for the KNX integration.""" from __future__ import annotations from xknx import XKNX from xknx.core import XknxConnectionState from xknx.io.gateway_scanner import GatewayDescriptor 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/knx/notify.py
homeassistant/components/knx/notify.py
"""Support for KNX notify entities.""" from __future__ import annotations from xknx import XKNX from xknx.devices import Notification as XknxNotification from homeassistant import config_entries from homeassistant.components.notify import NotifyEntity from homeassistant.const import CONF_ENTITY_CATEGORY, CONF_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/knx/light.py
homeassistant/components/knx/light.py
"""Support for KNX light entities.""" from __future__ import annotations from typing import Any, cast from propcache.api import cached_property from xknx import XKNX from xknx.devices.light import ColorTemperatureType, Light as XknxLight, XYYColor from homeassistant import config_entries from homeassistant.componen...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/config_flow.py
homeassistant/components/knx/config_flow.py
"""Config flow for KNX.""" from __future__ import annotations from collections.abc import AsyncGenerator from typing import Any, Final, Literal import voluptuous as vol from xknx import XKNX from xknx.exceptions.exception import ( CommunicationError, InvalidSecureConfiguration, XKNXException, ) from xknx...
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/knx/storage/util.py
homeassistant/components/knx/storage/util.py
"""Utility functions for the KNX integration.""" from functools import partial from typing import Any from xknx.typing import DPTMainSubDict from homeassistant.helpers.typing import ConfigType from .const import CONF_DPT, CONF_GA_PASSIVE, CONF_GA_STATE, CONF_GA_WRITE def dpt_string_to_dict(dpt: str) -> DPTMainSub...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/storage/serialize.py
homeassistant/components/knx/storage/serialize.py
"""Custom serializer for KNX schemas.""" from typing import Any, cast import voluptuous as vol from voluptuous_serialize import UNSUPPORTED, UnsupportedType, convert from homeassistant.const import Platform from homeassistant.helpers import selector from .entity_store_schema import KNX_SCHEMA_FOR_PLATFORM from .knx...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/storage/const.py
homeassistant/components/knx/storage/const.py
"""Constants used in KNX config store.""" from typing import Final # Common CONF_DATA: Final = "data" CONF_ENTITY: Final = "entity" CONF_DEVICE_INFO: Final = "device_info" CONF_GA_WRITE: Final = "write" CONF_GA_STATE: Final = "state" CONF_GA_PASSIVE: Final = "passive" CONF_DPT: Final = "dpt" CONF_GA_SENSOR: Final = ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/storage/migration.py
homeassistant/components/knx/storage/migration.py
"""Migration functions for KNX config store schema.""" from typing import Any from homeassistant.const import Platform from ..const import CONF_RESPOND_TO_READ from . import const as store_const def migrate_1_to_2(data: dict[str, Any]) -> None: """Migrate from schema 1 to schema 2.""" if lights := data.get...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/knx/storage/config_store.py
homeassistant/components/knx/storage/config_store.py
"""KNX entity configuration store.""" from abc import ABC, abstractmethod import logging from typing import Any, Final, TypedDict from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PLATFORM, Platform 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/knx/storage/__init__.py
homeassistant/components/knx/storage/__init__.py
"""Handle persistent storage for the KNX integration."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false