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/integration/const.py
homeassistant/components/integration/const.py
"""Constants for the Integration - Riemann sum integral integration.""" DOMAIN = "integration" CONF_ROUND_DIGITS = "round" CONF_SOURCE_SENSOR = "source" CONF_UNIT_OF_MEASUREMENT = "unit" CONF_UNIT_PREFIX = "unit_prefix" CONF_UNIT_TIME = "unit_time" CONF_MAX_SUB_INTERVAL = "max_sub_interval" METHOD_TRAPEZOIDAL = "tra...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/integration/sensor.py
homeassistant/components/integration/sensor.py
"""Numeric integration of data coming from a source sensor over time.""" from __future__ import annotations from abc import ABC, abstractmethod from dataclasses import dataclass from datetime import UTC, datetime, timedelta from decimal import Decimal, InvalidOperation from enum import Enum import logging from typing...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/integration/__init__.py
homeassistant/components/integration/__init__.py
"""The Integration integration.""" from __future__ import annotations import logging from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.device import ( async_entity_id_to_device_id, async_remove...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/integration/config_flow.py
homeassistant/components/integration/config_flow.py
"""Config flow for Integration - Riemann sum integral integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, cast import voluptuous as vol from homeassistant.components.counter import DOMAIN as COUNTER_DOMAIN from homeassistant.components.input_number import D...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower_ble/const.py
homeassistant/components/husqvarna_automower_ble/const.py
"""Constants for the Husqvarna Automower Bluetooth integration.""" import logging DOMAIN = "husqvarna_automower_ble" MANUFACTURER = "Husqvarna" LOGGER = logging.getLogger(__package__)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower_ble/coordinator.py
homeassistant/components/husqvarna_automower_ble/coordinator.py
"""Provides the DataUpdateCoordinator.""" from __future__ import annotations from datetime import timedelta from typing import TYPE_CHECKING from automower_ble.mower import Mower from automower_ble.protocol import ResponseResult from bleak import BleakError from bleak_retry_connector import close_stale_connections_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/husqvarna_automower_ble/sensor.py
homeassistant/components/husqvarna_automower_ble/sensor.py
"""Support for sensor entities.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import PERCENTAGE, EntityCategory 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/husqvarna_automower_ble/__init__.py
homeassistant/components/husqvarna_automower_ble/__init__.py
"""The Husqvarna Autoconnect Bluetooth integration.""" from __future__ import annotations from automower_ble.mower import Mower from automower_ble.protocol import ResponseResult from bleak import BleakError from bleak_retry_connector import close_stale_connections_by_address, get_device from homeassistant.components...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower_ble/entity.py
homeassistant/components/husqvarna_automower_ble/entity.py
"""Provides the HusqvarnaAutomowerBleEntity.""" from __future__ import annotations from homeassistant.helpers.device_registry import ( CONNECTION_BLUETOOTH, DeviceInfo, format_mac, ) 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/husqvarna_automower_ble/lawn_mower.py
homeassistant/components/husqvarna_automower_ble/lawn_mower.py
"""The Husqvarna Autoconnect Bluetooth lawn mower platform.""" from __future__ import annotations from automower_ble.protocol import MowerActivity, MowerState, ResponseResult from homeassistant.components import bluetooth from homeassistant.components.lawn_mower import ( LawnMowerActivity, LawnMowerEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/husqvarna_automower_ble/config_flow.py
homeassistant/components/husqvarna_automower_ble/config_flow.py
"""Config flow for Husqvarna Bluetooth integration.""" from __future__ import annotations from collections.abc import Mapping import random from typing import Any from automower_ble.mower import Mower from automower_ble.protocol import ResponseResult from bleak import BleakError from bleak_retry_connector import get...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/iss/const.py
homeassistant/components/iss/const.py
"""Constants for iss.""" DOMAIN = "iss" DEFAULT_NAME = "ISS"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/iss/sensor.py
homeassistant/components/iss/sensor.py
"""Support for iss sensor.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.sensor import SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE, CONF_SHOW_ON_MAP 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/iss/__init__.py
homeassistant/components/iss/__init__.py
"""The iss component.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta import logging import pyiss import requests from requests.exceptions import HTTPError from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform 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/iss/config_flow.py
homeassistant/components/iss/config_flow.py
"""Config flow to configure iss component.""" from __future__ import annotations import voluptuous as vol from homeassistant.config_entries import ( ConfigEntry, ConfigFlow, ConfigFlowResult, OptionsFlow, ) from homeassistant.const import CONF_SHOW_ON_MAP from homeassistant.core import callback 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/thermopro/const.py
homeassistant/components/thermopro/const.py
"""Constants for the ThermoPro Bluetooth integration.""" DOMAIN = "thermopro" SIGNAL_DATA_UPDATED = f"{DOMAIN}_service_info_updated" SIGNAL_AVAILABILITY_UPDATED = f"{DOMAIN}_availability_updated"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/thermopro/sensor.py
homeassistant/components/thermopro/sensor.py
"""Support for thermopro ble sensors.""" from __future__ import annotations from thermopro_ble import ( DeviceKey, SensorDeviceClass as ThermoProSensorDeviceClass, SensorUpdate, Units, ) from homeassistant.components.bluetooth.passive_update_processor import ( PassiveBluetoothDataProcessor, P...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/thermopro/__init__.py
homeassistant/components/thermopro/__init__.py
"""The ThermoPro Bluetooth integration.""" from __future__ import annotations from functools import partial import logging from thermopro_ble import SensorUpdate, ThermoProBluetoothDeviceData from homeassistant.components.bluetooth import ( BluetoothScanningMode, BluetoothServiceInfoBleak, ) from homeassist...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/thermopro/button.py
homeassistant/components/thermopro/button.py
"""Thermopro button platform.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from thermopro_ble import SensorUpdate, ThermoProBluetoothDeviceData, ThermoProDevice from homeassistant.components.bluetooth import ( Blue...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/thermopro/config_flow.py
homeassistant/components/thermopro/config_flow.py
"""Config flow for thermopro ble integration.""" from __future__ import annotations from typing import Any from thermopro_ble import ThermoProBluetoothDeviceData as DeviceData import voluptuous as vol from homeassistant.components.bluetooth import ( BluetoothServiceInfoBleak, async_discovered_service_info, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/meteo_france/weather.py
homeassistant/components/meteo_france/weather.py
"""Support for Meteo-France weather service.""" import logging import time from meteofrance_api.model.forecast import Forecast as MeteoFranceForecast from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_SUNNY, ATTR_FORECAST_CONDITION, ATTR_FORECAST_HUMIDITY, 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/meteo_france/const.py
homeassistant/components/meteo_france/const.py
"""Meteo-France component constants.""" from __future__ import annotations from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, ATTR_CONDITION_HAIL, ATTR_CONDITION_LIGHTNING, ATTR_CONDITION_LIGHTNI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/meteo_france/sensor.py
homeassistant/components/meteo_france/sensor.py
"""Support for Meteo-France raining forecast sensor.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from meteofrance_api.helpers import ( get_warning_text_status_from_indice_color, readable_phenomenons_dict, ) from meteofrance_api.model.forecast import Forecast...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/meteo_france/__init__.py
homeassistant/components/meteo_france/__init__.py
"""Support for Meteo-France weather data.""" from datetime import timedelta import logging from meteofrance_api.client import MeteoFranceClient from meteofrance_api.helpers import is_valid_warning_department from meteofrance_api.model import CurrentPhenomenons, Forecast, Rain from requests import RequestException 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/meteo_france/config_flow.py
homeassistant/components/meteo_france/config_flow.py
"""Config flow to configure the Meteo-France integration.""" from __future__ import annotations import logging from typing import Any from meteofrance_api.client import MeteoFranceClient from meteofrance_api.model import Place import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT, 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/tautulli/const.py
homeassistant/components/tautulli/const.py
"""Constants for the Tautulli integration.""" from logging import Logger, getLogger ATTR_TOP_USER = "top_user" CONF_MONITORED_USERS = "monitored_users" DEFAULT_NAME = "Tautulli" DOMAIN = "tautulli" LOGGER: Logger = getLogger(__package__)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tautulli/coordinator.py
homeassistant/components/tautulli/coordinator.py
"""Data update coordinator for the Tautulli integration.""" from __future__ import annotations import asyncio from datetime import timedelta from pytautulli import ( PyTautulli, PyTautulliApiActivity, PyTautulliApiHomeStats, PyTautulliApiUser, ) from pytautulli.exceptions import ( PyTautulliAuthe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tautulli/sensor.py
homeassistant/components/tautulli/sensor.py
"""A platform which allows you to get information from Tautulli.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import cast from pytautulli import ( PyTautulliApiActivity, PyTautulliApiHomeStats, PyTautulliApiSession, PyTautull...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tautulli/__init__.py
homeassistant/components/tautulli/__init__.py
"""The Tautulli integration.""" from __future__ import annotations from pytautulli import PyTautulli, PyTautulliHostConfiguration from homeassistant.const import CONF_API_KEY, CONF_URL, CONF_VERIFY_SSL, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_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/tautulli/entity.py
homeassistant/components/tautulli/entity.py
"""The Tautulli integration.""" from __future__ import annotations from pytautulli import PyTautulliApiUser from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tautulli/config_flow.py
homeassistant/components/tautulli/config_flow.py
"""Config flow for Tautulli.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from pytautulli import PyTautulli, PyTautulliException, exceptions import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const imp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/twilio_sms/__init__.py
homeassistant/components/twilio_sms/__init__.py
"""The twilio_sms 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/twilio_sms/notify.py
homeassistant/components/twilio_sms/notify.py
"""Twilio SMS platform for notify component.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant.components.notify import ( ATTR_DATA, ATTR_TARGET, PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA, BaseNotificationService, ) from homeassistant.components.twilio ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/psoklahoma/__init__.py
homeassistant/components/psoklahoma/__init__.py
"""Virtual integration: Public Service Company of Oklahoma (PSO)."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/filter/const.py
homeassistant/components/filter/const.py
"""The filter component constants.""" from homeassistant.const import Platform DOMAIN = "filter" PLATFORMS = [Platform.SENSOR] CONF_INDEX = "index" FILTER_NAME_RANGE = "range" FILTER_NAME_LOWPASS = "lowpass" FILTER_NAME_OUTLIER = "outlier" FILTER_NAME_THROTTLE = "throttle" FILTER_NAME_TIME_THROTTLE = "time_throttle...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/filter/sensor.py
homeassistant/components/filter/sensor.py
"""Allows the creation of a sensor that filters state property.""" from __future__ import annotations from collections import Counter, deque from copy import copy from dataclasses import dataclass from datetime import datetime, timedelta from functools import partial import logging from numbers import Number import 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/filter/__init__.py
homeassistant/components/filter/__init__.py
"""The filter component.""" from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import PLATFORMS async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Filter from a config entry.""" await hass.config_entries.async_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/filter/config_flow.py
homeassistant/components/filter/config_flow.py
"""Config flow for filter.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, cast import voluptuous as vol from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from homeassistant.const import CONF_ENTITY_ID, CONF_NAME from homeassistant.helpers.schema_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/fan/device_trigger.py
homeassistant/components/fan/device_trigger.py
"""Provides device automations for Fan.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import toggle_entity from homeassistant.const import CONF_DOMAIN from homeassistant.core import CALLBACK_TYPE, HomeAssistant from homeassistant.helpers.trigger 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/fan/device_condition.py
homeassistant/components/fan/device_condition.py
"""Provide the device automations for Fan.""" 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_OFF, STATE_ON, ) from homeassistant.core import Hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fan/significant_change.py
homeassistant/components/fan/significant_change.py
"""Helper to test significant Fan state changes.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.significant_change import ( check_absolute_change, check_valid_float, ) from . import ATTR_DIRECTION, ATTR_OSCILLATI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fan/intent.py
homeassistant/components/fan/intent.py
"""Intents for the fan integration.""" import voluptuous as vol from homeassistant.core import HomeAssistant from homeassistant.helpers import intent from . import ATTR_PERCENTAGE, DOMAIN, SERVICE_TURN_ON INTENT_FAN_SET_SPEED = "HassFanSetSpeed" async def async_setup_intents(hass: HomeAssistant) -> None: """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/fan/reproduce_state.py
homeassistant/components/fan/reproduce_state.py
"""Reproduce an Fan state.""" from __future__ import annotations import asyncio from collections.abc import Iterable import logging from typing import Any from homeassistant.const import ( ATTR_ENTITY_ID, SERVICE_TURN_OFF, SERVICE_TURN_ON, STATE_OFF, STATE_ON, ) from homeassistant.core 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/fan/__init__.py
homeassistant/components/fan/__init__.py
"""Provides functionality to interact with fans.""" from __future__ import annotations from datetime import timedelta from enum import IntFlag import functools as ft import logging import math from typing import Any, final from propcache.api import cached_property import voluptuous as vol from homeassistant.config_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/fan/device_action.py
homeassistant/components/fan/device_action.py
"""Provides device automations for Fan.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import ( async_validate_entity_schema, toggle_entity, ) from homeassistant.const import CONF_DOMAIN from homeassistant.core import Context, 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/fan/trigger.py
homeassistant/components/fan/trigger.py
"""Provides triggers for fans.""" from homeassistant.const import STATE_OFF, STATE_ON from homeassistant.core import HomeAssistant from homeassistant.helpers.trigger import Trigger, make_entity_target_state_trigger from . import DOMAIN TRIGGERS: dict[str, type[Trigger]] = { "turned_off": make_entity_target_state...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/switch.py
homeassistant/components/letpot/switch.py
"""Support for LetPot switch entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from letpot.deviceclient import LetPotDeviceClient from letpot.models import DeviceFeature, LetPotDeviceStatus from homeassistant.components.switch import SwitchEntity, 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/letpot/number.py
homeassistant/components/letpot/number.py
"""Support for LetPot number entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from letpot.deviceclient import LetPotDeviceClient from letpot.models import DeviceFeature from homeassistant.components.number import ( NumberEntity, NumberEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/binary_sensor.py
homeassistant/components/letpot/binary_sensor.py
"""Support for LetPot binary sensor entities.""" from collections.abc import Callable from dataclasses import dataclass from letpot.models import DeviceFeature, LetPotDeviceStatus from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescripti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/const.py
homeassistant/components/letpot/const.py
"""Constants for the LetPot integration.""" DOMAIN = "letpot" CONF_ACCESS_TOKEN_EXPIRES = "access_token_expires" CONF_REFRESH_TOKEN = "refresh_token" CONF_REFRESH_TOKEN_EXPIRES = "refresh_token_expires" CONF_USER_ID = "user_id" REQUEST_UPDATE_TIMEOUT = 10
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/coordinator.py
homeassistant/components/letpot/coordinator.py
"""Coordinator for the LetPot integration.""" from __future__ import annotations import asyncio from datetime import timedelta import logging from letpot.deviceclient import LetPotDeviceClient from letpot.exceptions import LetPotAuthenticationException, LetPotException from letpot.models import LetPotDevice, LetPotD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/time.py
homeassistant/components/letpot/time.py
"""Support for LetPot time entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from datetime import time from typing import Any from letpot.deviceclient import LetPotDeviceClient from letpot.models import LetPotDeviceStatus from homeassistant.components.time import TimeEnti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/sensor.py
homeassistant/components/letpot/sensor.py
"""Support for LetPot sensor entities.""" from collections.abc import Callable from dataclasses import dataclass from letpot.models import DeviceFeature, LetPotDeviceStatus, TemperatureUnit from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/__init__.py
homeassistant/components/letpot/__init__.py
"""The LetPot integration.""" from __future__ import annotations import asyncio from letpot.client import LetPotClient from letpot.converters import CONVERTERS from letpot.deviceclient import LetPotDeviceClient from letpot.exceptions import LetPotAuthenticationException, LetPotException from letpot.models import Aut...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/entity.py
homeassistant/components/letpot/entity.py
"""Base class for LetPot entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any, Concatenate from letpot.exceptions import LetPotConnectionException, LetPotException from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.devic...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/select.py
homeassistant/components/letpot/select.py
"""Support for LetPot select entities.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from enum import StrEnum from typing import Any from letpot.deviceclient import LetPotDeviceClient from letpot.models import DeviceFeature, LightMode, TemperatureUnit from homeassistant.compone...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/letpot/config_flow.py
homeassistant/components/letpot/config_flow.py
"""Config flow for the LetPot integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from letpot.client import LetPotClient from letpot.exceptions import LetPotAuthenticationException, LetPotConnectionException import voluptuous as vol 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/weatherkit/weather.py
homeassistant/components/weatherkit/weather.py
"""Weather entity for Apple WeatherKit integration.""" from typing import Any, cast from apple_weatherkit import DataSetType from homeassistant.components.weather import ( ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, ATTR_CONDITION_HAIL, ATTR_CONDITION_LIGHTNING, ATT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weatherkit/const.py
homeassistant/components/weatherkit/const.py
"""Constants for WeatherKit.""" from logging import Logger, getLogger LOGGER: Logger = getLogger(__package__) NAME = "Apple WeatherKit" DOMAIN = "weatherkit" ATTRIBUTION = ( "Data provided by Apple Weather. " "https://developer.apple.com/weatherkit/data-source-attribution/" ) MANUFACTURER = "Apple Weather" ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weatherkit/coordinator.py
homeassistant/components/weatherkit/coordinator.py
"""DataUpdateCoordinator for WeatherKit integration.""" from __future__ import annotations from datetime import datetime, timedelta from apple_weatherkit import DataSetType from apple_weatherkit.client import WeatherKitApiClient, WeatherKitApiClientError from homeassistant.config_entries import ConfigEntry from hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weatherkit/sensor.py
homeassistant/components/weatherkit/sensor.py
"""WeatherKit sensors.""" from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import UnitOfVolumetricFlux 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/weatherkit/__init__.py
homeassistant/components/weatherkit/__init__.py
"""Integration for Apple's WeatherKit API.""" from __future__ import annotations from apple_weatherkit.client import ( WeatherKitApiClient, WeatherKitApiClientAuthenticationError, WeatherKitApiClientError, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform 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/weatherkit/entity.py
homeassistant/components/weatherkit/entity.py
"""Base entity for weatherkit.""" from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import Entity from .const import DOMAIN, MANUFACTURER from .coordinator import WeatherKitDataUpdateCoordinator...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/weatherkit/config_flow.py
homeassistant/components/weatherkit/config_flow.py
"""Adds config flow for WeatherKit.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from apple_weatherkit.client import ( WeatherKitApiClient, WeatherKitApiClientAuthenticationError, WeatherKitApiClientCommunicationError, WeatherKitApiClientError, ) 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/versasense/switch.py
homeassistant/components/versasense/switch.py
"""Support for VersaSense actuator peripheral.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.hel...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/versasense/const.py
homeassistant/components/versasense/const.py
"""Constants for versasense.""" KEY_CONSUMER = "consumer" KEY_IDENTIFIER = "identifier" KEY_MEASUREMENT = "measurement" KEY_PARENT_MAC = "parent_mac" KEY_PARENT_NAME = "parent_name" KEY_UNIT = "unit" PERIPHERAL_CLASS_SENSOR = "sensor" PERIPHERAL_CLASS_SENSOR_ACTUATOR = "sensor-actuator" PERIPHERAL_STATE_OFF = "OFF" PE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/versasense/sensor.py
homeassistant/components/versasense/sensor.py
"""Support for VersaSense sensor peripheral.""" from __future__ import annotations import logging from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing 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/versasense/__init__.py
homeassistant/components/versasense/__init__.py
"""Support for VersaSense MicroPnP devices.""" import logging import pyversasense as pyv import voluptuous as vol from homeassistant.const import CONF_HOST, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client, config_validation as cv from homeassistant.helpers.disco...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sony_projector/switch.py
homeassistant/components/sony_projector/switch.py
"""Support for Sony projectors via SDCP network control.""" from __future__ import annotations import logging from typing import Any import pysdcp import voluptuous as vol from homeassistant.components.switch import ( PLATFORM_SCHEMA as SWITCH_PLATFORM_SCHEMA, SwitchEntity, ) 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/sony_projector/__init__.py
homeassistant/components/sony_projector/__init__.py
"""The sony_projector 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/aosmith/diagnostics.py
homeassistant/components/aosmith/diagnostics.py
"""Diagnostics support for A. O. Smith.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .coordinator import AOSmithConfigEntry TO_REDACT = { "address", "city", "contactId", ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aosmith/const.py
homeassistant/components/aosmith/const.py
"""Constants for the A. O. Smith integration.""" from datetime import timedelta DOMAIN = "aosmith" # Update interval to be used for normal background updates. REGULAR_INTERVAL = timedelta(seconds=30) # Update interval to be used while a mode or setpoint change is in progress. FAST_INTERVAL = timedelta(seconds=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/aosmith/coordinator.py
homeassistant/components/aosmith/coordinator.py
"""The data update coordinator for the A. O. Smith integration.""" from __future__ import annotations from dataclasses import dataclass import logging from py_aosmith import ( AOSmithAPIClient, AOSmithInvalidCredentialsException, AOSmithUnknownException, ) from py_aosmith.models import Device as AOSmithD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aosmith/sensor.py
homeassistant/components/aosmith/sensor.py
"""The sensor platform for the A. O. Smith integration.""" from collections.abc import Callable from dataclasses import dataclass from py_aosmith.models import Device as AOSmithDevice from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateCl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aosmith/__init__.py
homeassistant/components/aosmith/__init__.py
"""The A. O. Smith integration.""" from __future__ import annotations from py_aosmith import AOSmithAPIClient from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client, device_registry as dr from .const import DO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aosmith/entity.py
homeassistant/components/aosmith/entity.py
"""The base entity for the A. O. Smith integration.""" from py_aosmith import AOSmithAPIClient from py_aosmith.models import Device as AOSmithDevice from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aosmith/water_heater.py
homeassistant/components/aosmith/water_heater.py
"""The water heater platform for the A. O. Smith integration.""" from typing import Any from py_aosmith.models import OperationMode as AOSmithOperationMode from homeassistant.components.water_heater import ( STATE_ECO, STATE_ELECTRIC, STATE_HEAT_PUMP, STATE_OFF, WaterHeaterEntity, WaterHeater...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aosmith/select.py
homeassistant/components/aosmith/select.py
"""The select platform for the A. O. Smith integration.""" from homeassistant.components.select import SelectEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from . import AOSmithConfigEntry from .coordinator import AOSmithStatusCoord...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/aosmith/config_flow.py
homeassistant/components/aosmith/config_flow.py
"""Config flow for A. O. Smith integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from py_aosmith import AOSmithAPIClient, AOSmithInvalidCredentialsException import voluptuous as vol from homeassistant.config_entries import ConfigFlow, 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/schluter/const.py
homeassistant/components/schluter/const.py
"""Constants for the Schluter DITRA-HEAT integration.""" DOMAIN = "schluter"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/schluter/__init__.py
homeassistant/components/schluter/__init__.py
"""The Schluter DITRA-HEAT integration.""" import logging from requests import RequestException, Session from schluter.api import Api from schluter.authenticator import AuthenticationState, Authenticator import voluptuous as vol from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform 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/schluter/climate.py
homeassistant/components/schluter/climate.py
"""Support for Schluter thermostats.""" from __future__ import annotations import logging from typing import Any from requests import RequestException import voluptuous as vol from homeassistant.components.climate import ( PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, SCAN_INTERVAL, ClimateEntity, Cli...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ebusd/const.py
homeassistant/components/ebusd/const.py
"""Constants for ebus component.""" from homeassistant.components.sensor import SensorDeviceClass from homeassistant.const import ( PERCENTAGE, UnitOfEnergy, UnitOfPressure, UnitOfTemperature, UnitOfTime, ) DOMAIN = "ebusd" # SensorTypes from ebusdpy module : # 0='decimal', 1='time-schedule', 2...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ebusd/sensor.py
homeassistant/components/ebusd/sensor.py
"""Support for Ebusd sensors.""" from __future__ import annotations import datetime import logging from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import 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/ebusd/__init__.py
homeassistant/components/ebusd/__init__.py
"""Support for Ebusd daemon for communication with eBUS heating systems.""" import logging import ebusdpy import voluptuous as vol from homeassistant.const import ( CONF_HOST, CONF_MONITORED_CONDITIONS, CONF_NAME, CONF_PORT, Platform, ) from homeassistant.core import HomeAssistant, ServiceCall 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/air_quality/const.py
homeassistant/components/air_quality/const.py
"""Constants for the air_quality entity platform.""" from typing import Final DOMAIN: Final = "air_quality"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/air_quality/__init__.py
homeassistant/components/air_quality/__init__.py
"""Component for handling Air Quality data for your location.""" from __future__ import annotations from datetime import timedelta import logging from typing import Final, final from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONCENTRATION_MICROGRAMS_PER_CUBIC_METER 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/energie_vanons/__init__.py
homeassistant/components/energie_vanons/__init__.py
"""Virtual integration: Energie VanOns."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/diagnostics.py
homeassistant/components/lametric/diagnostics.py
"""Diagnostics support for LaMetric.""" from __future__ import annotations import json from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .coordinator import LaMetricConfigEntry TO_REDACT = { "device_id", "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/lametric/application_credentials.py
homeassistant/components/lametric/application_credentials.py
"""Application credentials platform for LaMetric.""" from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssistant async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer: """Return authorization server.""" return Au...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/services.py
homeassistant/components/lametric/services.py
"""Support for LaMetric time services.""" from __future__ import annotations from demetriek import ( AlarmSound, Chart, Goal, LaMetricError, Model, Notification, NotificationIconType, NotificationPriority, NotificationSound, Simple, Sound, ) import voluptuous as vol from h...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/switch.py
homeassistant/components/lametric/switch.py
"""Support for LaMetric switches.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from demetriek import Device, LaMetricDevice from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription 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/lametric/number.py
homeassistant/components/lametric/number.py
"""Support for LaMetric numbers.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from demetriek import Device, LaMetricDevice, Range from homeassistant.components.number import NumberEntity, NumberEntityDescription from h...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/const.py
homeassistant/components/lametric/const.py
"""Constants for the LaMetric integration.""" from datetime import timedelta import logging from typing import Final from homeassistant.const import Platform DOMAIN: Final = "lametric" PLATFORMS = [ Platform.BUTTON, Platform.NUMBER, Platform.SELECT, Platform.SENSOR, Platform.SWITCH, 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/lametric/coordinator.py
homeassistant/components/lametric/coordinator.py
"""DataUpdateCoordinator for the LaMatric integration.""" from __future__ import annotations from demetriek import Device, LaMetricAuthenticationError, LaMetricDevice, LaMetricError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_API_KEY, CONF_HOST from homeassistant.core im...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/update.py
homeassistant/components/lametric/update.py
"""LaMetric Update platform.""" from awesomeversion import AwesomeVersion from homeassistant.components.update import UpdateDeviceClass, UpdateEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from .coordinator import LaMetricConfigEn...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/helpers.py
homeassistant/components/lametric/helpers.py
"""Helpers for LaMetric.""" from __future__ import annotations from collections.abc import Callable, Coroutine from typing import Any, Concatenate from demetriek import LaMetricConnectionError, LaMetricError from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantErr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/sensor.py
homeassistant/components/lametric/sensor.py
"""Support for LaMetric sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from demetriek import Device from homeassistant.components.sensor import ( SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const imp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/lametric/__init__.py
homeassistant/components/lametric/__init__.py
"""Support for LaMetric time.""" from homeassistant.components import notify as hass_notify from homeassistant.const import CONF_NAME, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.typing import ConfigType 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/lametric/entity.py
homeassistant/components/lametric/entity.py
"""Base entity for the LaMetric integration.""" from __future__ import annotations from homeassistant.helpers.device_registry import ( CONNECTION_BLUETOOTH, CONNECTION_NETWORK_MAC, DeviceInfo, format_mac, ) from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false