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/energy/const.py
homeassistant/components/energy/const.py
"""Constants for the Energy integration.""" DOMAIN = "energy"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/energy/validate.py
homeassistant/components/energy/validate.py
"""Validate the energy preferences provide valid data.""" from __future__ import annotations from collections.abc import Mapping, Sequence import dataclasses import functools from homeassistant.components import recorder, sensor from homeassistant.const import ( ATTR_DEVICE_CLASS, STATE_UNAVAILABLE, STAT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/energy/sensor.py
homeassistant/components/energy/sensor.py
"""Helper sensor for calculating utility costs.""" from __future__ import annotations import asyncio from collections.abc import Callable, Mapping import copy from dataclasses import dataclass import logging from typing import Any, Final, Literal, cast from homeassistant.components.sensor import ( ATTR_LAST_RESE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/energy/__init__.py
homeassistant/components/energy/__init__.py
"""The Energy integration.""" from __future__ import annotations from homeassistant.components import frontend from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.typing import ConfigType ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/energy/types.py
homeassistant/components/energy/types.py
"""Types for the energy platform.""" from __future__ import annotations from collections.abc import Awaitable, Callable from typing import Protocol, TypedDict from homeassistant.core import HomeAssistant class SolarForecastType(TypedDict): """Return value for solar forecast.""" wh_hours: dict[str, float |...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/energy/data.py
homeassistant/components/energy/data.py
"""Energy data.""" from __future__ import annotations import asyncio from collections import Counter from collections.abc import Awaitable, Callable from typing import Any, Literal, NotRequired, TypedDict import voluptuous as vol from homeassistant.core import HomeAssistant, callback from homeassistant.helpers impo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/diagnostics.py
homeassistant/components/ohme/diagnostics.py
"""Provides diagnostics for Ohme.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from .coordinator import OhmeConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, config_entry: OhmeConfigEntry ) -> dict[str, Any]: """Retu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/services.py
homeassistant/components/ohme/services.py
"""Ohme services.""" from typing import Final from ohme import OhmeApiClient import voluptuous as vol from homeassistant.config_entries import ConfigEntryState from homeassistant.core import ( HomeAssistant, ServiceCall, ServiceResponse, SupportsResponse, callback, ) from homeassistant.exceptions...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/switch.py
homeassistant/components/ohme/switch.py
"""Platform for switch.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from ohme import ApiException, OhmeApiClient from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.const import EntityCategory from homeas...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/number.py
homeassistant/components/ohme/number.py
"""Platform for number.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from ohme import ApiException, OhmeApiClient from homeassistant.components.number import NumberEntity, NumberEntityDescription from homeassistant.const import PERCENTAGE, UnitOfTime 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/ohme/const.py
homeassistant/components/ohme/const.py
"""Component constants.""" from homeassistant.const import Platform DOMAIN = "ohme" PLATFORMS = [ Platform.BUTTON, Platform.NUMBER, Platform.SELECT, Platform.SENSOR, Platform.SWITCH, Platform.TIME, ]
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/coordinator.py
homeassistant/components/ohme/coordinator.py
"""Ohme coordinators.""" from __future__ import annotations from abc import abstractmethod from dataclasses import dataclass from datetime import timedelta import logging from ohme import ApiException, OhmeApiClient from homeassistant.config_entries import ConfigEntry 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/ohme/time.py
homeassistant/components/ohme/time.py
"""Platform for time.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from datetime import time from typing import Any from ohme import ApiException, OhmeApiClient from homeassistant.components.time import TimeEntity, TimeEntityDescription from homeassistant.core import 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/ohme/sensor.py
homeassistant/components/ohme/sensor.py
"""Platform for sensor.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from ohme import ChargerStatus, OhmeApiClient 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/ohme/__init__.py
homeassistant/components/ohme/__init__.py
"""Set up ohme integration.""" from ohme import ApiException, AuthException, OhmeApiClient from homeassistant.const import CONF_EMAIL, CONF_PASSWORD from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady from homeassistant.helpers import config_val...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/entity.py
homeassistant/components/ohme/entity.py
"""Base class for entities.""" from collections.abc import Callable from dataclasses import dataclass from ohme import OhmeApiClient from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import Coordinator...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/button.py
homeassistant/components/ohme/button.py
"""Platform for button.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from ohme import ApiException, ChargerStatus, OhmeApiClient from homeassistant.components.button import ButtonEntity, ButtonEntityDescription 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/ohme/select.py
homeassistant/components/ohme/select.py
"""Platform for Ohme selects.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any, Final from ohme import ApiException, ChargerMode, OhmeApiClient from homeassistant.components.select import SelectEntity, SelectEntityDescript...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ohme/config_flow.py
homeassistant/components/ohme/config_flow.py
"""Config flow for ohme integration.""" from collections.abc import Mapping from typing import Any from ohme import ApiException, AuthException, OhmeApiClient import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_EMAIL, CONF_PASSWORD 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/opensky/const.py
homeassistant/components/opensky/const.py
"""OpenSky constants.""" import logging from homeassistant.const import Platform LOGGER = logging.getLogger(__package__) PLATFORMS = [Platform.SENSOR] DEFAULT_NAME = "OpenSky" DOMAIN = "opensky" MANUFACTURER = "OpenSky Network" CONF_ALTITUDE = "altitude" CONF_CONTRIBUTING_USER = "contributing_user" ATTR_ICAO24 = "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/opensky/coordinator.py
homeassistant/components/opensky/coordinator.py
"""DataUpdateCoordinator for the OpenSky integration.""" from __future__ import annotations from datetime import timedelta from python_opensky import OpenSky, OpenSkyError, StateVector from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ATTR_LATITUDE, ATTR_LONGITUDE, 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/opensky/sensor.py
homeassistant/components/opensky/sensor.py
"""Sensor for the Open Sky Network.""" from __future__ import annotations from homeassistant.components.sensor import SensorEntity, SensorStateClass from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry import DeviceEntryType, Devi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opensky/__init__.py
homeassistant/components/opensky/__init__.py
"""The opensky component.""" from __future__ import annotations from aiohttp import BasicAuth from python_opensky import OpenSky from python_opensky.exceptions import OpenSkyError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/opensky/config_flow.py
homeassistant/components/opensky/config_flow.py
"""Config flow for OpenSky integration.""" from __future__ import annotations from typing import Any from aiohttp import BasicAuth from python_opensky import OpenSky from python_opensky.exceptions import OpenSkyUnauthenticatedError import voluptuous as vol from homeassistant.config_entries import ( ConfigEntry,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/flock/__init__.py
homeassistant/components/flock/__init__.py
"""The flock 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/flock/notify.py
homeassistant/components/flock/notify.py
"""Flock platform for notify component.""" from __future__ import annotations import asyncio from http import HTTPStatus import logging import voluptuous as vol from homeassistant.components.notify import ( PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA, BaseNotificationService, ) 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/seven_segments/image_processing.py
homeassistant/components/seven_segments/image_processing.py
"""Optical character recognition processing of seven segments displays.""" from __future__ import annotations import io import logging import os import subprocess from PIL import Image import voluptuous as vol from homeassistant.components.image_processing import ( PLATFORM_SCHEMA as IMAGE_PROCESSING_PLATFORM_S...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/seven_segments/__init__.py
homeassistant/components/seven_segments/__init__.py
"""The seven_segments 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/solaredge/const.py
homeassistant/components/solaredge/const.py
"""Constants for the SolarEdge Monitoring API.""" from datetime import timedelta import logging from typing import Final DOMAIN = "solaredge" LOGGER = logging.getLogger(__package__) DATA_API_CLIENT: Final = "api_client" DATA_MODULES_COORDINATOR: Final = "modules_coordinator" # Config for solaredge monitoring api r...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solaredge/coordinator.py
homeassistant/components/solaredge/coordinator.py
"""Provides the data update coordinators for SolarEdge.""" from __future__ import annotations from abc import ABC, abstractmethod from collections.abc import Iterable from datetime import date, datetime, timedelta from typing import TYPE_CHECKING, Any from aiosolaredge import SolarEdge from solaredge_web import Ener...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solaredge/sensor.py
homeassistant/components/solaredge/sensor.py
"""Support for SolarEdge Monitoring API.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from aiosolaredge import SolarEdge 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/solaredge/__init__.py
homeassistant/components/solaredge/__init__.py
"""The SolarEdge integration.""" from __future__ import annotations import socket from aiohttp import ClientError from aiosolaredge import SolarEdge from homeassistant.const import CONF_API_KEY, CONF_USERNAME, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solaredge/types.py
homeassistant/components/solaredge/types.py
"""Typing for the SolarEdge Monitoring API.""" from __future__ import annotations from typing import TypedDict from aiosolaredge import SolarEdge from homeassistant.config_entries import ConfigEntry from .coordinator import SolarEdgeModulesCoordinator type SolarEdgeConfigEntry = ConfigEntry[SolarEdgeData] class...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solaredge/config_flow.py
homeassistant/components/solaredge/config_flow.py
"""Config flow for the SolarEdge platform.""" from __future__ import annotations import socket from typing import TYPE_CHECKING, Any from aiohttp import ClientError, ClientResponseError import aiosolaredge from solaredge_web import SolarEdgeWeb import voluptuous as vol from homeassistant.config_entries 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/unifi_direct/device_tracker.py
homeassistant/components/unifi_direct/device_tracker.py
"""Support for Unifi AP direct access.""" from __future__ import annotations import logging from typing import Any from unifi_ap import UniFiAP, UniFiAPConnectionException, UniFiAPDataException import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, 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/unifi_direct/__init__.py
homeassistant/components/unifi_direct/__init__.py
"""The unifi_direct 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/renault/diagnostics.py
homeassistant/components/renault/diagnostics.py
"""Diagnostics support for Renault.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry impo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/device_tracker.py
homeassistant/components/renault/device_tracker.py
"""Support for Renault device trackers.""" from __future__ import annotations from dataclasses import dataclass from renault_api.kamereon.models import KamereonVehicleLocationData from homeassistant.components.device_tracker import ( TrackerEntity, TrackerEntityDescription, ) from homeassistant.core 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/renault/services.py
homeassistant/components/renault/services.py
"""Support for Renault services.""" from __future__ import annotations from datetime import datetime import logging from typing import TYPE_CHECKING, Any import voluptuous as vol from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.exceptions import ServiceValidationError 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/renault/binary_sensor.py
homeassistant/components/renault/binary_sensor.py
"""Support for Renault binary sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from renault_api.kamereon.enums import ChargeState, PlugState from renault_api.kamereon.models import KamereonVehicleBatteryStatusData from homeassistant.components.bin...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/const.py
homeassistant/components/renault/const.py
"""Constants for the Renault component.""" from homeassistant.const import Platform DOMAIN = "renault" CONF_LOCALE = "locale" CONF_KAMEREON_ACCOUNT_ID = "kamereon_account_id" # normal number of allowed calls per hour to the API # for a single car and the 7 coordinator, it is a scan every 7mn MAX_CALLS_PER_HOURS = 6...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/coordinator.py
homeassistant/components/renault/coordinator.py
"""Proxy to handle account communication with Renault servers.""" from __future__ import annotations import asyncio from collections.abc import Awaitable, Callable from datetime import timedelta import logging from typing import TYPE_CHECKING, TypeVar from renault_api.kamereon.exceptions import ( AccessDeniedExc...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/sensor.py
homeassistant/components/renault/sensor.py
"""Support for Renault sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from typing import TYPE_CHECKING, Any, Generic, cast from renault_api.kamereon.models import ( KamereonVehicleBatteryStatusData, KamereonV...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/__init__.py
homeassistant/components/renault/__init__.py
"""Support for Renault devices.""" import aiohttp from renault_api.gigya.exceptions import GigyaException from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthF...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/entity.py
homeassistant/components/renault/entity.py
"""Base classes for Renault entities.""" from __future__ import annotations from dataclasses import dataclass from typing import cast from homeassistant.helpers.entity import Entity, EntityDescription from homeassistant.helpers.typing import StateType from homeassistant.helpers.update_coordinator import CoordinatorE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/renault_vehicle.py
homeassistant/components/renault/renault_vehicle.py
"""Proxy to handle account communication with Renault servers.""" from __future__ import annotations import asyncio from collections.abc import Awaitable, Callable, Coroutine from dataclasses import dataclass from datetime import datetime, timedelta from functools import wraps import logging from typing import TYPE_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/renault/button.py
homeassistant/components/renault/button.py
"""Support for Renault button entities.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from homeassistant.components.button import ButtonEntity, ButtonEntityDescription from homeassistant.core import HomeAssistant 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/renault/select.py
homeassistant/components/renault/select.py
"""Support for Renault sensors.""" from __future__ import annotations from dataclasses import dataclass from typing import cast from renault_api.kamereon.models import KamereonVehicleBatteryStatusData from homeassistant.components.select import SelectEntity, SelectEntityDescription 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/renault/renault_hub.py
homeassistant/components/renault/renault_hub.py
"""Proxy to handle account communication with Renault servers.""" from __future__ import annotations import asyncio from datetime import timedelta import logging from typing import TYPE_CHECKING from renault_api.gigya.exceptions import InvalidCredentialsException from renault_api.kamereon.models import KamereonVehic...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/renault/config_flow.py
homeassistant/components/renault/config_flow.py
"""Config flow to configure Renault component.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any import aiohttp from renault_api.const import AVAILABLE_LOCALES from renault_api.gigya.exceptions import GigyaException import voluptuous as vol from homeassi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openerz/sensor.py
homeassistant/components/openerz/sensor.py
"""Support for OpenERZ API for Zurich city waste disposal system.""" from __future__ import annotations from datetime import timedelta from openerz_api.main import OpenERZConnector import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openerz/__init__.py
homeassistant/components/openerz/__init__.py
"""The Open ERZ API integration.""" DOMAIN = "sensor"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/alarmdecoder/binary_sensor.py
homeassistant/components/alarmdecoder/binary_sensor.py
"""Support for AlarmDecoder zone states- represented as binary sensors.""" import logging from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/alarmdecoder/const.py
homeassistant/components/alarmdecoder/const.py
"""Constants for the AlarmDecoder component.""" CONF_ALT_NIGHT_MODE = "alt_night_mode" CONF_AUTO_BYPASS = "auto_bypass" CONF_CODE_ARM_REQUIRED = "code_arm_required" CONF_DEVICE_BAUD = "device_baudrate" CONF_DEVICE_PATH = "device_path" CONF_RELAY_ADDR = "zone_relayaddr" CONF_RELAY_CHAN = "zone_relaychan" CONF_ZONE_LOOP...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/alarmdecoder/sensor.py
homeassistant/components/alarmdecoder/sensor.py
"""Support for AlarmDecoder sensors (Shows Panel Display).""" from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback 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/alarmdecoder/__init__.py
homeassistant/components/alarmdecoder/__init__.py
"""Support for AlarmDecoder devices.""" from collections.abc import Callable from dataclasses import dataclass from datetime import timedelta import logging from adext import AdExt from alarmdecoder.devices import SerialDevice, SocketDevice from alarmdecoder.util import NoDeviceError from homeassistant.config_entrie...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/alarmdecoder/entity.py
homeassistant/components/alarmdecoder/entity.py
"""Support for AlarmDecoder-based alarm control panels entity.""" from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity import Entity from .const import DOMAIN class AlarmDecoderEntity(Entity): """Define a base AlarmDecoder entity.""" _attr_has_entity_name = True ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/alarmdecoder/alarm_control_panel.py
homeassistant/components/alarmdecoder/alarm_control_panel.py
"""Support for AlarmDecoder-based alarm control panels (Honeywell/DSC).""" from __future__ import annotations import voluptuous as vol from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPanelEntityFeature, AlarmControlPanelState, CodeFormat, ) from homeass...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/alarmdecoder/config_flow.py
homeassistant/components/alarmdecoder/config_flow.py
"""Config flow for AlarmDecoder.""" from __future__ import annotations import logging from typing import Any from adext import AdExt from alarmdecoder.devices import SerialDevice, SocketDevice from alarmdecoder.util import NoDeviceError import voluptuous as vol from homeassistant.components.binary_sensor 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/anwb_energie/__init__.py
homeassistant/components/anwb_energie/__init__.py
"""Virtual integration: ANWB Energie."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_aqara/cover.py
homeassistant/components/xiaomi_aqara/cover.py
"""Support for Xiaomi curtain.""" from typing import Any from xiaomi_gateway import XiaomiGateway from homeassistant.components.cover import ATTR_POSITION, CoverEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import 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/xiaomi_aqara/switch.py
homeassistant/components/xiaomi_aqara/switch.py
"""Support for Xiaomi Aqara binary sensors.""" import logging from typing import Any from xiaomi_gateway import XiaomiGateway from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry 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/xiaomi_aqara/binary_sensor.py
homeassistant/components/xiaomi_aqara/binary_sensor.py
"""Support for Xiaomi aqara binary sensors.""" import logging from typing import Any from xiaomi_gateway import XiaomiGateway from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core 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/xiaomi_aqara/lock.py
homeassistant/components/xiaomi_aqara/lock.py
"""Support for Xiaomi Aqara locks.""" from __future__ import annotations from typing import Any from xiaomi_gateway import XiaomiGateway from homeassistant.components.lock import LockEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback 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/xiaomi_aqara/const.py
homeassistant/components/xiaomi_aqara/const.py
"""Constants of the Xiaomi Aqara component.""" DOMAIN = "xiaomi_aqara" GATEWAYS_KEY = "gateways" LISTENER_KEY = "listener" KEY_UNSUB_STOP = "unsub_stop" KEY_SETUP_LOCK = "setup_lock" ZEROCONF_GATEWAY = "lumi-gateway" ZEROCONF_ACPARTNER = "lumi-acpartner" CONF_INTERFACE = "interface" CONF_KEY = "key" CONF_SID = "sid...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_aqara/sensor.py
homeassistant/components/xiaomi_aqara/sensor.py
"""Support for Xiaomi Aqara sensors.""" from __future__ import annotations import logging from typing import Any from xiaomi_gateway import XiaomiGateway from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.con...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_aqara/__init__.py
homeassistant/components/xiaomi_aqara/__init__.py
"""Support for Xiaomi Gateways.""" import asyncio import logging import voluptuous as vol from xiaomi_gateway import AsyncXiaomiGatewayMulticast, XiaomiGateway from homeassistant.components import persistent_notification from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( 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/xiaomi_aqara/entity.py
homeassistant/components/xiaomi_aqara/entity.py
"""Support for Xiaomi Gateways.""" from datetime import timedelta import logging from typing import TYPE_CHECKING, Any from xiaomi_gateway import XiaomiGateway from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_BATTERY_LEVEL, ATTR_VOLTAGE, CONF_MAC from homeassistant.core impor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_aqara/light.py
homeassistant/components/xiaomi_aqara/light.py
"""Support for Xiaomi Gateway Light.""" import binascii import logging import struct from typing import Any from xiaomi_gateway import XiaomiGateway from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_HS_COLOR, ColorMode, LightEntity, ) from homeassistant.config_entries import ConfigEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_aqara/config_flow.py
homeassistant/components/xiaomi_aqara/config_flow.py
"""Config flow to configure Xiaomi Aqara.""" import logging from socket import gaierror from typing import Any import voluptuous as vol from xiaomi_gateway import MULTICAST_PORT, XiaomiGateway, XiaomiGatewayDiscovery from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const impor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_control/diagnostics.py
homeassistant/components/devolo_home_control/diagnostics.py
"""Diagnostics support for devolo Home Control.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant from . import DevoloHomeControlCon...
python
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_control/cover.py
homeassistant/components/devolo_home_control/cover.py
"""Platform for cover integration.""" from __future__ import annotations from typing import Any from homeassistant.components.cover import ( CoverDeviceClass, CoverEntity, CoverEntityFeature, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEn...
python
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_control/switch.py
homeassistant/components/devolo_home_control/switch.py
"""Platform for switch integration.""" from __future__ import annotations from typing import Any from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant 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/devolo_home_control/exceptions.py
homeassistant/components/devolo_home_control/exceptions.py
"""Custom exceptions for the devolo_home_control integration.""" from homeassistant.exceptions import HomeAssistantError class CredentialsInvalid(HomeAssistantError): """Given credentials are invalid.""" class UuidChanged(HomeAssistantError): """UUID of the user changed."""
python
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_control/subscriber.py
homeassistant/components/devolo_home_control/subscriber.py
"""Subscriber for devolo home control API publisher.""" from collections.abc import Callable import logging _LOGGER = logging.getLogger(__name__) class Subscriber: """Subscriber class for the publisher in mprm websocket class.""" def __init__(self, name: str, callback: Callable) -> None: """Initiat...
python
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_control/binary_sensor.py
homeassistant/components/devolo_home_control/binary_sensor.py
"""Platform for binary sensor integration.""" from __future__ import annotations from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeass...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_control/const.py
homeassistant/components/devolo_home_control/const.py
"""Constants for the devolo_home_control integration.""" from homeassistant.const import Platform DOMAIN = "devolo_home_control" PLATFORMS = [ Platform.BINARY_SENSOR, Platform.CLIMATE, Platform.COVER, Platform.LIGHT, Platform.SENSOR, Platform.SIREN, Platform.SWITCH, ] SUPPORTED_MODEL_TYPES...
python
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_control/siren.py
homeassistant/components/devolo_home_control/siren.py
"""Platform for siren integration.""" from typing import Any from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.siren import ATTR_TONE, SirenEntity, SirenEntityFeature from homeassistant.core import HomeAssistant from home...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_control/sensor.py
homeassistant/components/devolo_home_control/sensor.py
"""Platform for sensor integration.""" from __future__ import annotations from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorStateClass, ) 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/devolo_home_control/__init__.py
homeassistant/components/devolo_home_control/__init__.py
"""The devolo_home_control integration.""" from __future__ import annotations import asyncio from collections.abc import Mapping from functools import partial import logging from typing import Any from devolo_home_control_api.exceptions.gateway import GatewayOfflineError from devolo_home_control_api.homecontrol impo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/devolo_home_control/entity.py
homeassistant/components/devolo_home_control/entity.py
"""Base class for a device entity integrated in devolo Home Control.""" from __future__ import annotations import logging from urllib.parse import urlparse from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.sensor 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/devolo_home_control/climate.py
homeassistant/components/devolo_home_control/climate.py
"""Platform for climate integration.""" from __future__ import annotations from typing import Any from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.climate import ( ATTR_TEMPERATURE, ClimateEntity, ClimateEnt...
python
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_control/light.py
homeassistant/components/devolo_home_control/light.py
"""Platform for light integration.""" from __future__ import annotations from typing import Any from devolo_home_control_api.devices.zwave import Zwave from devolo_home_control_api.homecontrol import HomeControl from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity 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/devolo_home_control/config_flow.py
homeassistant/components/devolo_home_control/config_flow.py
"""Config flow to configure the devolo home control integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any import voluptuous as vol from homeassistant.config_entries import SOURCE_REAUTH, ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_PASSWOR...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/filesize/const.py
homeassistant/components/filesize/const.py
"""The filesize constants.""" from homeassistant.const import Platform DOMAIN = "filesize" PLATFORMS = [Platform.SENSOR]
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/filesize/coordinator.py
homeassistant/components/filesize/coordinator.py
"""Coordinator for monitoring the size of a file.""" from __future__ import annotations from datetime import datetime, timedelta import logging import os import pathlib from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_FILE_PATH from homeassistant.core import HomeAssistant 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/filesize/sensor.py
homeassistant/components/filesize/sensor.py
"""Sensor for monitoring the size of a file.""" from __future__ import annotations from datetime import datetime import logging from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import EntityCategory, U...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/filesize/__init__.py
homeassistant/components/filesize/__init__.py
"""The filesize component.""" from __future__ import annotations from homeassistant.core import HomeAssistant from .const import PLATFORMS from .coordinator import FileSizeConfigEntry, FileSizeCoordinator async def async_setup_entry(hass: HomeAssistant, entry: FileSizeConfigEntry) -> bool: """Set up from a 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/filesize/config_flow.py
homeassistant/components/filesize/config_flow.py
"""The filesize config flow.""" from __future__ import annotations import logging import pathlib from typing import Any import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_FILE_PATH from homeassistant.core import HomeAssistant from .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/elkm1/discovery.py
homeassistant/components/elkm1/discovery.py
"""The elkm1 integration discovery.""" from __future__ import annotations import asyncio from dataclasses import asdict import logging from elkm1_lib.discovery import AIOELKDiscovery, ElkSystem from homeassistant import config_entries from homeassistant.components import network from homeassistant.core import 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/elkm1/services.py
homeassistant/components/elkm1/services.py
"""Support the ElkM1 Gold and ElkM1 EZ8 alarm/integration panels.""" from __future__ import annotations from elkm1_lib.elk import Elk, Panel import voluptuous as vol from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/elkm1/models.py
homeassistant/components/elkm1/models.py
"""The elkm1 integration models.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from elkm1_lib import Elk @dataclass(slots=True) class ELKM1Data: """Data for the elkm1 integration.""" elk: Elk prefix: str mac: str | None auto_configure: bool ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/elkm1/switch.py
homeassistant/components/elkm1/switch.py
"""Support for control of ElkM1 outputs (relays).""" from __future__ import annotations from typing import Any from elkm1_lib.const import ThermostatMode, ThermostatSetting from elkm1_lib.elements import Element from elkm1_lib.elk import Elk from elkm1_lib.outputs import Output from elkm1_lib.thermostats import Ther...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/elkm1/binary_sensor.py
homeassistant/components/elkm1/binary_sensor.py
"""Support for control of ElkM1 binary sensors.""" from __future__ import annotations from typing import Any from elkm1_lib.const import ZoneLogicalStatus, ZoneType from elkm1_lib.elements import Element from elkm1_lib.zones import Zone from homeassistant.components.binary_sensor import BinarySensorEntity 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/elkm1/const.py
homeassistant/components/elkm1/const.py
"""Support the ElkM1 Gold and ElkM1 EZ8 alarm/integration panels.""" from datetime import timedelta from elkm1_lib.const import Max import voluptuous as vol from homeassistant.const import ATTR_CODE, CONF_ZONE from homeassistant.helpers.typing import VolDictType DOMAIN = "elkm1" LOGIN_TIMEOUT = 20 CONF_AUTO_CONFI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/elkm1/sensor.py
homeassistant/components/elkm1/sensor.py
"""Support for control of ElkM1 sensors.""" from __future__ import annotations from typing import Any from elkm1_lib.const import SettingFormat, ZoneType from elkm1_lib.counters import Counter from elkm1_lib.elements import Element from elkm1_lib.keypads import Keypad from elkm1_lib.panel import Panel from elkm1_lib...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/elkm1/__init__.py
homeassistant/components/elkm1/__init__.py
"""Support the ElkM1 Gold and ElkM1 EZ8 alarm/integration panels.""" from __future__ import annotations import asyncio import logging import re from typing import Any from elkm1_lib.elements import Element from elkm1_lib.elk import Elk from elkm1_lib.util import parse_url import voluptuous as vol 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/elkm1/entity.py
homeassistant/components/elkm1/entity.py
"""Support the ElkM1 Gold and ElkM1 EZ8 alarm/integration panels.""" from __future__ import annotations from collections.abc import Iterable from enum import Enum import logging from typing import Any from elkm1_lib.elements import Element from elkm1_lib.elk import Elk from homeassistant.const import ATTR_CONNECTIO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/elkm1/logbook.py
homeassistant/components/elkm1/logbook.py
"""Describe elkm1 logbook events.""" from __future__ import annotations from collections.abc import Callable from homeassistant.components.logbook import LOGBOOK_ENTRY_MESSAGE, LOGBOOK_ENTRY_NAME from homeassistant.core import Event, HomeAssistant, callback from .const import ( ATTR_KEY, ATTR_KEY_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/elkm1/scene.py
homeassistant/components/elkm1/scene.py
"""Support for control of ElkM1 tasks ("macros").""" from __future__ import annotations from typing import Any from elkm1_lib.tasks import Task from homeassistant.components.scene import Scene from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallba...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false