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/knx/storage/entity_store_validation.py
homeassistant/components/knx/storage/entity_store_validation.py
"""KNX entity store validation.""" from typing import Literal, TypedDict import voluptuous as vol from .entity_store_schema import ENTITY_STORE_DATA_SCHEMA class _ErrorDescription(TypedDict): path: list[str] | None error_message: str error_class: str class EntityStoreValidationError(TypedDict): "...
python
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/keyring.py
homeassistant/components/knx/storage/keyring.py
"""KNX Keyring handler.""" import logging from pathlib import Path import shutil from typing import Final from xknx.exceptions.exception import InvalidSecureConfiguration from xknx.secure.keyring import Keyring, sync_load_keyring from homeassistant.components.file_upload import process_uploaded_file 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/storage/entity_store_schema.py
homeassistant/components/knx/storage/entity_store_schema.py
"""KNX entity store schema.""" from enum import StrEnum, unique import voluptuous as vol from homeassistant.components.climate import HVACMode from homeassistant.components.sensor import ( CONF_STATE_CLASS as CONF_SENSOR_STATE_CLASS, DEVICE_CLASS_STATE_CLASSES, DEVICE_CLASS_UNITS, STATE_CLASS_UNITS, ...
python
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/knx_selector.py
homeassistant/components/knx/storage/knx_selector.py
"""Selectors for KNX.""" from collections.abc import Hashable, Iterable from enum import Enum from typing import Any import voluptuous as vol from ..dpt import HaDptClass, get_supported_dpts from ..validation import ga_validator, maybe_ga_validator, sync_state_validator from .const import CONF_DPT, CONF_GA_PASSIVE, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mealie/diagnostics.py
homeassistant/components/mealie/diagnostics.py
"""Diagnostics support for the Mealie integration.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.core import HomeAssistant from . import MealieConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, config_entry: MealieCon...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mealie/todo.py
homeassistant/components/mealie/todo.py
"""Todo platform for Mealie.""" from __future__ import annotations from aiomealie import MealieError, MutateShoppingItem, ShoppingItem, ShoppingList from homeassistant.components.todo import ( DOMAIN as TODO_DOMAIN, TodoItem, TodoItemStatus, TodoListEntity, TodoListEntityFeature, ) 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/mealie/services.py
homeassistant/components/mealie/services.py
"""Define services for the Mealie integration.""" from dataclasses import asdict from datetime import date from typing import cast from aiomealie import ( MealieConnectionError, MealieNotFoundError, MealieValidationError, MealplanEntryType, ) from awesomeversion import AwesomeVersion import voluptuous...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mealie/const.py
homeassistant/components/mealie/const.py
"""Constants for the Mealie integration.""" import logging from awesomeversion import AwesomeVersion DOMAIN = "mealie" LOGGER = logging.getLogger(__package__) ATTR_START_DATE = "start_date" ATTR_END_DATE = "end_date" ATTR_RECIPE_ID = "recipe_id" ATTR_URL = "url" ATTR_INCLUDE_TAGS = "include_tags" ATTR_ENTRY_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/mealie/coordinator.py
homeassistant/components/mealie/coordinator.py
"""Define an object to manage fetching Mealie data.""" from __future__ import annotations from abc import abstractmethod from dataclasses import dataclass from datetime import timedelta from aiomealie import ( MealieAuthenticationError, MealieClient, MealieConnectionError, Mealplan, MealplanEntry...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mealie/utils.py
homeassistant/components/mealie/utils.py
"""Mealie util functions.""" from __future__ import annotations from awesomeversion import AwesomeVersion def create_version(version: str) -> AwesomeVersion: """Convert beta versions to PEP440.""" return AwesomeVersion(version.replace("beta-", "b"))
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mealie/sensor.py
homeassistant/components/mealie/sensor.py
"""Support for Mealie sensors.""" from collections.abc import Callable from dataclasses import dataclass from aiomealie import Statistics from homeassistant.components.sensor import ( SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.core import HomeAssistant from homeassistan...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mealie/__init__.py
homeassistant/components/mealie/__init__.py
"""The Mealie integration.""" from __future__ import annotations from aiomealie import MealieAuthenticationError, MealieClient, MealieError from homeassistant.const import CONF_API_TOKEN, CONF_HOST, CONF_VERIFY_SSL, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions 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/mealie/entity.py
homeassistant/components/mealie/entity.py
"""Base class for Mealie entities.""" from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import MealieDataUpdateCoordinator class MealieEntity(CoordinatorEntity[MealieDataUpdateCoordinator]):...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mealie/calendar.py
homeassistant/components/mealie/calendar.py
"""Calendar platform for Mealie.""" from __future__ import annotations from datetime import datetime from aiomealie import Mealplan, MealplanEntryType from awesomeversion import AwesomeVersion from homeassistant.components.calendar import CalendarEntity, CalendarEvent from homeassistant.core import HomeAssistant 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/mealie/config_flow.py
homeassistant/components/mealie/config_flow.py
"""Config flow for Mealie.""" from collections.abc import Mapping from typing import Any from aiomealie import MealieAuthenticationError, MealieClient, MealieConnectionError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_API_TOKEN, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/discovergy/diagnostics.py
homeassistant/components/discovergy/diagnostics.py
"""Diagnostics support for discovergy.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .coordinator import DiscovergyConfigEntry TO_REDACT_METER = { "...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/discovergy/system_health.py
homeassistant/components/discovergy/system_health.py
"""Provide info to system health.""" from typing import Any from pydiscovergy.const import API_BASE from homeassistant.components import system_health from homeassistant.core import HomeAssistant, callback @callback def async_register( hass: HomeAssistant, register: system_health.SystemHealthRegistration ) -> ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/discovergy/const.py
homeassistant/components/discovergy/const.py
"""Constants for the Discovergy integration.""" from __future__ import annotations DOMAIN = "discovergy" MANUFACTURER = "inexogy"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/discovergy/coordinator.py
homeassistant/components/discovergy/coordinator.py
"""DataUpdateCoordinator for the Discovergy integration.""" from __future__ import annotations from datetime import timedelta import logging from pydiscovergy import Discovergy from pydiscovergy.error import DiscovergyClientError, HTTPError, InvalidLogin from pydiscovergy.models import Meter, Reading 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/discovergy/sensor.py
homeassistant/components/discovergy/sensor.py
"""Discovergy sensor entity.""" from collections.abc import Callable from dataclasses import dataclass, field from datetime import datetime from pydiscovergy.models import Reading from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/discovergy/__init__.py
homeassistant/components/discovergy/__init__.py
"""The Discovergy integration.""" from __future__ import annotations from pydiscovergy import Discovergy from pydiscovergy.authentication import BasicAuth import pydiscovergy.error as discovergyError from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform 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/discovergy/config_flow.py
homeassistant/components/discovergy/config_flow.py
"""Config flow for Discovergy integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from pydiscovergy import Discovergy from pydiscovergy.authentication import BasicAuth import pydiscovergy.error as discovergyError import voluptuous as vol 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/fyta/image.py
homeassistant/components/fyta/image.py
"""Entity for Fyta plant image.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime import logging from typing import Final from fyta_cli.fyta_models import Plant from homeassistant.components.image import ( Image, ImageE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fyta/diagnostics.py
homeassistant/components/fyta/diagnostics.py
"""Provides diagnostics for Fyta.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_ACCESS_TOKEN, CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant from .coordinator import Fyta...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fyta/binary_sensor.py
homeassistant/components/fyta/binary_sensor.py
"""Binary sensors for Fyta.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Final from fyta_cli.fyta_models import Plant from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, Binar...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fyta/const.py
homeassistant/components/fyta/const.py
"""Const for fyta integration.""" DOMAIN = "fyta" CONF_EXPIRATION = "expiration" CONF_MAX_ACCEPTABLE = "max_acceptable" CONF_MAX_GOOD = "max_good" CONF_MIN_ACCEPTABLE = "min_acceptable" CONF_MIN_GOOD = "min_good"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fyta/coordinator.py
homeassistant/components/fyta/coordinator.py
"""Coordinator for FYTA integration.""" from __future__ import annotations from collections.abc import Callable from datetime import datetime, timedelta import logging from fyta_cli.fyta_connector import FytaConnector from fyta_cli.fyta_exceptions import ( FytaAuthentificationError, FytaConnectionError, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fyta/sensor.py
homeassistant/components/fyta/sensor.py
"""Summary data from Fyta.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from typing import Final from fyta_cli.fyta_models import Plant from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fyta/__init__.py
homeassistant/components/fyta/__init__.py
"""Initialization of FYTA integration.""" from __future__ import annotations from datetime import datetime import logging from fyta_cli.fyta_connector import FytaConnector from homeassistant.const import ( CONF_ACCESS_TOKEN, CONF_PASSWORD, CONF_USERNAME, Platform, ) from homeassistant.core import 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/fyta/entity.py
homeassistant/components/fyta/entity.py
"""Entities for FYTA integration.""" from fyta_cli.fyta_models import Plant from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fyta/config_flow.py
homeassistant/components/fyta/config_flow.py
"""Config flow for FYTA integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from fyta_cli.fyta_connector import FytaConnector from fyta_cli.fyta_exceptions import ( FytaAuthentificationError, FytaConnectionError, FytaPasswordError, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/havana_shade/__init__.py
homeassistant/components/havana_shade/__init__.py
"""Virtual integration: Havana Shade."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pvpc_hourly_pricing/const.py
homeassistant/components/pvpc_hourly_pricing/const.py
"""Constant values for pvpc_hourly_pricing.""" from aiopvpc.const import TARIFFS import voluptuous as vol DOMAIN = "pvpc_hourly_pricing" ATTR_POWER = "power" ATTR_POWER_P3 = "power_p3" ATTR_TARIFF = "tariff" DEFAULT_NAME = "PVPC" CONF_USE_API_TOKEN = "use_api_token" VALID_POWER = vol.All(vol.Coerce(float), vol.Rang...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pvpc_hourly_pricing/coordinator.py
homeassistant/components/pvpc_hourly_pricing/coordinator.py
"""The pvpc_hourly_pricing integration to collect Spain official electric prices.""" from datetime import timedelta import logging from aiopvpc import BadApiTokenAuthError, EsiosApiData, PVPCData from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_API_TOKEN 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/pvpc_hourly_pricing/helpers.py
homeassistant/components/pvpc_hourly_pricing/helpers.py
"""Helper functions to relate sensors keys and unique ids.""" from aiopvpc.const import ( ALL_SENSORS, KEY_INJECTION, KEY_MAG, KEY_OMIE, KEY_PVPC, TARIFFS, ) from homeassistant.helpers.entity_registry import RegistryEntry _ha_uniqueid_to_sensor_key = { TARIFFS[0]: KEY_PVPC, TARIFFS[1]...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pvpc_hourly_pricing/sensor.py
homeassistant/components/pvpc_hourly_pricing/sensor.py
"""Sensor to collect the reference daily prices of electricity ('PVPC') in Spain.""" from __future__ import annotations from collections.abc import Mapping from datetime import datetime import logging from typing import Any from aiopvpc.const import KEY_INJECTION, KEY_MAG, KEY_OMIE, KEY_PVPC from homeassistant.comp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pvpc_hourly_pricing/__init__.py
homeassistant/components/pvpc_hourly_pricing/__init__.py
"""The pvpc_hourly_pricing integration to collect Spain official electric prices.""" from homeassistant.const import CONF_API_TOKEN, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er from .coordinator import ElecPricesDataUpdateCoordinator, PVPCConfigEntry 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/pvpc_hourly_pricing/config_flow.py
homeassistant/components/pvpc_hourly_pricing/config_flow.py
"""Config flow for pvpc_hourly_pricing.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from aiopvpc import DEFAULT_POWER_KW, PVPCData import voluptuous as vol from homeassistant.config_entries import ( SOURCE_REAUTH, ConfigEntry, ConfigFlow, ConfigFl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airly/diagnostics.py
homeassistant/components/airly/diagnostics.py
"""Diagnostics support for Airly.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import ( CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_UNIQUE_ID, ) from homeassistant.core import 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/airly/system_health.py
homeassistant/components/airly/system_health.py
"""Provide info to system health.""" from __future__ import annotations from typing import Any from airly import Airly from homeassistant.components import system_health from homeassistant.core import HomeAssistant, callback from .const import DOMAIN from .coordinator import AirlyConfigEntry @callback def async_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airly/const.py
homeassistant/components/airly/const.py
"""Constants for Airly integration.""" from __future__ import annotations from typing import Final ATTR_API_ADVICE: Final = "ADVICE" ATTR_API_CAQI: Final = "CAQI" ATTR_API_CAQI_DESCRIPTION: Final = "DESCRIPTION" ATTR_API_CAQI_LEVEL: Final = "LEVEL" ATTR_API_CO: Final = "CO" ATTR_API_HUMIDITY: Final = "HUMIDITY" ATTR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airly/coordinator.py
homeassistant/components/airly/coordinator.py
"""DataUpdateCoordinator for the Airly integration.""" from asyncio import timeout from datetime import timedelta import logging from math import ceil from aiohttp import ClientSession from aiohttp.client_exceptions import ClientConnectorError from airly import Airly from airly.exceptions import AirlyError 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/airly/sensor.py
homeassistant/components/airly/sensor.py
"""Support for the Airly sensor service.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) 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/airly/__init__.py
homeassistant/components/airly/__init__.py
"""The Airly integration.""" from __future__ import annotations from datetime import timedelta import logging from homeassistant.components.air_quality import DOMAIN as AIR_QUALITY_PLATFORM from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, Platform from homeassistant.core import HomeAssist...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/airly/config_flow.py
homeassistant/components/airly/config_flow.py
"""Adds config flow for Airly.""" from __future__ import annotations from asyncio import timeout from http import HTTPStatus from typing import Any from aiohttp import ClientSession from airly import Airly from airly.exceptions import AirlyError import voluptuous as vol from homeassistant.config_entries 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/risco/services.py
homeassistant/components/risco/services.py
"""Services for Risco integration.""" from datetime import datetime import voluptuous as vol from homeassistant.config_entries import ConfigEntryState from homeassistant.const import ATTR_CONFIG_ENTRY_ID, ATTR_TIME, CONF_TYPE from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.exceptions 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/risco/models.py
homeassistant/components/risco/models.py
"""Models for Risco integration.""" from collections.abc import Callable from dataclasses import dataclass, field from typing import Any from pyrisco import RiscoLocal @dataclass class LocalData: """A data class for local data passed to the platforms.""" system: RiscoLocal partition_updates: dict[int, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/risco/switch.py
homeassistant/components/risco/switch.py
"""Support for bypassing Risco alarm zones.""" from __future__ import annotations from typing import Any from pyrisco.common import Zone from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import EntityCategory 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/risco/binary_sensor.py
homeassistant/components/risco/binary_sensor.py
"""Support for Risco alarm zones.""" from __future__ import annotations from collections.abc import Mapping from itertools import chain from typing import Any from pyrisco.cloud.zone import Zone as CloudZone from pyrisco.common import System from pyrisco.local.zone import Zone as LocalZone from homeassistant.compon...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/risco/const.py
homeassistant/components/risco/const.py
"""Constants for the Risco integration.""" from homeassistant.components.alarm_control_panel import AlarmControlPanelState from homeassistant.const import CONF_SCAN_INTERVAL DOMAIN = "risco" RISCO_EVENT = "risco_event" DATA_COORDINATOR = "risco" EVENTS_COORDINATOR = "risco_events" DEFAULT_SCAN_INTERVAL = 30 DEFAUL...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/risco/coordinator.py
homeassistant/components/risco/coordinator.py
"""Coordinator for the Risco integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from pyrisco import CannotConnectError, OperationError, RiscoCloud, UnauthorizedError from pyrisco.cloud.alarm import Alarm from pyrisco.cloud.event import Event 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/risco/sensor.py
homeassistant/components/risco/sensor.py
"""Sensor for Risco Events.""" from __future__ import annotations from collections.abc import Collection, Mapping from datetime import datetime from typing import Any from pyrisco.cloud.event import Event from homeassistant.components.binary_sensor import DOMAIN as BS_DOMAIN from homeassistant.components.sensor 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/risco/__init__.py
homeassistant/components/risco/__init__.py
"""The Risco integration.""" from __future__ import annotations import logging from pyrisco import CannotConnectError, RiscoCloud, RiscoLocal, UnauthorizedError from pyrisco.common import Partition, System, Zone from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( 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/risco/entity.py
homeassistant/components/risco/entity.py
"""A risco entity base class.""" from __future__ import annotations from typing import Any from pyrisco import RiscoCloud from pyrisco.cloud.zone import Zone as CloudZone from pyrisco.local.zone import Zone as LocalZone from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.dispatch...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/risco/alarm_control_panel.py
homeassistant/components/risco/alarm_control_panel.py
"""Support for Risco alarms.""" from __future__ import annotations from collections.abc import Callable import logging from typing import Any from pyrisco.common import Partition from pyrisco.local.partition import Partition as LocalPartition from homeassistant.components.alarm_control_panel import ( AlarmContr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/risco/config_flow.py
homeassistant/components/risco/config_flow.py
"""Config flow for Risco integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from pyrisco import CannotConnectError, RiscoCloud, RiscoLocal, UnauthorizedError import voluptuous as vol from homeassistant.components.alarm_control_panel import Al...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ukraine_alarm/binary_sensor.py
homeassistant/components/ukraine_alarm/binary_sensor.py
"""binary sensors for Ukraine Alarm integration.""" from __future__ import annotations from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry 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/ukraine_alarm/const.py
homeassistant/components/ukraine_alarm/const.py
"""Consts for the Ukraine Alarm.""" from __future__ import annotations from homeassistant.const import Platform DOMAIN = "ukraine_alarm" ATTRIBUTION = "Data provided by Ukraine Alarm" MANUFACTURER = "Ukraine Alarm" ALERT_TYPE_UNKNOWN = "UNKNOWN" ALERT_TYPE_AIR = "AIR" ALERT_TYPE_ARTILLERY = "ARTILLERY" ALERT_TYPE_UR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ukraine_alarm/coordinator.py
homeassistant/components/ukraine_alarm/coordinator.py
"""The ukraine_alarm component.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any import aiohttp from aiohttp import ClientSession from uasiren.client import Client from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_REGI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ukraine_alarm/__init__.py
homeassistant/components/ukraine_alarm/__init__.py
"""The ukraine_alarm component.""" from __future__ import annotations import logging from typing import TYPE_CHECKING import aiohttp from uasiren.client import Client from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_NAME, CONF_REGION from homeassistant.core import HomeAssist...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ukraine_alarm/config_flow.py
homeassistant/components/ukraine_alarm/config_flow.py
"""Config flow for Ukraine Alarm.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any import aiohttp from uasiren.client import Client import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_NAME, 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/device_tracker/device_trigger.py
homeassistant/components/device_tracker/device_trigger.py
"""Provides device automations for Device Tracker.""" from __future__ import annotations from operator import attrgetter from typing import Final import voluptuous as vol from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.components.zone import DOMAIN as DOMAIN_ZONE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/device_tracker/device_condition.py
homeassistant/components/device_tracker/device_condition.py
"""Provides device automations for Device tracker.""" from __future__ import annotations import voluptuous as vol from homeassistant.const import ( ATTR_ENTITY_ID, CONF_CONDITION, CONF_DEVICE_ID, CONF_DOMAIN, CONF_ENTITY_ID, CONF_TYPE, STATE_HOME, ) 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/device_tracker/config_entry.py
homeassistant/components/device_tracker/config_entry.py
"""Code to set up a device tracker platform using a config entry.""" from __future__ import annotations import asyncio from typing import final from propcache.api import cached_property from homeassistant.components import zone from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/device_tracker/legacy.py
homeassistant/components/device_tracker/legacy.py
"""Legacy device tracker classes.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine, Sequence from datetime import datetime, timedelta import hashlib from types import ModuleType from typing import Any, Final, Protocol, final import attr from propcache.api import ca...
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/device_tracker/const.py
homeassistant/components/device_tracker/const.py
"""Device tracker constants.""" from __future__ import annotations from datetime import timedelta from enum import StrEnum import logging from typing import Final from homeassistant.util.signal_type import SignalType LOGGER: Final = logging.getLogger(__package__) DOMAIN: Final = "device_tracker" ENTITY_ID_FORMAT: ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/device_tracker/__init__.py
homeassistant/components/device_tracker/__init__.py
"""Provide functionality to keep track of devices.""" from __future__ import annotations from homeassistant.const import ATTR_GPS_ACCURACY, STATE_HOME # noqa: F401 from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ConfigType from homeassistant.loader import bind_hass from .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/device_tracker/trigger.py
homeassistant/components/device_tracker/trigger.py
"""Provides triggers for device_trackers.""" from homeassistant.const import STATE_HOME from homeassistant.core import HomeAssistant from homeassistant.helpers.trigger import ( Trigger, make_entity_origin_state_trigger, make_entity_target_state_trigger, ) from .const import DOMAIN TRIGGERS: dict[str, typ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nederlandse_spoorwegen/diagnostics.py
homeassistant/components/nederlandse_spoorwegen/diagnostics.py
"""Diagnostics support for Nederlandse Spoorwegen.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_API_KEY from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry 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/nederlandse_spoorwegen/binary_sensor.py
homeassistant/components/nederlandse_spoorwegen/binary_sensor.py
"""Support for Nederlandse Spoorwegen public transport.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime import logging from ns_api import Trip from homeassistant.components.binary_sensor import ( BinarySensorEntity, B...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nederlandse_spoorwegen/const.py
homeassistant/components/nederlandse_spoorwegen/const.py
"""Constants for the Nederlandse Spoorwegen integration.""" from datetime import timedelta from zoneinfo import ZoneInfo DOMAIN = "nederlandse_spoorwegen" INTEGRATION_TITLE = "Nederlandse Spoorwegen" SUBENTRY_TYPE_ROUTE = "route" ROUTE_MODEL = "Route" # Europe/Amsterdam timezone for Dutch rail API expectations AMS_TZ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nederlandse_spoorwegen/coordinator.py
homeassistant/components/nederlandse_spoorwegen/coordinator.py
"""DataUpdateCoordinator for Nederlandse Spoorwegen.""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime import logging from ns_api import NSAPI, Trip from requests.exceptions import ConnectionError, HTTPError, Timeout from homeassistant.config_entries import 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/nederlandse_spoorwegen/sensor.py
homeassistant/components/nederlandse_spoorwegen/sensor.py
"""Support for Nederlandse Spoorwegen public transport.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime import logging from typing import Any from ns_api import Trip import voluptuous as vol from homeassistant.components.sens...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nederlandse_spoorwegen/__init__.py
homeassistant/components/nederlandse_spoorwegen/__init__.py
"""The Nederlandse Spoorwegen integration.""" from __future__ import annotations import logging from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .const import SUBENTRY_TYPE_ROUTE from .coordinator import NSConfigEntry, NSDataUpdateCoordinator _LOGGER = logging.getLogger(__...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nederlandse_spoorwegen/config_flow.py
homeassistant/components/nederlandse_spoorwegen/config_flow.py
"""Config flow for Nederlandse Spoorwegen integration.""" from __future__ import annotations import logging from typing import Any from ns_api import NSAPI, Station from requests.exceptions import ( ConnectionError as RequestsConnectionError, HTTPError, Timeout, ) import voluptuous as vol 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/wiz/diagnostics.py
homeassistant/components/wiz/diagnostics.py
"""Diagnostics support for WiZ.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from . import WizConfigEntry TO_REDACT = {"roomId", "homeId"} async def async_get_config_entry_diagnostics( ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/discovery.py
homeassistant/components/wiz/discovery.py
"""The wiz integration discovery.""" from __future__ import annotations import asyncio from dataclasses import asdict import logging from pywizlight.discovery import DiscoveredBulb, find_wizlights from homeassistant import config_entries from homeassistant.components import network from homeassistant.core import 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/wiz/models.py
homeassistant/components/wiz/models.py
"""WiZ integration models.""" from __future__ import annotations from dataclasses import dataclass from pywizlight import wizlight from homeassistant.helpers.update_coordinator import DataUpdateCoordinator @dataclass class WizData: """Data for the wiz integration.""" coordinator: DataUpdateCoordinator[fl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/switch.py
homeassistant/components/wiz/switch.py
"""WiZ integration switch platform.""" from __future__ import annotations from typing import Any from pywizlight import PilotBuilder from pywizlight.bulblibrary import BulbClass from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_pl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/number.py
homeassistant/components/wiz/number.py
"""Support for WiZ effect speed numbers.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import cast from pywizlight import wizlight from homeassistant.components.number import ( NumberEntity, NumberEntityDescription, Nu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/binary_sensor.py
homeassistant/components/wiz/binary_sensor.py
"""WiZ integration binary sensor platform.""" from __future__ import annotations from collections.abc import Callable from pywizlight.bulb import PIR_SOURCE from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.const import Platform 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/wiz/const.py
homeassistant/components/wiz/const.py
"""Constants for the WiZ Platform integration.""" from datetime import timedelta from pywizlight.exceptions import ( WizLightConnectionError, WizLightNotKnownBulb, WizLightTimeOutError, ) DOMAIN = "wiz" DEFAULT_NAME = "WiZ" DISCOVER_SCAN_TIMEOUT = 10 DISCOVERY_INTERVAL = timedelta(minutes=15) WIZ_EXCEP...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/utils.py
homeassistant/components/wiz/utils.py
"""WiZ utils.""" from __future__ import annotations from pywizlight import BulbType from pywizlight.bulblibrary import BulbClass from .const import DEFAULT_NAME def _short_mac(mac: str) -> str: """Get the short mac address from the full mac.""" return mac.replace(":", "").upper()[-6:] def name_from_bulb_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/fan.py
homeassistant/components/wiz/fan.py
"""WiZ integration fan platform.""" from __future__ import annotations import math from typing import Any, ClassVar from pywizlight.bulblibrary import BulbType, Features from homeassistant.components.fan import ( DIRECTION_FORWARD, DIRECTION_REVERSE, 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/wiz/sensor.py
homeassistant/components/wiz/sensor.py
"""Support for WiZ sensors.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( SIGNAL_STRENGTH_DECIBELS_MILLIWATT, EntityCategory, UnitOfPower, )...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/__init__.py
homeassistant/components/wiz/__init__.py
"""WiZ Platform integration.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from pywizlight import PilotParser, wizlight from pywizlight.bulb import PIR_SOURCE from homeassistant.config_entries import ConfigEntry from homeassistant.const import 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/wiz/entity.py
homeassistant/components/wiz/entity.py
"""WiZ integration entities.""" from __future__ import annotations from abc import abstractmethod from typing import Any from pywizlight.bulblibrary import BulbType from homeassistant.const import ATTR_HW_VERSION, ATTR_MODEL from homeassistant.core import callback from homeassistant.helpers.device_registry import 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/wiz/light.py
homeassistant/components/wiz/light.py
"""WiZ integration light platform.""" from __future__ import annotations from typing import Any from pywizlight import PilotBuilder from pywizlight.bulblibrary import BulbClass, BulbType, Features from pywizlight.scenes import get_id_from_scene_name from homeassistant.components.light import ( ATTR_BRIGHTNESS, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wiz/config_flow.py
homeassistant/components/wiz/config_flow.py
"""Config flow for WiZ Platform.""" from __future__ import annotations import logging from typing import Any from pywizlight import wizlight from pywizlight.discovery import DiscoveredBulb from pywizlight.exceptions import WizLightConnectionError, WizLightTimeOutError import voluptuous as vol from homeassistant.com...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_network/image.py
homeassistant/components/devolo_home_network/image.py
"""Platform for image integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from functools import partial from devolo_plc_api import wifi_qr_code from devolo_plc_api.device_api import WifiGuestAccessGet from homeassistant.components.image import 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/devolo_home_network/diagnostics.py
homeassistant/components/devolo_home_network/diagnostics.py
"""Diagnostics support for devolo Home Network.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_PASSWORD from homeassistant.core import HomeAssistant from .coordinator import DevoloHomeNetworkConfigE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_network/device_tracker.py
homeassistant/components/devolo_home_network/device_tracker.py
"""Platform for device tracker integration.""" from __future__ import annotations from devolo_plc_api.device import Device from devolo_plc_api.device_api import ConnectedStationInfo from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, ScannerEntity, ) from homeassistant.cons...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_network/switch.py
homeassistant/components/devolo_home_network/switch.py
"""Platform for switch integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from devolo_plc_api.device import Device from devolo_plc_api.device_api import WifiGuestAccessGet from devolo_plc_api.exceptions.device 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/devolo_home_network/binary_sensor.py
homeassistant/components/devolo_home_network/binary_sensor.py
"""Platform for binary sensor integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from devolo_plc_api.plcnet_api import LogicalNetwork from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, B...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_network/const.py
homeassistant/components/devolo_home_network/const.py
"""Constants for the devolo Home Network integration.""" from datetime import timedelta from devolo_plc_api.device_api import ( WIFI_BAND_2G, WIFI_BAND_5G, WIFI_VAP_GUEST_AP, WIFI_VAP_MAIN_AP, ) DOMAIN = "devolo_home_network" PRODUCT = "product" SERIAL_NUMBER = "serial_number" TITLE = "title" FIRMWA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_network/coordinator.py
homeassistant/components/devolo_home_network/coordinator.py
"""Base coordinator.""" from asyncio import Semaphore from dataclasses import dataclass from datetime import timedelta from logging import Logger from typing import Any from devolo_plc_api import Device from devolo_plc_api.device_api import ( ConnectedStationInfo, NeighborAPInfo, UpdateFirmwareCheck, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_network/update.py
homeassistant/components/devolo_home_network/update.py
"""Platform for update integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from devolo_plc_api.device import Device from devolo_plc_api.device_api import UpdateFirmwareCheck from devolo_plc_api.exceptions.device 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/devolo_home_network/sensor.py
homeassistant/components/devolo_home_network/sensor.py
"""Platform for sensor integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from enum import StrEnum from typing import Any from devolo_plc_api.device_api import ConnectedStationInfo, NeighborAPInfo from 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/devolo_home_network/__init__.py
homeassistant/components/devolo_home_network/__init__.py
"""The devolo Home Network integration.""" from __future__ import annotations import logging from typing import Any from devolo_plc_api import Device from devolo_plc_api.exceptions.device import DeviceNotFound from homeassistant.components import zeroconf from homeassistant.const import ( CONF_IP_ADDRESS, 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/devolo_home_network/entity.py
homeassistant/components/devolo_home_network/entity.py
"""Generic platform.""" from __future__ import annotations from devolo_plc_api.device_api import ( ConnectedStationInfo, NeighborAPInfo, WifiGuestAccessGet, ) from devolo_plc_api.plcnet_api import DataRate, LogicalNetwork from yarl import URL from homeassistant.const import ATTR_CONNECTIONS from homeassi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false