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/keba/sensor.py
homeassistant/components/keba/sensor.py
"""Support for KEBA charging station sensors.""" from __future__ import annotations from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import UnitOfElectricCurrent, UnitOfEnergy, UnitOfPower 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/keba/__init__.py
homeassistant/components/keba/__init__.py
"""Support for KEBA charging stations.""" import asyncio import logging from keba_kecontact.connection import KebaKeContact import voluptuous as vol from homeassistant.const import CONF_HOST, Platform from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.helpers import config_validation as cv,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/keba/notify.py
homeassistant/components/keba/notify.py
"""Support for Keba notifications.""" from __future__ import annotations from homeassistant.components.notify import ATTR_DATA, BaseNotificationService from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType from . import DOMAIN async def async_get_servic...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/history_stats/diagnostics.py
homeassistant/components/history_stats/diagnostics.py
"""Diagnostics support for history_stats.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er async def async_get_config_entry_diagnostics( hass: 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/history_stats/const.py
homeassistant/components/history_stats/const.py
"""The history_stats component constants.""" from homeassistant.const import Platform DOMAIN = "history_stats" PLATFORMS = [Platform.SENSOR] CONF_START = "start" CONF_END = "end" CONF_DURATION = "duration" CONF_PERIOD_KEYS = [CONF_START, CONF_END, CONF_DURATION] CONF_TYPE_TIME = "time" CONF_TYPE_RATIO = "ratio" 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/history_stats/coordinator.py
homeassistant/components/history_stats/coordinator.py
"""History stats data coordinator.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from homeassistant.config_entries import ConfigEntry from homeassistant.core import ( CALLBACK_TYPE, Event, EventStateChangedData, HomeAssistant, callback,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/history_stats/helpers.py
homeassistant/components/history_stats/helpers.py
"""Helpers to make instant statistics about your history.""" from __future__ import annotations import datetime import logging import math from homeassistant.core import callback from homeassistant.exceptions import TemplateError from homeassistant.helpers.template import Template from homeassistant.util import dt 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/history_stats/sensor.py
homeassistant/components/history_stats/sensor.py
"""Component to make instant statistics about your history.""" from __future__ import annotations from abc import abstractmethod from collections.abc import Callable, Mapping import datetime from typing import Any import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_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/history_stats/__init__.py
homeassistant/components/history_stats/__init__.py
"""The history_stats component.""" from __future__ import annotations from datetime import timedelta import logging from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_ENTITY_ID, CONF_STATE from homeassistant.core import HomeAssistant from homeassistant.helpers.device 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/history_stats/data.py
homeassistant/components/history_stats/data.py
"""Manage the history_stats data.""" from __future__ import annotations from dataclasses import dataclass import datetime import logging import math from homeassistant.components.recorder import get_instance, history from homeassistant.core import Event, EventStateChangedData, HomeAssistant, State 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/history_stats/config_flow.py
homeassistant/components/history_stats/config_flow.py
"""The history_stats component config flow.""" from __future__ import annotations from collections.abc import Mapping from datetime import timedelta from typing import Any, cast import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.const import CONF_ENTITY_ID, CONF_NAME, 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/eufylife_ble/models.py
homeassistant/components/eufylife_ble/models.py
"""Models for the EufyLife integration.""" from __future__ import annotations from dataclasses import dataclass from eufylife_ble_client import EufyLifeBLEDevice from homeassistant.config_entries import ConfigEntry type EufyLifeConfigEntry = ConfigEntry[EufyLifeData] @dataclass class EufyLifeData: """Data fo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/eufylife_ble/const.py
homeassistant/components/eufylife_ble/const.py
"""Constants for the EufyLife integration.""" DOMAIN = "eufylife_ble"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/eufylife_ble/sensor.py
homeassistant/components/eufylife_ble/sensor.py
"""Support for EufyLife sensors.""" from __future__ import annotations from typing import Any from eufylife_ble_client import MODEL_TO_NAME from homeassistant.components.bluetooth import async_address_present from homeassistant.components.sensor import ( RestoreSensor, SensorDeviceClass, SensorEntity, )...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/eufylife_ble/__init__.py
homeassistant/components/eufylife_ble/__init__.py
"""The EufyLife integration.""" from __future__ import annotations from eufylife_ble_client import EufyLifeBLEDevice from homeassistant.components import bluetooth from homeassistant.components.bluetooth.match import ADDRESS, BluetoothCallbackMatcher from homeassistant.const import CONF_MODEL, EVENT_HOMEASSISTANT_ST...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/eufylife_ble/config_flow.py
homeassistant/components/eufylife_ble/config_flow.py
"""Config flow for the EufyLife integration.""" from __future__ import annotations from typing import Any from eufylife_ble_client import MODEL_TO_NAME import voluptuous as vol from homeassistant.components.bluetooth import ( BluetoothServiceInfoBleak, async_discovered_service_info, ) 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/gentex_homelink/event.py
homeassistant/components/gentex_homelink/event.py
"""Platform for Event integration.""" from __future__ import annotations from homeassistant.components.event import EventDeviceClass, EventEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.entity_platform import AddCon...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/gentex_homelink/application_credentials.py
homeassistant/components/gentex_homelink/application_credentials.py
"""application_credentials platform for the gentex homelink integration.""" from homeassistant.components.application_credentials import ClientCredential from homeassistant.core import HomeAssistant from homeassistant.helpers import config_entry_oauth2_flow from . import oauth2 async def async_get_auth_implementati...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/gentex_homelink/oauth2.py
homeassistant/components/gentex_homelink/oauth2.py
"""API for homelink bound to Home Assistant OAuth.""" from json import JSONDecodeError import logging import time from typing import cast from aiohttp import ClientError, ClientSession from homelink.auth.abstract_auth import AbstractAuth from homelink.settings import COGNITO_CLIENT_ID 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/gentex_homelink/const.py
homeassistant/components/gentex_homelink/const.py
"""Constants for the homelink integration.""" DOMAIN = "gentex_homelink" OAUTH2_TOKEN = "https://auth.homelinkcloud.com/oauth2/token" POLLING_INTERVAL = 5 EVENT_PRESSED = "Pressed"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/gentex_homelink/coordinator.py
homeassistant/components/gentex_homelink/coordinator.py
"""Establish MQTT connection and listen for event data.""" from __future__ import annotations from collections.abc import Callable from functools import partial from typing import TypedDict from homelink.model.device import Device from homelink.mqtt_provider import MQTTProvider from homeassistant.config_entries 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/gentex_homelink/__init__.py
homeassistant/components/gentex_homelink/__init__.py
"""The homelink integration.""" from __future__ import annotations from homelink.mqtt_provider import MQTTProvider from homeassistant.const import EVENT_HOMEASSISTANT_STOP, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client, config_entry_oauth2_flow from . 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/gentex_homelink/config_flow.py
homeassistant/components/gentex_homelink/config_flow.py
"""Config flow for homelink.""" import logging from typing import Any import botocore.exceptions from homelink.auth.srp_auth import SRPAuth import jwt import voluptuous as vol from homeassistant.config_entries import ConfigFlowResult from homeassistant.const import CONF_EMAIL, CONF_PASSWORD from homeassistant.helper...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ripple/sensor.py
homeassistant/components/ripple/sensor.py
"""Support for Ripple sensors.""" from __future__ import annotations from datetime import timedelta from pyripple import get_balance import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) from homeassistant.const import CONF_ADDRESS,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ripple/__init__.py
homeassistant/components/ripple/__init__.py
"""The ripple 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/wemo/device_trigger.py
homeassistant/components/wemo/device_trigger.py
"""Triggers for WeMo devices.""" from __future__ import annotations from pywemo.subscribe import EVENT_TYPE_LONG_PRESS import voluptuous as vol from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.components.homeassistant.triggers import event as event_trigger 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/wemo/models.py
homeassistant/components/wemo/models.py
"""Common data structures and helpers for accessing them.""" from __future__ import annotations from collections.abc import Sequence from dataclasses import dataclass from typing import TYPE_CHECKING import pywemo from homeassistant.util.hass_dict import HassKey from .const import DOMAIN if TYPE_CHECKING: # Avoi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/switch.py
homeassistant/components/wemo/switch.py
"""Support for WeMo switches.""" from __future__ import annotations from datetime import datetime, timedelta from typing import Any from pywemo import CoffeeMaker, Insight, Maker, StandbyState, Switch from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/binary_sensor.py
homeassistant/components/wemo/binary_sensor.py
"""Support for WeMo binary sensors.""" from pywemo import Insight, Maker, StandbyState from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/const.py
homeassistant/components/wemo/const.py
"""Constants for the Belkin Wemo component.""" DOMAIN = "wemo" SERVICE_SET_HUMIDITY = "set_humidity" SERVICE_RESET_FILTER_LIFE = "reset_filter_life" WEMO_SUBSCRIPTION_EVENT = f"{DOMAIN}_subscription_event"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/coordinator.py
homeassistant/components/wemo/coordinator.py
"""Home Assistant wrapper for a pyWeMo device.""" from __future__ import annotations import asyncio from dataclasses import dataclass, fields from datetime import timedelta from functools import partial import logging from typing import TYPE_CHECKING, Literal from pywemo import Insight, LongPressMixin, WeMoDevice 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/wemo/fan.py
homeassistant/components/wemo/fan.py
"""Support for WeMo humidifier.""" from __future__ import annotations from datetime import timedelta import math from typing import Any from pywemo import DesiredHumidity, FanMode, Humidifier import voluptuous as vol from homeassistant.components.fan import FanEntity, FanEntityFeature from homeassistant.config_entr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/sensor.py
homeassistant/components/wemo/sensor.py
"""Support for power sensors in WeMo Insight devices.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import cast from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/__init__.py
homeassistant/components/wemo/__init__.py
"""Support for WeMo device discovery.""" from __future__ import annotations from collections.abc import Callable, Coroutine, Sequence from datetime import datetime import logging from typing import Any import pywemo import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/entity.py
homeassistant/components/wemo/entity.py
"""Classes shared among Wemo entities.""" from __future__ import annotations from collections.abc import Generator import contextlib import logging from pywemo.exceptions import ActionException from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import Coordina...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/light.py
homeassistant/components/wemo/light.py
"""Support for Belkin WeMo lights.""" from __future__ import annotations from typing import Any, cast from pywemo import Bridge, BridgeLight, Dimmer from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ATTR_HS_COLOR, ATTR_TRANSITION, DEFAULT_MAX_KELVIN, DEFAU...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wemo/config_flow.py
homeassistant/components/wemo/config_flow.py
"""Config flow for Wemo.""" from __future__ import annotations from dataclasses import fields from typing import Any, get_type_hints import pywemo import voluptuous as vol from homeassistant.config_entries import ConfigEntry, ConfigFlowResult, OptionsFlow from homeassistant.core import HomeAssistant, 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/whirlpool/diagnostics.py
homeassistant/components/whirlpool/diagnostics.py
"""Diagnostics support for Whirlpool.""" from __future__ import annotations from typing import Any from whirlpool.appliance import Appliance from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from . import WhirlpoolConfigEntry TO_REDACT = { "SERIAL_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whirlpool/binary_sensor.py
homeassistant/components/whirlpool/binary_sensor.py
"""Binary sensors for the Whirlpool Appliances integration.""" from collections.abc import Callable from dataclasses import dataclass from datetime import timedelta from whirlpool.appliance import Appliance from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whirlpool/const.py
homeassistant/components/whirlpool/const.py
"""Constants for the Whirlpool Appliances integration.""" from whirlpool.backendselector import Brand, Region DOMAIN = "whirlpool" CONF_BRAND = "brand" REGIONS_CONF_MAP = { "EU": Region.EU, "US": Region.US, } BRANDS_CONF_MAP = { "Whirlpool": Brand.Whirlpool, "Maytag": Brand.Maytag, "KitchenAid":...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whirlpool/sensor.py
homeassistant/components/whirlpool/sensor.py
"""The Washer/Dryer Sensor for Whirlpool Appliances.""" from abc import ABC, abstractmethod from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from typing import override from whirlpool.appliance import Appliance from whirlpool.dryer import Dryer, MachineSt...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whirlpool/__init__.py
homeassistant/components/whirlpool/__init__.py
"""The Whirlpool Appliances integration.""" import logging from aiohttp import ClientError from whirlpool.appliancesmanager import AppliancesManager from whirlpool.auth import AccountLockedError as WhirlpoolAccountLocked, Auth from whirlpool.backendselector import BackendSelector from homeassistant.config_entries 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/whirlpool/entity.py
homeassistant/components/whirlpool/entity.py
"""Base entity for the Whirlpool integration.""" import logging from whirlpool.appliance import Appliance from whirlpool.oven import Cavity as OvenCavity, Oven from homeassistant.core import callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.device_registry import DeviceInfo ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whirlpool/climate.py
homeassistant/components/whirlpool/climate.py
"""Platform for climate integration.""" from __future__ import annotations from typing import Any from whirlpool.aircon import Aircon, FanSpeed as AirconFanSpeed, Mode as AirconMode from homeassistant.components.climate import ( FAN_AUTO, FAN_HIGH, FAN_LOW, FAN_MEDIUM, FAN_OFF, SWING_HORIZON...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/whirlpool/config_flow.py
homeassistant/components/whirlpool/config_flow.py
"""Config flow for Whirlpool Appliances integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from aiohttp import ClientError import voluptuous as vol from whirlpool.appliancesmanager import AppliancesManager from whirlpool.auth import AccountLoc...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbee/cover.py
homeassistant/components/switchbee/cover.py
"""Support for SwitchBee cover.""" from __future__ import annotations from typing import Any from switchbee.api.central_unit import SwitchBeeError, SwitchBeeTokenError from switchbee.const import SomfyCommand from switchbee.device import SwitchBeeShutter, SwitchBeeSomfy from homeassistant.components.cover 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/switchbee/switch.py
homeassistant/components/switchbee/switch.py
"""Support for SwitchBee switch.""" from __future__ import annotations from typing import Any from switchbee.api.central_unit import SwitchBeeDeviceOfflineError, SwitchBeeError from switchbee.device import ( ApiStateCommand, SwitchBeeGroupSwitch, SwitchBeeSwitch, SwitchBeeTimedSwitch, SwitchBeeTi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbee/const.py
homeassistant/components/switchbee/const.py
"""Constants for the SwitchBee Smart Home integration.""" from switchbee.api import CentralUnitPolling, CentralUnitWsRPC DOMAIN = "switchbee" SCAN_INTERVAL_SEC = {CentralUnitWsRPC: 10, CentralUnitPolling: 5}
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbee/coordinator.py
homeassistant/components/switchbee/coordinator.py
"""SwitchBee integration Coordinator.""" from __future__ import annotations from collections.abc import Mapping from datetime import timedelta import logging from switchbee.api import CentralUnitPolling, CentralUnitWsRPC from switchbee.api.central_unit import SwitchBeeError from switchbee.device import DeviceType, 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/switchbee/__init__.py
homeassistant/components/switchbee/__init__.py
"""The SwitchBee Smart Home integration.""" from __future__ import annotations import logging import re from aiohttp import ClientSession from switchbee.api import CentralUnitPolling, CentralUnitWsRPC, is_wsrpc_api from switchbee.api.central_unit import SwitchBeeError from homeassistant.config_entries import Config...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbee/entity.py
homeassistant/components/switchbee/entity.py
"""Support for SwitchBee entity.""" import logging from typing import cast from switchbee import SWITCHBEE_BRAND from switchbee.device import DeviceType, SwitchBeeBaseDevice from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .cons...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbee/button.py
homeassistant/components/switchbee/button.py
"""Support for SwitchBee scenario button.""" from switchbee.api.central_unit import SwitchBeeError from switchbee.device import ApiStateCommand, DeviceType from homeassistant.components.button import ButtonEntity from homeassistant.config_entries import ConfigEntry 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/switchbee/climate.py
homeassistant/components/switchbee/climate.py
"""Support for SwitchBee climate.""" from __future__ import annotations from typing import Any from switchbee.api.central_unit import SwitchBeeDeviceOfflineError, SwitchBeeError from switchbee.const import ( ApiAttribute, ThermostatFanSpeed, ThermostatMode, ThermostatTemperatureUnit, ) from switchbee...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbee/light.py
homeassistant/components/switchbee/light.py
"""Support for SwitchBee light.""" from __future__ import annotations from typing import Any from switchbee.api.central_unit import SwitchBeeDeviceOfflineError, SwitchBeeError from switchbee.device import ApiStateCommand, DeviceType, SwitchBeeDimmer from homeassistant.components.light import ATTR_BRIGHTNESS, ColorM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbee/config_flow.py
homeassistant/components/switchbee/config_flow.py
"""Config flow for SwitchBee Smart Home integration.""" from __future__ import annotations import logging from typing import Any from switchbee.api.central_unit import SwitchBeeError from switchbee.api.polling import CentralUnitPolling import voluptuous as vol from homeassistant.config_entries import ConfigFlow, 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/econet/switch.py
homeassistant/components/econet/switch.py
"""Support for using switch with ecoNet thermostats.""" from __future__ import annotations import logging from typing import Any from pyeconet.equipment import EquipmentType from pyeconet.equipment.thermostat import Thermostat, ThermostatOperationMode from homeassistant.components.switch import SwitchEntity 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/econet/binary_sensor.py
homeassistant/components/econet/binary_sensor.py
"""Support for Rheem EcoNet water heaters.""" from __future__ import annotations from pyeconet.equipment import Equipment, EquipmentType from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.core import 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/econet/const.py
homeassistant/components/econet/const.py
"""Constants for Econet integration.""" DOMAIN = "econet" PUSH_UPDATE = "econet.push_update"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/econet/sensor.py
homeassistant/components/econet/sensor.py
"""Support for Rheem EcoNet water heaters.""" from __future__ import annotations from pyeconet.equipment import Equipment, EquipmentType from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( 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/econet/__init__.py
homeassistant/components/econet/__init__.py
"""Support for EcoNet products.""" import asyncio from datetime import timedelta import logging from aiohttp.client_exceptions import ClientError from pyeconet import EcoNetApiInterface from pyeconet.equipment import Equipment, EquipmentType from pyeconet.errors import ( GenericHTTPError, InvalidCredentialsEr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/econet/entity.py
homeassistant/components/econet/entity.py
"""Support for EcoNet products.""" from pyeconet.equipment import Equipment from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity import Entity from .const import DOM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/econet/water_heater.py
homeassistant/components/econet/water_heater.py
"""Support for Rheem EcoNet water heaters.""" from datetime import timedelta import logging from typing import Any from pyeconet.equipment import EquipmentType from pyeconet.equipment.water_heater import WaterHeater, WaterHeaterOperationMode from homeassistant.components.water_heater import ( STATE_ECO, 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/econet/climate.py
homeassistant/components/econet/climate.py
"""Support for Rheem EcoNet thermostats.""" from typing import Any from pyeconet.equipment import EquipmentType from pyeconet.equipment.thermostat import ( Thermostat, ThermostatFanMode, ThermostatOperationMode, ) from homeassistant.components.climate import ( ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_T...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/econet/config_flow.py
homeassistant/components/econet/config_flow.py
"""Config flow to configure the EcoNet component.""" from typing import Any from pyeconet import EcoNetApiInterface from pyeconet.errors import InvalidCredentialsError, PyeconetError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_EM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sharkiq/vacuum.py
homeassistant/components/sharkiq/vacuum.py
"""Shark IQ Wrapper.""" from __future__ import annotations from collections.abc import Iterable from typing import Any from sharkiq import OperatingModes, PowerModes, Properties, SharkIqVacuum import voluptuous as vol from homeassistant.components.vacuum import ( StateVacuumEntity, VacuumActivity, Vacuu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sharkiq/const.py
homeassistant/components/sharkiq/const.py
"""Shark IQ Constants.""" from datetime import timedelta import logging from homeassistant.const import Platform LOGGER = logging.getLogger(__package__) API_TIMEOUT = 20 PLATFORMS = [Platform.VACUUM] DOMAIN = "sharkiq" SHARK = "Shark" UPDATE_INTERVAL = timedelta(seconds=30) SERVICE_CLEAN_ROOM = "clean_room" SHARKI...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sharkiq/coordinator.py
homeassistant/components/sharkiq/coordinator.py
"""Data update coordinator for shark iq vacuums.""" from __future__ import annotations import asyncio from datetime import datetime, timedelta from sharkiq import ( AylaApi, SharkIqAuthError, SharkIqAuthExpiringError, SharkIqNotAuthedError, SharkIqVacuum, ) from homeassistant.config_entries 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/sharkiq/__init__.py
homeassistant/components/sharkiq/__init__.py
"""Shark IQ Integration.""" import asyncio from contextlib import suppress import aiohttp from sharkiq import ( AylaApi, SharkIqAuthError, SharkIqAuthExpiringError, SharkIqNotAuthedError, get_ayla_api, ) from homeassistant import exceptions from homeassistant.config_entries import ConfigEntry fro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sharkiq/config_flow.py
homeassistant/components/sharkiq/config_flow.py
"""Config flow for Shark IQ integration.""" from __future__ import annotations import asyncio from collections.abc import Mapping from typing import Any import aiohttp from sharkiq import SharkIqAuthError, get_ayla_api import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult 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/tessie/media_player.py
homeassistant/components/tessie/media_player.py
"""Media Player platform for Tessie integration.""" from __future__ import annotations from homeassistant.components.media_player import ( MediaPlayerDeviceClass, MediaPlayerEntity, MediaPlayerState, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfig...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/diagnostics.py
homeassistant/components/tessie/diagnostics.py
"""Provides diagnostics for Tessie.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from . import TessieConfigEntry VEHICLE_REDACT = [ "id", "user_id", "vehicle_id", "vin", ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/device_tracker.py
homeassistant/components/tessie/device_tracker.py
"""Device Tracker platform for Tessie integration.""" from __future__ import annotations from homeassistant.components.device_tracker import TrackerEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from homeassistant.helpers.typing 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/tessie/cover.py
homeassistant/components/tessie/cover.py
"""Cover platform for Tessie integration.""" from __future__ import annotations from itertools import chain from typing import Any from tessie_api import ( close_charge_port, close_sunroof, close_windows, open_close_rear_trunk, open_front_trunk, open_unlock_charge_port, vent_sunroof, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/models.py
homeassistant/components/tessie/models.py
"""The Tessie integration models.""" from __future__ import annotations from dataclasses import dataclass from tesla_fleet_api.tessie import EnergySite from homeassistant.helpers.device_registry import DeviceInfo from .coordinator import ( TessieEnergySiteInfoCoordinator, TessieEnergySiteLiveCoordinator, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/switch.py
homeassistant/components/tessie/switch.py
"""Switch platform for Tessie integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from itertools import chain from typing import Any from tessie_api import ( disable_sentry_mode, disable_valet_mode, enable_sentry_mode, enable_valet...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/number.py
homeassistant/components/tessie/number.py
"""Number platform for Tessie integration.""" from __future__ import annotations from collections.abc import Awaitable, Callable from dataclasses import dataclass from itertools import chain from typing import Any from tesla_fleet_api.tessie import EnergySite from tessie_api import set_charge_limit, set_charging_amp...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/binary_sensor.py
homeassistant/components/tessie/binary_sensor.py
"""Binary Sensor platform for Tessie integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from itertools import chain from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/lock.py
homeassistant/components/tessie/lock.py
"""Lock platform for Tessie integration.""" from __future__ import annotations from typing import Any from tessie_api import lock, open_unlock_charge_port, unlock from homeassistant.components.lock import LockEntity from homeassistant.core import HomeAssistant from homeassistant.exceptions import ServiceValidationE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/const.py
homeassistant/components/tessie/const.py
"""Constants used by Tessie integration.""" from __future__ import annotations from enum import IntEnum, StrEnum DOMAIN = "tessie" MODELS = { "model3": "Model 3", "modelx": "Model X", "modely": "Model Y", "models": "Model S", } TRANSLATED_ERRORS = { "unknown": "unknown", "not supported": "n...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/coordinator.py
homeassistant/components/tessie/coordinator.py
"""Tessie Data Coordinator.""" from __future__ import annotations from datetime import timedelta from http import HTTPStatus import logging from typing import TYPE_CHECKING, Any from aiohttp import ClientResponseError from tesla_fleet_api.exceptions import InvalidToken, MissingToken, TeslaFleetError from tesla_fleet...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/update.py
homeassistant/components/tessie/update.py
"""Update platform for Tessie integration.""" from __future__ import annotations from typing import Any from tessie_api import schedule_software_update from homeassistant.components.update import UpdateEntity, UpdateEntityFeature from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platfor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/helpers.py
homeassistant/components/tessie/helpers.py
"""Tessie helper functions.""" from typing import Any from tesla_fleet_api.exceptions import TeslaFleetError from homeassistant.exceptions import HomeAssistantError from . import _LOGGER from .const import DOMAIN async def handle_command(command) -> dict[str, Any]: """Handle a command.""" try: res...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/sensor.py
homeassistant/components/tessie/sensor.py
"""Sensor platform for Tessie integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime, timedelta from itertools import chain from typing import cast from homeassistant.components.sensor import ( SensorDeviceClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/__init__.py
homeassistant/components/tessie/__init__.py
"""Tessie integration.""" import asyncio from http import HTTPStatus import logging from aiohttp import ClientError, ClientResponseError from tesla_fleet_api.const import Scope from tesla_fleet_api.exceptions import ( Forbidden, InvalidToken, SubscriptionRequired, TeslaFleetError, ) from tesla_fleet_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/tessie/entity.py
homeassistant/components/tessie/entity.py
"""Tessie parent entity class.""" from abc import abstractmethod from collections.abc import Awaitable, Callable from typing import Any from aiohttp import ClientResponseError from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/button.py
homeassistant/components/tessie/button.py
"""Button platform for Tessie integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from tessie_api import ( boombox, enable_keyless_driving, flash_lights, honk, trigger_homelink, wake, ) from homeassistant.components.button...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tessie/select.py
homeassistant/components/tessie/select.py
"""Select platform for Tessie integration.""" from __future__ import annotations from itertools import chain from tesla_fleet_api.const import EnergyExportMode, EnergyOperationMode from tessie_api import set_seat_cool, set_seat_heat from homeassistant.components.select import SelectEntity 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/tessie/climate.py
homeassistant/components/tessie/climate.py
"""Climate platform for Tessie integration.""" from __future__ import annotations from typing import Any from tessie_api import ( set_climate_keeper_mode, set_temperature, start_climate_preconditioning, stop_climate, ) from homeassistant.components.climate import ( ATTR_HVAC_MODE, 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/tessie/config_flow.py
homeassistant/components/tessie/config_flow.py
"""Config Flow for Tessie integration.""" from __future__ import annotations from collections.abc import Mapping from http import HTTPStatus from typing import Any from aiohttp import ClientConnectionError, ClientResponseError from tessie_api import get_state_of_all_vehicles import voluptuous as vol 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/solax/const.py
homeassistant/components/solax/const.py
"""Constants for the solax integration.""" DOMAIN = "solax" MANUFACTURER = "SolaX Power"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solax/coordinator.py
homeassistant/components/solax/coordinator.py
"""Constants for the solax integration.""" from solax import InverterResponse from homeassistant.helpers.update_coordinator import DataUpdateCoordinator class SolaxDataUpdateCoordinator(DataUpdateCoordinator[InverterResponse]): """DataUpdateCoordinator for solax."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solax/sensor.py
homeassistant/components/solax/sensor.py
"""Support for Solax inverter via local API.""" from __future__ import annotations from solax.units import Units from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.const import ( PERCENTAGE, UnitOfElec...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solax/__init__.py
homeassistant/components/solax/__init__.py
"""The solax component.""" from dataclasses import dataclass from datetime import timedelta import logging from solax import InverterResponse, RealTimeAPI, real_time_api from solax.inverter import InverterError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_IP_ADDRESS, CONF...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solax/config_flow.py
homeassistant/components/solax/config_flow.py
"""Config flow for solax integration.""" from __future__ import annotations import logging from typing import Any from solax import real_time_api from solax.discovery import DiscoveryError import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult 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/sense/binary_sensor.py
homeassistant/components/sense/binary_sensor.py
"""Support for monitoring a Sense energy sensor device.""" import logging from sense_energy.sense_api import SenseDevice from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_re...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sense/const.py
homeassistant/components/sense/const.py
"""Constants for monitoring a Sense energy sensor.""" import socket from sense_energy import ( SenseAPIException, SenseAPITimeoutException, SenseWebsocketException, ) DOMAIN = "sense" DEFAULT_TIMEOUT = 30 ACTIVE_UPDATE_RATE = 60 TREND_UPDATE_RATE = 300 DEFAULT_NAME = "Sense" SENSE_DEVICE_UPDATE = "sense_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sense/coordinator.py
homeassistant/components/sense/coordinator.py
"""Sense Coordinators.""" from __future__ import annotations from datetime import timedelta import logging from typing import TYPE_CHECKING from sense_energy import ( ASyncSenseable, SenseAuthenticationException, SenseMFARequiredException, ) from homeassistant.core import HomeAssistant from homeassistan...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/sense/sensor.py
homeassistant/components/sense/sensor.py
"""Support for monitoring a Sense energy sensor.""" from datetime import datetime from sense_energy import ASyncSenseable, Scale from sense_energy.sense_api import SenseDevice from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorStateClass, ) 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/sense/__init__.py
homeassistant/components/sense/__init__.py
"""Support for monitoring a Sense energy sensor.""" from dataclasses import dataclass from functools import partial import logging from sense_energy import ( ASyncSenseable, SenseAuthenticationException, SenseMFARequiredException, ) from homeassistant.config_entries import ConfigEntry 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/sense/entity.py
homeassistant/components/sense/entity.py
"""Base entities for Sense energy.""" from sense_energy import ASyncSenseable from sense_energy.sense_api import SenseDevice from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ATTRIBUTION, DOMAIN, MDI_ICONS from .coor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false