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/eafm/const.py
homeassistant/components/eafm/const.py
"""Constants for the eafm component.""" DOMAIN = "eafm"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/eafm/coordinator.py
homeassistant/components/eafm/coordinator.py
"""UK Environment Agency Flood Monitoring Integration.""" import asyncio from datetime import timedelta import logging from typing import Any from aioeafm import get_station from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/eafm/sensor.py
homeassistant/components/eafm/sensor.py
"""Support for gauges from flood monitoring API.""" from typing import Any from homeassistant.components.sensor import SensorEntity, SensorStateClass from homeassistant.const import UnitOfLength from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.device_registry import DeviceEntryType, 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/eafm/__init__.py
homeassistant/components/eafm/__init__.py
"""UK Environment Agency Flood Monitoring Integration.""" from homeassistant.const import Platform from homeassistant.core import HomeAssistant from .coordinator import EafmConfigEntry, EafmCoordinator PLATFORMS = [Platform.SENSOR] async def async_setup_entry(hass: HomeAssistant, entry: EafmConfigEntry) -> bool: ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/eafm/config_flow.py
homeassistant/components/eafm/config_flow.py
"""Config flow to configure flood monitoring gauges.""" from typing import Any from aioeafm import get_stations import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.helpers.aiohttp_client import async_get_clientsession from .const import DOMAIN class UK...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mini_connected/__init__.py
homeassistant/components/mini_connected/__init__.py
"""Virtual integration: MINI Connected."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mythicbeastsdns/__init__.py
homeassistant/components/mythicbeastsdns/__init__.py
"""Support for Mythic Beasts Dynamic DNS service.""" from datetime import timedelta import mbddns import voluptuous as vol from homeassistant.const import ( CONF_DOMAIN, CONF_HOST, CONF_PASSWORD, CONF_SCAN_INTERVAL, ) from homeassistant.core import HomeAssistant from homeassistant.helpers import conf...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/diagnostics.py
homeassistant/components/switchbot/diagnostics.py
"""Diagnostics support for switchbot integration.""" from __future__ import annotations from typing import Any from homeassistant.components import bluetooth from homeassistant.components.diagnostics import async_redact_data from homeassistant.core import HomeAssistant from .const import CONF_ENCRYPTION_KEY, CONF_K...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/vacuum.py
homeassistant/components/switchbot/vacuum.py
"""Support for switchbot vacuums.""" from __future__ import annotations from typing import Any import switchbot from switchbot import SwitchbotModel from homeassistant.components.vacuum import ( StateVacuumEntity, VacuumActivity, VacuumEntityFeature, ) from homeassistant.core import HomeAssistant 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/switchbot/cover.py
homeassistant/components/switchbot/cover.py
"""Support for SwitchBot curtains.""" from __future__ import annotations import logging from typing import Any import switchbot from homeassistant.components.cover import ( ATTR_CURRENT_POSITION, ATTR_CURRENT_TILT_POSITION, ATTR_POSITION, ATTR_TILT_POSITION, CoverDeviceClass, CoverEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/switch.py
homeassistant/components/switchbot/switch.py
"""Support for Switchbot bot.""" from __future__ import annotations import logging from typing import Any import switchbot from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity from homeassistant.const import STATE_ON from homeassistant.core import HomeAssistant from homeassistant.helpers.devi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/binary_sensor.py
homeassistant/components/switchbot/binary_sensor.py
"""Support for SwitchBot binary sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from switchbot import SwitchbotModel from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/lock.py
homeassistant/components/switchbot/lock.py
"""Support for SwitchBot lock platform.""" from typing import Any import switchbot from switchbot.const import LockStatus from homeassistant.components.lock import LockEntity, LockEntityFeature from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallba...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/const.py
homeassistant/components/switchbot/const.py
"""Constants for the switchbot integration.""" from enum import StrEnum import switchbot from switchbot import SwitchbotModel DOMAIN = "switchbot" MANUFACTURER = "switchbot" # Config Attributes DEFAULT_NAME = "Switchbot" class SupportedModels(StrEnum): """Supported Switchbot models.""" BOT = "bot" 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/switchbot/coordinator.py
homeassistant/components/switchbot/coordinator.py
"""Provides the switchbot DataUpdateCoordinator.""" from __future__ import annotations import asyncio import contextlib import logging from typing import TYPE_CHECKING import switchbot from switchbot import SwitchbotModel from homeassistant.components import bluetooth from homeassistant.components.bluetooth.active_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/fan.py
homeassistant/components/switchbot/fan.py
"""Support for SwitchBot Fans.""" from __future__ import annotations import logging from typing import Any import switchbot from switchbot import AirPurifierMode, FanMode from homeassistant.components.fan import FanEntity, FanEntityFeature from homeassistant.core import HomeAssistant from homeassistant.helpers.enti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/sensor.py
homeassistant/components/switchbot/sensor.py
"""Support for SwitchBot sensors.""" from __future__ import annotations import switchbot from switchbot import HumidifierWaterLevel from switchbot.const.air_purifier import AirQualityLevel from homeassistant.components.bluetooth import async_last_service_info from homeassistant.components.sensor import ( SensorD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/__init__.py
homeassistant/components/switchbot/__init__.py
"""Support for Switchbot devices.""" import logging import switchbot from homeassistant.components import bluetooth from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_ADDRESS, CONF_MAC, CONF_NAME, CONF_PASSWORD, CONF_SENSOR_TYPE, Platform, ) from homea...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/humidifier.py
homeassistant/components/switchbot/humidifier.py
"""Support for Switchbot humidifier.""" from __future__ import annotations import logging from typing import Any import switchbot from switchbot import HumidifierAction as SwitchbotHumidifierAction, HumidifierMode from homeassistant.components.humidifier import ( MODE_AUTO, MODE_NORMAL, HumidifierAction...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/entity.py
homeassistant/components/switchbot/entity.py
"""An abstract class common to all Switchbot entities.""" from __future__ import annotations from collections.abc import Callable, Coroutine, Mapping import logging from typing import Any, Concatenate import switchbot from switchbot import Switchbot, SwitchbotDevice from switchbot.devices.device import SwitchbotOper...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/button.py
homeassistant/components/switchbot/button.py
"""Button support for SwitchBot devices.""" import logging import switchbot from homeassistant.components.button import ButtonEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from .coordinator import SwitchbotConfigEntry, SwitchbotD...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/climate.py
homeassistant/components/switchbot/climate.py
"""Support for Switchbot Climate devices.""" from __future__ import annotations import logging from typing import Any import switchbot from switchbot import ( ClimateAction as SwitchBotClimateAction, ClimateMode as SwitchBotClimateMode, ) from homeassistant.components.climate import ( ClimateEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/light.py
homeassistant/components/switchbot/light.py
"""Switchbot integration light platform.""" from __future__ import annotations import logging from typing import Any, cast import switchbot from switchbot import ColorMode as SwitchBotColorMode from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP_KELVIN, ATTR_EFFECT, ATTR_RG...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/switchbot/config_flow.py
homeassistant/components/switchbot/config_flow.py
"""Config flow for Switchbot.""" from __future__ import annotations import logging from typing import Any from switchbot import ( SwitchbotAccountConnectionError, SwitchBotAdvertisement, SwitchbotApiError, SwitchbotAuthenticationError, SwitchbotModel, fetch_cloud_devices, parse_advertisem...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/imgw_pib/diagnostics.py
homeassistant/components/imgw_pib/diagnostics.py
"""Diagnostics support for IMGW-PIB.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.core import HomeAssistant from .coordinator import ImgwPibConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: ImgwPibConfigEntry...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/imgw_pib/const.py
homeassistant/components/imgw_pib/const.py
"""Constants for the IMGW-PIB integration.""" from datetime import timedelta DOMAIN = "imgw_pib" ATTRIBUTION = "Data provided by IMGW-PIB" CONF_STATION_ID = "station_id" UPDATE_INTERVAL = timedelta(minutes=30)
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/imgw_pib/coordinator.py
homeassistant/components/imgw_pib/coordinator.py
"""Data Update Coordinator for IMGW-PIB integration.""" from __future__ import annotations from dataclasses import dataclass import logging from imgw_pib import ApiError, HydrologicalData, ImgwPib from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.he...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/imgw_pib/sensor.py
homeassistant/components/imgw_pib/sensor.py
"""IMGW-PIB sensor platform.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from imgw_pib.const import HYDROLOGICAL_ALERTS_MAP, NO_ALERT from imgw_pib.model import HydrologicalData from homeassistant.components.sensor import ( ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/imgw_pib/__init__.py
homeassistant/components/imgw_pib/__init__.py
"""The IMGW-PIB integration.""" from __future__ import annotations import logging from aiohttp import ClientError from imgw_pib import ImgwPib from imgw_pib.exceptions import ApiError from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_PLATFORM from homeassistant.const import Platform from ho...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/imgw_pib/entity.py
homeassistant/components/imgw_pib/entity.py
"""Define the IMGW-PIB entity.""" from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ATTRIBUTION from .coordinator import ImgwPibDataUpdateCoordinator class ImgwPibEntity(CoordinatorEntity[ImgwPibDataUpdateCoordinator]): """Define IMGW-PIB entity.""" _attr_attribution...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/imgw_pib/config_flow.py
homeassistant/components/imgw_pib/config_flow.py
"""Config flow for IMGW-PIB integration.""" from __future__ import annotations import logging from typing import Any from aiohttp import ClientError from imgw_pib import ImgwPib from imgw_pib.exceptions import ApiError 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/anglian_water/const.py
homeassistant/components/anglian_water/const.py
"""Constants for the Anglian Water integration.""" DOMAIN = "anglian_water" CONF_ACCOUNT_NUMBER = "account_number"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/anglian_water/coordinator.py
homeassistant/components/anglian_water/coordinator.py
"""Anglian Water data coordinator.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from pyanglianwater import AnglianWater from pyanglianwater.exceptions import ExpiredAccessTokenError, UnknownEndpointError from homeassistant.components.recorder 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/anglian_water/sensor.py
homeassistant/components/anglian_water/sensor.py
"""Anglian Water sensor platform.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from enum import StrEnum from pyanglianwater.meter import SmartMeter from homeassistant.components.sensor import ( EntityCategory, SensorDeviceClass, SensorEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/anglian_water/__init__.py
homeassistant/components/anglian_water/__init__.py
"""The Anglian Water integration.""" from __future__ import annotations from aiohttp import CookieJar from pyanglianwater import AnglianWater from pyanglianwater.auth import MSOB2CAuth from pyanglianwater.exceptions import ( ExpiredAccessTokenError, SelfAssertedError, SmartMeterUnavailableError, ) 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/anglian_water/entity.py
homeassistant/components/anglian_water/entity.py
"""Anglian Water entity.""" from __future__ import annotations import logging from pyanglianwater.meter import SmartMeter from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import AnglianWat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/anglian_water/config_flow.py
homeassistant/components/anglian_water/config_flow.py
"""Config flow for the Anglian Water integration.""" from __future__ import annotations import logging from typing import TYPE_CHECKING, Any from aiohttp import CookieJar from pyanglianwater import AnglianWater from pyanglianwater.auth import MSOB2CAuth from pyanglianwater.exceptions import ( InvalidAccountIdErr...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ismartwindow/__init__.py
homeassistant/components/ismartwindow/__init__.py
"""Virtual integration: iSmartWindow."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/thingspeak/__init__.py
homeassistant/components/thingspeak/__init__.py
"""Support for submitting data to Thingspeak.""" import logging from requests.exceptions import RequestException import thingspeak import voluptuous as vol from homeassistant.const import ( CONF_API_KEY, CONF_ID, CONF_WHITELIST, STATE_UNAVAILABLE, STATE_UNKNOWN, ) from homeassistant.core import 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/solarlog/diagnostics.py
homeassistant/components/solarlog/diagnostics.py
"""Provides diagnostics for Solarlog.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_HOST from homeassistant.core import HomeAssistant from .coordinator import SolarlogConfigEntry TO_REDACT = [ ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solarlog/const.py
homeassistant/components/solarlog/const.py
"""Constants for the Solar-Log integration.""" from __future__ import annotations DOMAIN = "solarlog" # Default config for solarlog. DEFAULT_HOST = "http://solar-log" CONF_HAS_PWD = "has_password"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solarlog/coordinator.py
homeassistant/components/solarlog/coordinator.py
"""DataUpdateCoordinator for solarlog integration.""" from __future__ import annotations from collections.abc import Callable from datetime import timedelta import logging from urllib.parse import ParseResult, urlparse from aiohttp import CookieJar from solarlog_cli.solarlog_connector import SolarLogConnector from 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/solarlog/sensor.py
homeassistant/components/solarlog/sensor.py
"""Platform for solarlog sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from solarlog_cli.solarlog_models import BatteryData, InverterData, SolarlogData from homeassistant.components.sensor import ( SensorDevice...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solarlog/__init__.py
homeassistant/components/solarlog/__init__.py
"""Solar-Log integration.""" import logging from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er from .const import CONF_HAS_PWD from .coordinator import SolarlogConfigEntry, SolarLogCoordinator _LOGGER = logging.getLogger(__na...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/solarlog/entity.py
homeassistant/components/solarlog/entity.py
"""Entities for SolarLog integration.""" from __future__ import annotations from homeassistant.components.sensor import SensorEntityDescription from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from homeassistant.util import slugify 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/solarlog/config_flow.py
homeassistant/components/solarlog/config_flow.py
"""Config flow for solarlog integration.""" from collections.abc import Mapping from typing import Any from urllib.parse import ParseResult, urlparse from solarlog_cli.solarlog_connector import SolarLogConnector from solarlog_cli.solarlog_exceptions import ( SolarLogAuthenticationError, SolarLogConnectionErro...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ssdp/common.py
homeassistant/components/ssdp/common.py
"""Common functions for SSDP discovery.""" from __future__ import annotations from ipaddress import IPv4Address, IPv6Address from homeassistant.components import network from homeassistant.core import HomeAssistant async def async_build_source_set(hass: HomeAssistant) -> set[IPv4Address | IPv6Address]: """Buil...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ssdp/scanner.py
homeassistant/components/ssdp/scanner.py
"""The SSDP integration scanner.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine, Mapping from datetime import timedelta from enum import Enum from ipaddress import IPv4Address import logging from typing import TYPE_CHECKING, Any from async_upnp_client.aiohttp 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/ssdp/websocket_api.py
homeassistant/components/ssdp/websocket_api.py
"""The ssdp integration websocket apis.""" from __future__ import annotations from dataclasses import asdict from typing import Any, Final import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import HassJob, HomeAssistant, callback from homeassistant.helpers.json 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/ssdp/const.py
homeassistant/components/ssdp/const.py
"""Constants for the SSDP integration.""" from __future__ import annotations DOMAIN = "ssdp" SSDP_SCANNER = "scanner" UPNP_SERVER = "server"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ssdp/__init__.py
homeassistant/components/ssdp/__init__.py
"""The SSDP integration.""" from __future__ import annotations from collections.abc import Callable, Coroutine from functools import partial from typing import Any from homeassistant.core import HassJob, HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.helpers.deprecation 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/ssdp/server.py
homeassistant/components/ssdp/server.py
"""The SSDP integration server.""" from __future__ import annotations import asyncio from contextlib import ExitStack import logging import socket from time import time from typing import Any from urllib.parse import urljoin import xml.etree.ElementTree as ET from async_upnp_client.const import AddressTupleVXType, 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/systemmonitor/diagnostics.py
homeassistant/components/systemmonitor/diagnostics.py
"""Diagnostics support for Sensibo.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from . import SystemMonitorConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: SystemMonitorConfigEntry ) -> dict[str, Any]: """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/systemmonitor/util.py
homeassistant/components/systemmonitor/util.py
"""Utils for System Monitor.""" import logging import os from psutil._common import sfan, shwtemp import psutil_home_assistant as ha_psutil from homeassistant.core import HomeAssistant from .const import CPU_SENSOR_PREFIXES _LOGGER = logging.getLogger(__name__) SKIP_DISK_TYPES = {"proc", "tmpfs", "devtmpfs"} de...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/systemmonitor/binary_sensor.py
homeassistant/components/systemmonitor/binary_sensor.py
"""Binary sensors for System Monitor.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from functools import lru_cache import logging import sys from typing import Literal from homeassistant.components.binary_sensor import ( DOMAIN as BINARY_SENSOR_DOMA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/systemmonitor/const.py
homeassistant/components/systemmonitor/const.py
"""Constants for System Monitor.""" from psutil import AccessDenied, Error, NoSuchProcess, TimeoutExpired, ZombieProcess DOMAIN = "systemmonitor" CONF_INDEX = "index" CONF_PROCESS = "process" NET_IO_TYPES = [ "network_in", "network_out", "throughput_network_in", "throughput_network_out", "packet...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/systemmonitor/coordinator.py
homeassistant/components/systemmonitor/coordinator.py
"""DataUpdateCoordinators for the System monitor integration.""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime import logging import os from typing import TYPE_CHECKING, Any, NamedTuple from psutil import Process from psutil._common import sbattery, sdiskusage, sh...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/systemmonitor/sensor.py
homeassistant/components/systemmonitor/sensor.py
"""Support for monitoring the local system.""" from __future__ import annotations from collections.abc import Callable import contextlib from dataclasses import dataclass from datetime import datetime, timedelta from functools import lru_cache import ipaddress import logging import socket import sys import time 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/systemmonitor/__init__.py
homeassistant/components/systemmonitor/__init__.py
"""The System Monitor integration.""" from dataclasses import dataclass import logging import psutil_home_assistant as ha_psutil from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN 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/systemmonitor/config_flow.py
homeassistant/components/systemmonitor/config_flow.py
"""Adds config flow for System Monitor.""" from __future__ import annotations from collections.abc import Mapping from typing import Any import voluptuous as vol from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN from homeassistant.helpers import entity_registry as er from homeassista...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/typing.py
homeassistant/components/xiaomi_miio/typing.py
"""Typings for the xiaomi_miio integration.""" from dataclasses import dataclass from typing import Any, NamedTuple from miio import Device as MiioDevice from miio.gateway.gateway import Gateway import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.helpers.update_coordinato...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/diagnostics.py
homeassistant/components/xiaomi_miio/diagnostics.py
"""Diagnostics support for Xiaomi Miio.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_DEVICE, CONF_MAC, CONF_TOKEN, CONF_UNIQUE_ID from homeassistant.core import HomeAssistant from .const import 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/xiaomi_miio/device_tracker.py
homeassistant/components/xiaomi_miio/device_tracker.py
"""Support for Xiaomi Mi WiFi Repeater 2.""" from __future__ import annotations import logging from miio import DeviceException, WifiRepeater import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM_SCHEMA, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/vacuum.py
homeassistant/components/xiaomi_miio/vacuum.py
"""Support for the Xiaomi vacuum cleaner robot.""" from __future__ import annotations from functools import partial import logging from typing import Any from miio import DeviceException import voluptuous as vol from homeassistant.components.vacuum import ( StateVacuumEntity, VacuumActivity, VacuumEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/switch.py
homeassistant/components/xiaomi_miio/switch.py
"""Support for Xiaomi Smart WiFi Socket and Smart Power Strip.""" from __future__ import annotations import asyncio from dataclasses import dataclass from functools import partial import logging from typing import Any from miio import ( AirConditioningCompanionV3, ChuangmiPlug, Device as MiioDevice, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
true
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/number.py
homeassistant/components/xiaomi_miio/number.py
"""Motor speed support for Xiaomi Mi Air Humidifier.""" from __future__ import annotations import dataclasses from dataclasses import dataclass from typing import Any from miio import Device as MiioDevice from homeassistant.components.number import ( DOMAIN as PLATFORM_DOMAIN, NumberEntity, NumberEntity...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/binary_sensor.py
homeassistant/components/xiaomi_miio/binary_sensor.py
"""Support for Xiaomi Miio binary sensors.""" from __future__ import annotations from collections.abc import Callable, Iterable from dataclasses import dataclass import logging from typing import TYPE_CHECKING, Any from miio import Device as MiioDevice from homeassistant.components.binary_sensor import ( Binary...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/const.py
homeassistant/components/xiaomi_miio/const.py
"""Constants for the Xiaomi Miio component.""" from miio.integrations.vacuum.roborock.vacuum import ( ROCKROBO_E2, ROCKROBO_S4, ROCKROBO_S4_MAX, ROCKROBO_S5, ROCKROBO_S5_MAX, ROCKROBO_S6, ROCKROBO_S6_MAXV, ROCKROBO_S6_PURE, ROCKROBO_S7, ROCKROBO_S7_MAXV, ROCKROBO_V1, ) DOMA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/fan.py
homeassistant/components/xiaomi_miio/fan.py
"""Support for Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier.""" from __future__ import annotations from abc import abstractmethod import asyncio import logging import math from typing import Any from miio import Device as MiioDevice from miio.fan_common import ( MoveDirection as FanMoveDirection, Oper...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
true
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/sensor.py
homeassistant/components/xiaomi_miio/sensor.py
"""Support for Xiaomi Mi Air Quality Monitor (PM2.5) and Humidifier.""" from __future__ import annotations from collections.abc import Iterable from dataclasses import dataclass import logging from typing import TYPE_CHECKING, Any from miio import AirQualityMonitor, Device as MiioDevice, DeviceException from miio.ga...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
true
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/__init__.py
homeassistant/components/xiaomi_miio/__init__.py
"""Support for Xiaomi Miio.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine from dataclasses import dataclass from datetime import timedelta import logging from typing import Any from miio import ( AirFresh, AirFreshA1, AirFreshT2017, AirHumidifier...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/humidifier.py
homeassistant/components/xiaomi_miio/humidifier.py
"""Support for Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier with humidifier entity.""" import logging import math from typing import Any from miio import Device as MiioDevice from miio.integrations.humidifier.deerma.airhumidifier_mjjsq import ( OperationMode as AirhumidifierMjjsqOperationMode, ) from miio....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/remote.py
homeassistant/components/xiaomi_miio/remote.py
"""Support for the Xiaomi IR Remote (Chuangmi IR).""" from __future__ import annotations import asyncio from datetime import timedelta import logging import time from typing import Any from miio import ChuangmiIr, DeviceException import voluptuous as vol from homeassistant.components import persistent_notification ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/entity.py
homeassistant/components/xiaomi_miio/entity.py
"""Code to handle a Xiaomi Device.""" import datetime from enum import Enum from functools import partial import logging from typing import TYPE_CHECKING, Any from miio import Device as MiioDevice, DeviceException from miio.gateway.devices import SubDevice from homeassistant.const import ATTR_CONNECTIONS, CONF_MAC, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/button.py
homeassistant/components/xiaomi_miio/button.py
"""Support for Xiaomi buttons.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from miio import Device as MiioDevice from miio.integrations.vacuum.roborock.vacuum import Consumable from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/alarm_control_panel.py
homeassistant/components/xiaomi_miio/alarm_control_panel.py
"""Support for Xiomi Gateway alarm control panels.""" from __future__ import annotations from functools import partial import logging from miio import DeviceException from homeassistant.components.alarm_control_panel import ( AlarmControlPanelEntity, AlarmControlPanelEntityFeature, AlarmControlPanelStat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/select.py
homeassistant/components/xiaomi_miio/select.py
"""Support led_brightness for Mi Air Humidifier.""" from __future__ import annotations from dataclasses import dataclass, field import logging from typing import Any, NamedTuple from miio import Device as MiioDevice from miio.fan_common import LedBrightness as FanLedBrightness from miio.integrations.airpurifier.dmak...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/air_quality.py
homeassistant/components/xiaomi_miio/air_quality.py
"""Support for Xiaomi Mi Air Quality Monitor (PM2.5).""" from collections.abc import Callable import logging from miio import ( AirQualityMonitor, AirQualityMonitorCGDN1, Device as MiioDevice, DeviceException, ) from homeassistant.components.air_quality import AirQualityEntity from homeassistant.cons...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/device.py
homeassistant/components/xiaomi_miio/device.py
"""Code to handle a Xiaomi Device.""" import logging from construct.core import ChecksumError from miio import Device, DeviceException from .const import AuthException, SetupException _LOGGER = logging.getLogger(__name__) class ConnectXiaomiDevice: """Class to async connect to a Xiaomi Device.""" def __i...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/light.py
homeassistant/components/xiaomi_miio/light.py
"""Support for Xiaomi Philips Lights.""" from __future__ import annotations import asyncio import datetime from datetime import timedelta from functools import partial import logging from math import ceil from typing import Any from miio import ( Ceil, Device as MiioDevice, DeviceException, PhilipsBu...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
true
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/config_flow.py
homeassistant/components/xiaomi_miio/config_flow.py
"""Config flow to configure Xiaomi Miio.""" from __future__ import annotations from collections.abc import Mapping import logging from re import search from typing import Any from micloud import MiCloud from micloud.micloudexception import MiCloudAccessDenied import voluptuous as vol from homeassistant.config_entri...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/xiaomi_miio/gateway.py
homeassistant/components/xiaomi_miio/gateway.py
"""Code to handle a Xiaomi Gateway.""" import logging from construct.core import ChecksumError from micloud import MiCloud from micloud.micloudexception import MiCloudAccessDenied from miio import DeviceException, gateway from miio.gateway.gateway import GATEWAY_MODEL_EU from .const import ( CONF_CLOUD_COUNTRY, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/manual/__init__.py
homeassistant/components/manual/__init__.py
"""The manual 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/manual/alarm_control_panel.py
homeassistant/components/manual/alarm_control_panel.py
"""Support for manual alarms.""" from __future__ import annotations import datetime from typing import Any import voluptuous as vol from homeassistant.components.alarm_control_panel import ( PLATFORM_SCHEMA as ALARM_CONTROL_PANEL_PLATFORM_SCHEMA, AlarmControlPanelEntity, AlarmControlPanelEntityFeature, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/geniushub/switch.py
homeassistant/components/geniushub/switch.py
"""Support for Genius Hub switch/outlet devices.""" from __future__ import annotations from datetime import timedelta from typing import Any import voluptuous as vol from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity from homeassistant.core import HomeAssistant from homeassistant.helpers 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/geniushub/binary_sensor.py
homeassistant/components/geniushub/binary_sensor.py
"""Support for Genius Hub binary_sensor devices.""" from __future__ import annotations from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from . import GeniusHubConfigEntry...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/geniushub/const.py
homeassistant/components/geniushub/const.py
"""Constants for Genius Hub.""" from datetime import timedelta from homeassistant.const import Platform DOMAIN = "geniushub" SCAN_INTERVAL = timedelta(seconds=60) SENSOR_PREFIX = "Genius" PLATFORMS = ( Platform.BINARY_SENSOR, Platform.CLIMATE, Platform.SENSOR, Platform.SWITCH, Platform.WATER_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/geniushub/sensor.py
homeassistant/components/geniushub/sensor.py
"""Support for Genius Hub sensor devices.""" from __future__ import annotations from datetime import timedelta from typing import Any from homeassistant.components.sensor import SensorDeviceClass, SensorEntity from homeassistant.const import PERCENTAGE from homeassistant.core import HomeAssistant 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/geniushub/__init__.py
homeassistant/components/geniushub/__init__.py
"""Support for a Genius Hub system.""" from __future__ import annotations from datetime import timedelta import logging import aiohttp from geniushubclient import GeniusHub import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_TE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/geniushub/entity.py
homeassistant/components/geniushub/entity.py
"""Base entity for Geniushub.""" from datetime import datetime, timedelta from typing import Any from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity import Entity 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/geniushub/water_heater.py
homeassistant/components/geniushub/water_heater.py
"""Support for Genius Hub water_heater devices.""" from __future__ import annotations from homeassistant.components.water_heater import ( WaterHeaterEntity, WaterHeaterEntityFeature, ) from homeassistant.const import STATE_OFF from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_plat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/geniushub/climate.py
homeassistant/components/geniushub/climate.py
"""Support for Genius Hub climate devices.""" from __future__ import annotations from homeassistant.components.climate import ( PRESET_ACTIVITY, PRESET_BOOST, ClimateEntity, ClimateEntityFeature, HVACAction, HVACMode, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.en...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/geniushub/config_flow.py
homeassistant/components/geniushub/config_flow.py
"""Config flow for Geniushub integration.""" from __future__ import annotations from http import HTTPStatus import logging import socket from typing import Any import aiohttp from geniushubclient import GeniusService import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult 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/co2signal/diagnostics.py
homeassistant/components/co2signal/diagnostics.py
"""Diagnostics support for CO2Signal.""" from __future__ import annotations from dataclasses import asdict from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_API_KEY from homeassistant.core import HomeAssistant from .coordinator import CO2S...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/co2signal/util.py
homeassistant/components/co2signal/util.py
"""Utils for CO2 signal.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from homeassistant.const import CONF_COUNTRY_CODE, CONF_LATITUDE, CONF_LONGITUDE def get_extra_name(config: Mapping[str, Any]) -> str | None: """Return the extra name describing the locatio...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/co2signal/const.py
homeassistant/components/co2signal/const.py
"""Constants for the Co2signal integration.""" DOMAIN = "co2signal" ATTRIBUTION = "Data provided by Electricity Maps"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/co2signal/coordinator.py
homeassistant/components/co2signal/coordinator.py
"""DataUpdateCoordinator for the co2signal integration.""" from __future__ import annotations from datetime import timedelta import logging from aioelectricitymaps import ( ElectricityMaps, ElectricityMapsError, ElectricityMapsInvalidTokenError, HomeAssistantCarbonIntensityResponse, ) from homeassis...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/co2signal/helpers.py
homeassistant/components/co2signal/helpers.py
"""Helper functions for the CO2 Signal integration.""" from __future__ import annotations from collections.abc import Mapping from typing import Any from aioelectricitymaps import ( CoordinatesRequest, ElectricityMaps, HomeAssistantCarbonIntensityResponse, ZoneRequest, ) 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/co2signal/sensor.py
homeassistant/components/co2signal/sensor.py
"""Support for the CO2signal platform.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from aioelectricitymaps import HomeAssistantCarbonIntensityResponse from homeassistant.components.sensor import ( SensorEntity, SensorEntityDescription, Sen...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/co2signal/__init__.py
homeassistant/components/co2signal/__init__.py
"""The CO2 Signal integration.""" from __future__ import annotations from aioelectricitymaps import ElectricityMaps from homeassistant.const import CONF_API_KEY, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession from .coordinator import CO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false