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/homeassistant_yellow/__init__.py
homeassistant/components/homeassistant_yellow/__init__.py
"""The Home Assistant Yellow integration.""" from __future__ import annotations from dataclasses import dataclass import logging from homeassistant.components.hassio import get_os_info from homeassistant.components.homeassistant_hardware.coordinator import ( FirmwareUpdateCoordinator, ) from homeassistant.compon...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/homeassistant_yellow/config_flow.py
homeassistant/components/homeassistant_yellow/config_flow.py
"""Config flow for the Home Assistant Yellow integration.""" from __future__ import annotations from abc import ABC, abstractmethod import asyncio import logging from typing import TYPE_CHECKING, Any, Protocol, final import voluptuous as vol from homeassistant.components.hassio import ( SupervisorError, Yel...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_photos/api.py
homeassistant/components/google_photos/api.py
"""API for Google Photos bound to Home Assistant OAuth.""" from typing import cast import aiohttp from google_photos_library_api import api from homeassistant.const import CONF_ACCESS_TOKEN from homeassistant.helpers import config_entry_oauth2_flow class AsyncConfigEntryAuth(api.AbstractAuth): """Provide Googl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_photos/application_credentials.py
homeassistant/components/google_photos/application_credentials.py
"""application_credentials platform the Google Photos integration.""" from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssistant from .const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN async def async_get_authorization_server(hass: HomeAssistant) -> Autho...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_photos/services.py
homeassistant/components/google_photos/services.py
"""Google Photos services.""" from __future__ import annotations import asyncio import mimetypes from pathlib import Path from google_photos_library_api.exceptions import GooglePhotosApiError from google_photos_library_api.model import NewMediaItem, SimpleMediaItem import voluptuous as vol from homeassistant.const ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_photos/media_source.py
homeassistant/components/google_photos/media_source.py
"""Media source for Google Photos.""" from __future__ import annotations from dataclasses import dataclass from enum import StrEnum import logging from typing import Self, cast from google_photos_library_api.exceptions import GooglePhotosApiError from google_photos_library_api.model import Album, MediaItem 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/google_photos/const.py
homeassistant/components/google_photos/const.py
"""Constants for the Google Photos integration.""" DOMAIN = "google_photos" OAUTH2_AUTHORIZE = "https://accounts.google.com/o/oauth2/v2/auth" OAUTH2_TOKEN = "https://oauth2.googleapis.com/token" UPLOAD_SCOPE = "https://www.googleapis.com/auth/photoslibrary.appendonly" READ_SCOPE = "https://www.googleapis.com/auth/ph...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/google_photos/coordinator.py
homeassistant/components/google_photos/coordinator.py
"""Coordinator for fetching data from Google Photos API. This coordinator fetches the list of Google Photos albums that were created by Home Assistant, which for large libraries may take some time. The list of album ids and titles is cached and this provides a method to refresh urls since they are short lived. """ 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/google_photos/__init__.py
homeassistant/components/google_photos/__init__.py
"""The Google Photos integration.""" from __future__ import annotations from aiohttp import ClientError, ClientResponseError from google_photos_library_api.api import GooglePhotosLibraryApi from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady 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/google_photos/config_flow.py
homeassistant/components/google_photos/config_flow.py
"""Config flow for Google Photos.""" from collections.abc import Mapping import logging from typing import Any from google_photos_library_api.api import GooglePhotosLibraryApi from google_photos_library_api.exceptions import GooglePhotosApiError from homeassistant.config_entries import SOURCE_REAUTH, ConfigFlowResul...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blackbird/media_player.py
homeassistant/components/blackbird/media_player.py
"""Support for interfacing with Monoprice Blackbird 4k 8x8 HDBaseT Matrix.""" from __future__ import annotations import logging from pyblackbird import get_blackbird from serial import SerialException import voluptuous as vol from homeassistant.components.media_player import ( PLATFORM_SCHEMA as MEDIA_PLAYER_PL...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blackbird/const.py
homeassistant/components/blackbird/const.py
"""Constants for the Monoprice Blackbird Matrix Switch component.""" DOMAIN = "blackbird" SERVICE_SETALLZONES = "set_all_zones"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/blackbird/__init__.py
homeassistant/components/blackbird/__init__.py
"""The blackbird 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/octoprint/number.py
homeassistant/components/octoprint/number.py
"""Support for OctoPrint number entities.""" from __future__ import annotations import logging from pyoctoprintapi import OctoprintClient from homeassistant.components.number import NumberDeviceClass, NumberEntity, NumberMode from homeassistant.config_entries import ConfigEntry from homeassistant.const import UnitO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/binary_sensor.py
homeassistant/components/octoprint/binary_sensor.py
"""Support for monitoring OctoPrint binary sensors.""" from __future__ import annotations from abc import abstractmethod from pyoctoprintapi import OctoprintPrinterInfo from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/camera.py
homeassistant/components/octoprint/camera.py
"""Support for OctoPrint binary camera.""" from __future__ import annotations from pyoctoprintapi import OctoprintClient, WebcamSettings from homeassistant.components.mjpeg import MjpegCamera from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_VERIFY_SSL from homeassistant.core ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/const.py
homeassistant/components/octoprint/const.py
"""Constants for the OctoPrint integration.""" DOMAIN = "octoprint" DEFAULT_NAME = "OctoPrint" SERVICE_CONNECT = "printer_connect" CONF_BAUDRATE = "baudrate"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/coordinator.py
homeassistant/components/octoprint/coordinator.py
"""The data update coordinator for OctoPrint.""" from __future__ import annotations from datetime import timedelta import logging from typing import cast from pyoctoprintapi import ApiError, OctoprintClient, PrinterOffline from pyoctoprintapi.exceptions import UnauthorizedException from yarl import URL from homeass...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/sensor.py
homeassistant/components/octoprint/sensor.py
"""Support for monitoring OctoPrint sensors.""" from __future__ import annotations from datetime import datetime, timedelta import logging from pyoctoprintapi import OctoprintJobInfo, OctoprintPrinterInfo from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorStateClass, ) ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/__init__.py
homeassistant/components/octoprint/__init__.py
"""Support for monitoring OctoPrint 3D printers.""" from __future__ import annotations import logging from typing import cast import aiohttp from pyoctoprintapi import OctoprintClient import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const import ( C...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/button.py
homeassistant/components/octoprint/button.py
"""Support for Octoprint buttons.""" from pyoctoprintapi import OctoprintClient, OctoprintPrinterInfo from homeassistant.components.button import ButtonDeviceClass, ButtonEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/octoprint/config_flow.py
homeassistant/components/octoprint/config_flow.py
"""Config flow for OctoPrint integration.""" from __future__ import annotations import asyncio from collections.abc import Mapping import logging from typing import TYPE_CHECKING, Any import aiohttp from pyoctoprintapi import ApiError, OctoprintClient, OctoprintException import voluptuous as vol from yarl import URL...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/raincloud/switch.py
homeassistant/components/raincloud/switch.py
"""Support for Melnor RainCloud sprinkler water timer.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.components.switch import ( PLATFORM_SCHEMA as SWITCH_PLATFORM_SCHEMA, SwitchEntity, ) from homeassistant.const import CONF_MONITORED_...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/raincloud/binary_sensor.py
homeassistant/components/raincloud/binary_sensor.py
"""Support for Melnor RainCloud sprinkler water timer.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant.components.binary_sensor import ( PLATFORM_SCHEMA as BINARY_SENSOR_PLATFORM_SCHEMA, BinarySensorEntity, ) from homeassistant.const import CONF_MONITORED_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/raincloud/const.py
homeassistant/components/raincloud/const.py
"""Support for Melnor RainCloud sprinkler water timer.""" DATA_RAINCLOUD = "raincloud" ICON_MAP = { "auto_watering": "mdi:autorenew", "battery": "", "is_watering": "", "manual_watering": "mdi:water-pump", "next_cycle": "mdi:calendar-clock", "rain_delay": "mdi:weather-rainy", "status": "", ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/raincloud/sensor.py
homeassistant/components/raincloud/sensor.py
"""Support for Melnor RainCloud sprinkler water timer.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorEntity, ) from homeassistant.const import CONF_MONITORED_CONDITIONS, PERCENTAGE,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/raincloud/__init__.py
homeassistant/components/raincloud/__init__.py
"""Support for Melnor RainCloud sprinkler water timer.""" from datetime import timedelta import logging from raincloudy.core import RainCloudy from requests.exceptions import ConnectTimeout, HTTPError import voluptuous as vol from homeassistant.components import persistent_notification 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/raincloud/entity.py
homeassistant/components/raincloud/entity.py
"""Support for Melnor RainCloud sprinkler water timer.""" from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity import Entity from .const import SIGNAL_UPDATE_RAINCLOUD KEY_MAP = { "auto_watering": "Automatic Watering", "battery": "Battery", "is_watering"...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/maxcube/binary_sensor.py
homeassistant/components/maxcube/binary_sensor.py
"""Support for MAX! binary sensors via MAX! Cube.""" from __future__ import annotations from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.const import EntityCategory from homeassistant.core import HomeAssistant from homeassistant.helpers.ent...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/maxcube/__init__.py
homeassistant/components/maxcube/__init__.py
"""Support for the MAX! Cube LAN Gateway.""" import logging from threading import Lock import time from maxcube.cube import MaxCube import voluptuous as vol from homeassistant.components import persistent_notification from homeassistant.const import CONF_HOST, CONF_PORT, CONF_SCAN_INTERVAL, Platform 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/maxcube/climate.py
homeassistant/components/maxcube/climate.py
"""Support for MAX! Thermostats via MAX! Cube.""" from __future__ import annotations import logging from typing import Any from maxcube.device import ( MAX_DEVICE_MODE_AUTOMATIC, MAX_DEVICE_MODE_BOOST, MAX_DEVICE_MODE_MANUAL, MAX_DEVICE_MODE_VACATION, ) from homeassistant.components.climate 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/clicksend/__init__.py
homeassistant/components/clicksend/__init__.py
"""The clicksend 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/clicksend/notify.py
homeassistant/components/clicksend/notify.py
"""Clicksend platform for notify component.""" from __future__ import annotations from http import HTTPStatus import json import logging from typing import Any import requests import voluptuous as vol from homeassistant.components.notify import ( PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA, BaseNotificationSe...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/bge/__init__.py
homeassistant/components/bge/__init__.py
"""Virtual integration: Baltimore Gas and Electric (BGE)."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/gpslogger/device_tracker.py
homeassistant/components/gpslogger/device_tracker.py
"""Support for the GPSLogger device tracking.""" from homeassistant.components.device_tracker import TrackerEntity from homeassistant.const import ( ATTR_BATTERY_LEVEL, ATTR_GPS_ACCURACY, ATTR_LATITUDE, ATTR_LONGITUDE, ) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/gpslogger/const.py
homeassistant/components/gpslogger/const.py
"""Const for GPSLogger.""" DOMAIN = "gpslogger" ATTR_ALTITUDE = "altitude" ATTR_ACCURACY = "accuracy" ATTR_ACTIVITY = "activity" ATTR_DEVICE = "device" ATTR_DIRECTION = "direction" ATTR_PROVIDER = "provider" ATTR_SPEED = "speed"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/gpslogger/__init__.py
homeassistant/components/gpslogger/__init__.py
"""Support for GPSLogger.""" from http import HTTPStatus from aiohttp import web import voluptuous as vol from homeassistant.components import webhook from homeassistant.components.device_tracker import ATTR_BATTERY from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_LATITUDE, 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/gpslogger/config_flow.py
homeassistant/components/gpslogger/config_flow.py
"""Config flow for GPSLogger.""" from homeassistant.helpers import config_entry_flow from .const import DOMAIN config_entry_flow.register_webhook_flow( DOMAIN, "GPSLogger Webhook", {"docs_url": "https://www.home-assistant.io/integrations/gpslogger/"}, )
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomato/device_tracker.py
homeassistant/components/tomato/device_tracker.py
"""Support for Tomato routers.""" from __future__ import annotations from http import HTTPStatus import json import logging import re import requests import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM_SCH...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tomato/__init__.py
homeassistant/components/tomato/__init__.py
"""The tomato 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/tado/helper.py
homeassistant/components/tado/helper.py
"""Helper methods for Tado.""" from .const import ( CONST_OVERLAY_TADO_DEFAULT, CONST_OVERLAY_TADO_MODE, CONST_OVERLAY_TIMER, ) from .coordinator import TadoDataUpdateCoordinator def decide_overlay_mode( coordinator: TadoDataUpdateCoordinator, duration: int | None, zone_id: int, overlay_m...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/diagnostics.py
homeassistant/components/tado/diagnostics.py
"""Provides diagnostics for Tado.""" from __future__ import annotations from typing import Any from homeassistant.core import HomeAssistant from . import TadoConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, config_entry: TadoConfigEntry ) -> dict[str, Any]: """Return diagnost...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/repairs.py
homeassistant/components/tado/repairs.py
"""Repair implementations.""" from homeassistant.core import HomeAssistant from homeassistant.helpers import issue_registry as ir from .const import ( CONST_OVERLAY_MANUAL, CONST_OVERLAY_TADO_DEFAULT, DOMAIN, WATER_HEATER_FALLBACK_REPAIR, ) def manage_water_heater_fallback_issue( hass: 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/tado/device_tracker.py
homeassistant/components/tado/device_tracker.py
"""Support for Tado Smart device trackers.""" from __future__ import annotations import logging from homeassistant.components.device_tracker import ( DOMAIN as DEVICE_TRACKER_DOMAIN, TrackerEntity, ) from homeassistant.const import STATE_HOME, STATE_NOT_HOME from homeassistant.core import HomeAssistant, call...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/services.py
homeassistant/components/tado/services.py
"""Services for the Tado integration.""" import logging import voluptuous as vol from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.exceptions import HomeAssistantError, ServiceValidationError from homeassistant.helpers import selector from .const import ( ATTR_MESSAGE, C...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/models.py
homeassistant/components/tado/models.py
"""Models for use in Tado integration.""" from dataclasses import dataclass from .coordinator import TadoDataUpdateCoordinator, TadoMobileDeviceUpdateCoordinator @dataclass class TadoData: """Class to hold Tado data.""" coordinator: TadoDataUpdateCoordinator mobile_coordinator: TadoMobileDeviceUpdateCo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/switch.py
homeassistant/components/tado/switch.py
"""Module for Tado child lock switch entity.""" import logging from typing import Any from homeassistant.components.switch import SwitchEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback from . import TadoConfigEntry from .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/tado/binary_sensor.py
homeassistant/components/tado/binary_sensor.py
"""Support for Tado sensors for each zone.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from typing import Any from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntit...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/const.py
homeassistant/components/tado/const.py
"""Constant values for the Tado component.""" from PyTado.const import ( CONST_HVAC_COOL, CONST_HVAC_DRY, CONST_HVAC_FAN, CONST_HVAC_HEAT, CONST_HVAC_HOT_WATER, CONST_HVAC_IDLE, CONST_HVAC_OFF, ) from homeassistant.components.climate import ( FAN_AUTO, FAN_HIGH, FAN_LOW, FA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/coordinator.py
homeassistant/components/tado/coordinator.py
"""Coordinator for the Tado integration.""" from __future__ import annotations from datetime import datetime, timedelta import logging from typing import TYPE_CHECKING, Any from PyTado.interface import Tado from requests import RequestException from homeassistant.components.climate import PRESET_AWAY, PRESET_HOME f...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/sensor.py
homeassistant/components/tado/sensor.py
"""Support for Tado sensors for each zone.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/__init__.py
homeassistant/components/tado/__init__.py
"""Support for the (unofficial) Tado API.""" from datetime import timedelta import logging import PyTado import PyTado.exceptions from PyTado.interface import Tado from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( APPLICATION_NAME, CONF_PASSWORD, CONF_USERNAME, Pl...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/entity.py
homeassistant/components/tado/entity.py
"""Base class for Tado entity.""" import logging from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DEFAULT_NAME, DOMAIN, TADO_BRIDGE_MODELS, TADO_HOME, TADO_ZONE from .coordinator import TadoDataUpdateCoordinator _L...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/water_heater.py
homeassistant/components/tado/water_heater.py
"""Support for Tado hot water zones.""" import logging from typing import Any import voluptuous as vol from homeassistant.components.water_heater import ( WaterHeaterEntity, WaterHeaterEntityFeature, ) from homeassistant.const import ATTR_TEMPERATURE, UnitOfTemperature from homeassistant.core import HomeAssi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/climate.py
homeassistant/components/tado/climate.py
"""Support for Tado thermostats.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any import PyTado import voluptuous as vol from homeassistant.components.climate import ( FAN_AUTO, PRESET_AWAY, PRESET_HOME, SWING_BOTH, SWING_HORIZONTAL,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/tado/config_flow.py
homeassistant/components/tado/config_flow.py
"""Config flow for Tado integration.""" from __future__ import annotations import asyncio from collections.abc import Mapping import logging from typing import Any from PyTado.exceptions import TadoException from PyTado.http import DeviceActivationStatus from PyTado.interface import Tado import voluptuous as vol 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/fortios/device_tracker.py
homeassistant/components/fortios/device_tracker.py
"""Support to use FortiOS device like FortiGate as device tracker. This component is part of the device_tracker platform. """ from __future__ import annotations import logging from typing import Any from awesomeversion import AwesomeVersion from fortiosapi import FortiOSAPI 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/fortios/__init__.py
homeassistant/components/fortios/__init__.py
"""Fortinet FortiOS components."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mill/number.py
homeassistant/components/mill/number.py
"""Support for mill wifi-enabled home heaters.""" from __future__ import annotations from mill import Heater, MillDevice from homeassistant.components.number import NumberDeviceClass, NumberEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_USERNAME, UnitOfPower 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/mill/const.py
homeassistant/components/mill/const.py
"""Constants for the Mill heater component.""" ATTR_AWAY_TEMP = "away_temp" ATTR_COMFORT_TEMP = "comfort_temp" ATTR_ROOM_NAME = "room_name" ATTR_SLEEP_TEMP = "sleep_temp" BATTERY = "battery" CLOUD = "Cloud" CONNECTION_TYPE = "connection_type" CONSUMPTION_TODAY = "day_consumption" CONSUMPTION_YEAR = "year_consumption" ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mill/coordinator.py
homeassistant/components/mill/coordinator.py
"""Coordinator for the mill component.""" from __future__ import annotations from datetime import timedelta import logging from typing import cast from mill import Heater, Mill from mill_local import Mill as MillLocal from homeassistant.components.recorder import get_instance from homeassistant.components.recorder....
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mill/sensor.py
homeassistant/components/mill/sensor.py
"""Support for mill wifi-enabled home heaters.""" from __future__ import annotations import mill from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const 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/mill/__init__.py
homeassistant/components/mill/__init__.py
"""The mill component.""" from __future__ import annotations from datetime import timedelta from mill import Mill from mill_local import Mill as MillLocal from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_IP_ADDRESS, CONF_PASSWORD, CONF_USERNAME, Platform from homeassistant.c...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mill/entity.py
homeassistant/components/mill/entity.py
"""Base entity for Mill devices.""" from __future__ import annotations from abc import abstractmethod from mill import MillDevice from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const 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/mill/climate.py
homeassistant/components/mill/climate.py
"""Support for mill wifi-enabled home heaters.""" from typing import Any import mill from mill_local import OperationMode import voluptuous as vol from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, HVACAction, HVACMode, ) from homeassistant.config_entries import Confi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/mill/config_flow.py
homeassistant/components/mill/config_flow.py
"""Adds config flow for Mill integration.""" from typing import Any from mill import Mill from mill_local import Mill as MillLocal import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import CONF_IP_ADDRESS, CONF_PASSWORD, CONF_USERNAME 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/matter/event.py
homeassistant/components/matter/event.py
"""Matter event entities from Node events.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from chip.clusters import Objects as clusters from matter_server.client.models import device_types from matter_server.common.models import EventType, MatterNodeEvent from homeass...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/api.py
homeassistant/components/matter/api.py
"""Handle websocket api for Matter.""" from __future__ import annotations from collections.abc import Callable, Coroutine from functools import wraps from typing import Any, Concatenate from matter_server.client.models.node import MatterNode from matter_server.common.errors import MatterError from matter_server.comm...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/diagnostics.py
homeassistant/components/matter/diagnostics.py
"""Provide diagnostics for Matter.""" from __future__ import annotations from copy import deepcopy from typing import Any from chip.clusters import Objects from matter_server.common.helpers.util import dataclass_to_dict, parse_attribute_path from homeassistant.components.diagnostics import REDACTED 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/matter/discovery.py
homeassistant/components/matter/discovery.py
"""Map Matter Nodes and Attributes to Home Assistant entities.""" from __future__ import annotations from collections.abc import Generator from chip.clusters.ClusterObjects import ClusterAttributeDescriptor, NullValue from matter_server.client.models.node import MatterEndpoint from homeassistant.const import Platfo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/util.py
homeassistant/components/matter/util.py
"""Provide integration utilities.""" from __future__ import annotations XY_COLOR_FACTOR = 65536 def renormalize( number: float, from_range: tuple[float, float], to_range: tuple[float, float] ) -> float: """Change value from from_range to to_range.""" delta1 = from_range[1] - from_range[0] delta2 = 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/matter/vacuum.py
homeassistant/components/matter/vacuum.py
"""Matter vacuum platform.""" from __future__ import annotations from dataclasses import dataclass from enum import IntEnum from typing import TYPE_CHECKING, Any from chip.clusters import Objects as clusters from matter_server.client.models import device_types from homeassistant.components.vacuum import ( State...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/cover.py
homeassistant/components/matter/cover.py
"""Matter cover.""" from __future__ import annotations from dataclasses import dataclass from enum import IntEnum from math import floor from typing import Any from chip.clusters import Objects as clusters from homeassistant.components.cover import ( ATTR_POSITION, ATTR_TILT_POSITION, CoverDeviceClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/services.py
homeassistant/components/matter/services.py
"""Services for Matter devices.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.water_heater import DOMAIN as WATER_HEATER_DOMAIN from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_validation as cv, service from .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/matter/models.py
homeassistant/components/matter/models.py
"""Models used for the Matter integration.""" from __future__ import annotations from dataclasses import dataclass from typing import Any, TypedDict from chip.clusters import Objects as clusters from chip.clusters.Objects import Cluster, ClusterAttributeDescriptor from matter_server.client.models.device_types 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/matter/valve.py
homeassistant/components/matter/valve.py
"""Matter valve platform.""" from __future__ import annotations from dataclasses import dataclass from chip.clusters import Objects as clusters from matter_server.client.models import device_types from homeassistant.components.valve import ( ValveDeviceClass, ValveEntity, ValveEntityDescription, Val...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/switch.py
homeassistant/components/matter/switch.py
"""Matter switches.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from chip.clusters import Objects as clusters from chip.clusters.Objects import ClusterCommand, NullValue from matter_server.client.models import device_types 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/matter/number.py
homeassistant/components/matter/number.py
"""Matter Number Inputs.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from chip.clusters import Objects as clusters from chip.clusters.ClusterObjects import ClusterAttributeDescriptor, ClusterCommand from matter_server.client.mode...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/addon.py
homeassistant/components/matter/addon.py
"""Provide add-on management.""" from __future__ import annotations from homeassistant.components.hassio import AddonManager from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.singleton import singleton from .const import ADDON_SLUG, DOMAIN, LOGGER DATA_ADDON_MANAGER = f"{DOMAIN}_addo...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/binary_sensor.py
homeassistant/components/matter/binary_sensor.py
"""Matter binary sensors.""" from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING, cast from chip.clusters import Objects as clusters from chip.clusters.Objects import uint from chip.clusters.Types import Nullable, NullValue from matter_server.client.models import dev...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/lock.py
homeassistant/components/matter/lock.py
"""Matter lock.""" from __future__ import annotations import asyncio from dataclasses import dataclass from typing import Any from chip.clusters import Objects as clusters from matter_server.common.models import EventType, MatterNodeEvent from homeassistant.components.lock import ( LockEntity, LockEntityDes...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/const.py
homeassistant/components/matter/const.py
"""Constants for the Matter integration.""" import logging ADDON_SLUG = "core_matter_server" CONF_INTEGRATION_CREATED_ADDON = "integration_created_addon" CONF_USE_ADDON = "use_addon" DOMAIN = "matter" LOGGER = logging.getLogger(__package__) # prefixes to identify device identifier id types ID_TYPE_DEVICE_ID = "dev...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/update.py
homeassistant/components/matter/update.py
"""Matter update.""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime, timedelta from typing import Any from chip.clusters import Objects as clusters from matter_server.common.errors import UpdateCheckError, UpdateError from matter_server.common.models import MatterS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/helpers.py
homeassistant/components/matter/helpers.py
"""Provide integration helpers that are aware of the matter integration.""" from __future__ import annotations import asyncio from dataclasses import dataclass from typing import TYPE_CHECKING from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantError 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/matter/fan.py
homeassistant/components/matter/fan.py
"""Matter Fan platform support.""" from __future__ import annotations from dataclasses import dataclass from typing import TYPE_CHECKING, Any from chip.clusters import Objects as clusters from homeassistant.components.fan import ( DIRECTION_FORWARD, DIRECTION_REVERSE, FanEntity, FanEntityDescription...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/sensor.py
homeassistant/components/matter/sensor.py
"""Matter sensors.""" from __future__ import annotations from dataclasses import dataclass, field from datetime import datetime, timedelta from typing import TYPE_CHECKING, cast from chip.clusters import Objects as clusters from chip.clusters.ClusterObjects import ClusterAttributeDescriptor from chip.clusters.Types ...
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/matter/__init__.py
homeassistant/components/matter/__init__.py
"""The Matter integration.""" from __future__ import annotations import asyncio from functools import cache from matter_server.client import MatterClient from matter_server.client.exceptions import ( CannotConnect, InvalidServerVersion, NotConnected, ServerVersionTooNew, ServerVersionTooOld, ) 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/matter/entity.py
homeassistant/components/matter/entity.py
"""Matter entity base class.""" from __future__ import annotations from collections.abc import Callable, Coroutine from dataclasses import dataclass import functools import logging from typing import TYPE_CHECKING, Any, Concatenate, cast from chip.clusters import Objects as clusters from chip.clusters.Objects 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/matter/button.py
homeassistant/components/matter/button.py
"""Matter Button platform.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import TYPE_CHECKING, Any from chip.clusters import Objects as clusters from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, Butto...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/water_heater.py
homeassistant/components/matter/water_heater.py
"""Matter water heater platform.""" from __future__ import annotations from dataclasses import dataclass from typing import Any, cast from chip.clusters import Objects as clusters from chip.clusters.Types import Nullable from matter_server.client.models import device_types from matter_server.common.errors import Mat...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/select.py
homeassistant/components/matter/select.py
"""Matter ModeSelect Cluster Support.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import TYPE_CHECKING, cast from chip.clusters import Objects as clusters from chip.clusters.ClusterObjects import ClusterAttributeDescriptor, ClusterCommand f...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/climate.py
homeassistant/components/matter/climate.py
"""Matter climate platform.""" from __future__ import annotations from dataclasses import dataclass from enum import IntEnum from typing import Any from chip.clusters import Objects as clusters from matter_server.client.models import device_types from matter_server.common.helpers.util import create_attribute_path_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/matter/adapter.py
homeassistant/components/matter/adapter.py
"""Matter to Home Assistant adapter.""" from __future__ import annotations from typing import TYPE_CHECKING, cast from chip.clusters import Objects as clusters from matter_server.client.models.device_types import BridgedNode from matter_server.common.models import EventType, ServerInfoMessage 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/matter/light.py
homeassistant/components/matter/light.py
"""Matter light.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from chip.clusters import Objects as clusters from chip.clusters.Objects import NullValue from matter_server.client.models import device_types from homeassistant.components.light import ( ATTR_BRIGHTN...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/matter/config_flow.py
homeassistant/components/matter/config_flow.py
"""Config flow for Matter integration.""" from __future__ import annotations import asyncio from typing import Any from matter_server.client import MatterClient from matter_server.client.exceptions import CannotConnect, InvalidServerVersion import voluptuous as vol from homeassistant.components.hassio 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/wirelesstag/util.py
homeassistant/components/wirelesstag/util.py
"""Support for Wireless Sensor Tags.""" import logging from wirelesstagpy.sensortag import SensorTag from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er from .const import DOMAIN _LOGGER = logging.getLogger(__name__) def async_migrate_unique_id( hass: 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/wirelesstag/switch.py
homeassistant/components/wirelesstag/switch.py
"""Switch implementation for Wireless Sensor Tags (wirelesstag.net).""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant.components.switch import ( PLATFORM_SCHEMA as SWITCH_PLATFORM_SCHEMA, SwitchEntity, SwitchEntityDescription, ) 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/wirelesstag/binary_sensor.py
homeassistant/components/wirelesstag/binary_sensor.py
"""Binary sensor support for Wireless Sensor Tags.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.binary_sensor import ( PLATFORM_SCHEMA as BINARY_SENSOR_PLATFORM_SCHEMA, BinarySensorEntity, ) from homeassistant.const import CONF_MONITORED_CONDITIONS, STATE_OFF, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wirelesstag/const.py
homeassistant/components/wirelesstag/const.py
"""Support for Wireless Sensor Tags.""" DOMAIN = "wirelesstag" # Template for signal - first parameter is tag_id, # second, tag manager mac address SIGNAL_TAG_UPDATE = "wirelesstag.tag_info_updated_{}_{}" # Template for signal - tag_id, sensor type and # tag manager mac address SIGNAL_BINARY_EVENT_UPDATE = "wireless...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/wirelesstag/sensor.py
homeassistant/components/wirelesstag/sensor.py
"""Sensor support for Wireless Sensor Tags platform.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA, SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false