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/kegtron/config_flow.py
homeassistant/components/kegtron/config_flow.py
"""Config flow for Kegtron ble integration.""" from __future__ import annotations from typing import Any from kegtron_ble import KegtronBluetoothDeviceData as DeviceData import voluptuous as vol from homeassistant.components.bluetooth import ( BluetoothServiceInfoBleak, async_discovered_service_info, ) 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/pglab/discovery.py
homeassistant/components/pglab/discovery.py
"""Discovery PG LAB Electronics devices.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import json from typing import TYPE_CHECKING, Any from pypglab.device import Device as PyPGLabDevice from pypglab.mqtt import Client as PyPGLabMqttClient 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/pglab/cover.py
homeassistant/components/pglab/cover.py
"""PG LAB Electronics Cover.""" from __future__ import annotations from typing import Any from pypglab.device import Device as PyPGLabDevice from pypglab.shutter import Shutter as PyPGLabShutter from homeassistant.components.cover import ( CoverDeviceClass, CoverEntity, CoverEntityFeature, ) from homeas...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pglab/switch.py
homeassistant/components/pglab/switch.py
"""Switch for PG LAB Electronics.""" from __future__ import annotations from typing import Any from pypglab.device import Device as PyPGLabDevice from pypglab.relay import Relay as PyPGLabRelay from homeassistant.components.switch import SwitchEntity from homeassistant.const import Platform 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/pglab/const.py
homeassistant/components/pglab/const.py
"""Constants used by PG LAB Electronics integration.""" import logging # The domain of the integration. DOMAIN = "pglab" # The message logger. LOGGER = logging.getLogger(__package__) # The MQTT message used to subscribe to get a new PG LAB device. DISCOVERY_TOPIC = "pglab/discovery"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pglab/coordinator.py
homeassistant/components/pglab/coordinator.py
"""Coordinator for PG LAB Electronics.""" from __future__ import annotations from datetime import datetime, timedelta from typing import TYPE_CHECKING, Any from pypglab.const import SENSOR_REBOOT_TIME, SENSOR_TEMPERATURE, SENSOR_VOLTAGE from pypglab.device import Device as PyPGLabDevice from pypglab.sensor import St...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pglab/sensor.py
homeassistant/components/pglab/sensor.py
"""Sensor for PG LAB Electronics.""" from __future__ import annotations from pypglab.const import SENSOR_REBOOT_TIME, SENSOR_TEMPERATURE, SENSOR_VOLTAGE from pypglab.device import Device as PyPGLabDevice from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescriptio...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pglab/__init__.py
homeassistant/components/pglab/__init__.py
"""PG LAB Electronics integration.""" from __future__ import annotations from pypglab.mqtt import ( Client as PyPGLabMqttClient, Sub_State as PyPGLabSubState, Subscribe_CallBack as PyPGLabSubscribeCallBack, ) from homeassistant.components import mqtt from homeassistant.components.mqtt import ( Receiv...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pglab/entity.py
homeassistant/components/pglab/entity.py
"""Entity for PG LAB Electronics.""" from __future__ import annotations from pypglab.device import Device as PyPGLabDevice from pypglab.entity import Entity as PyPGLabEntity from homeassistant.core import callback from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo 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/pglab/config_flow.py
homeassistant/components/pglab/config_flow.py
"""Config flow for PG LAB Electronics integration.""" from __future__ import annotations from typing import Any from homeassistant.components import mqtt from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.helpers.service_info.mqtt import MqttServiceInfo from .const import DISCO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/pitsos/__init__.py
homeassistant/components/pitsos/__init__.py
"""Pitsos virtual integration."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ruuvitag_ble/const.py
homeassistant/components/ruuvitag_ble/const.py
"""Constants for the ruuvitag_ble integration.""" DOMAIN = "ruuvitag_ble"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ruuvitag_ble/sensor.py
homeassistant/components/ruuvitag_ble/sensor.py
"""Support for RuuviTag sensors.""" from __future__ import annotations from sensor_state_data import ( DeviceKey, SensorDeviceClass as SSDSensorDeviceClass, SensorUpdate, Units, ) from homeassistant import config_entries from homeassistant.components.bluetooth.passive_update_processor import ( Pa...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ruuvitag_ble/__init__.py
homeassistant/components/ruuvitag_ble/__init__.py
"""The ruuvitag_ble integration.""" from __future__ import annotations import logging from ruuvitag_ble import RuuvitagBluetoothDeviceData from homeassistant.components.bluetooth import BluetoothScanningMode from homeassistant.components.bluetooth.passive_update_processor import ( PassiveBluetoothProcessorCoord...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/ruuvitag_ble/config_flow.py
homeassistant/components/ruuvitag_ble/config_flow.py
"""Config flow for ruuvitag_ble.""" from __future__ import annotations from typing import Any from ruuvitag_ble import RuuvitagBluetoothDeviceData import voluptuous as vol from homeassistant.components.bluetooth import ( BluetoothServiceInfoBleak, async_discovered_service_info, ) from homeassistant.config_e...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cambridge_audio/media_player.py
homeassistant/components/cambridge_audio/media_player.py
"""Support for Cambridge Audio AV Receiver.""" from __future__ import annotations from datetime import datetime from typing import Any from aiostreammagic import ( RepeatMode as CambridgeRepeatMode, ShuffleMode, StreamMagicClient, TransportControl, ) from aiostreammagic.models import ControlBusMode ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cambridge_audio/diagnostics.py
homeassistant/components/cambridge_audio/diagnostics.py
"""Diagnostics platform for Cambridge Audio.""" from typing import Any from homeassistant.core import HomeAssistant from . import CambridgeAudioConfigEntry async def async_get_config_entry_diagnostics( hass: HomeAssistant, entry: CambridgeAudioConfigEntry ) -> dict[str, Any]: """Return diagnostics for the ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cambridge_audio/switch.py
homeassistant/components/cambridge_audio/switch.py
"""Support for Cambridge Audio switch entities.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass from typing import Any from aiostreammagic import StreamMagicClient from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.const import 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/cambridge_audio/const.py
homeassistant/components/cambridge_audio/const.py
"""Constants for the Cambridge Audio integration.""" import asyncio import logging from aiostreammagic import StreamMagicConnectionError, StreamMagicError DOMAIN = "cambridge_audio" LOGGER = logging.getLogger(__package__) STREAM_MAGIC_EXCEPTIONS = ( StreamMagicConnectionError, StreamMagicError, asyncio...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cambridge_audio/__init__.py
homeassistant/components/cambridge_audio/__init__.py
"""The Cambridge Audio integration.""" from __future__ import annotations import asyncio import logging from aiostreammagic import StreamMagicClient from aiostreammagic.models import CallbackType from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, Platform 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/cambridge_audio/entity.py
homeassistant/components/cambridge_audio/entity.py
"""Base class for Cambridge Audio entities.""" from collections.abc import Awaitable, Callable, Coroutine from functools import wraps from typing import Any, Concatenate from aiostreammagic import StreamMagicClient from aiostreammagic.models import CallbackType from homeassistant.exceptions import HomeAssistantError...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cambridge_audio/select.py
homeassistant/components/cambridge_audio/select.py
"""Support for Cambridge Audio select entities.""" from collections.abc import Awaitable, Callable from dataclasses import dataclass, field from aiostreammagic import StreamMagicClient from aiostreammagic.models import ControlBusMode, DisplayBrightness from homeassistant.components.select import SelectEntity, Select...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cambridge_audio/media_browser.py
homeassistant/components/cambridge_audio/media_browser.py
"""Support for media browsing.""" from aiostreammagic import StreamMagicClient from aiostreammagic.models import Preset from homeassistant.components.media_player import BrowseMedia, MediaClass from homeassistant.core import HomeAssistant async def async_browse_media( hass: HomeAssistant, client: StreamMagi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/cambridge_audio/config_flow.py
homeassistant/components/cambridge_audio/config_flow.py
"""Config flow for Cambridge Audio.""" import asyncio from typing import Any from aiostreammagic import StreamMagicClient import voluptuous as vol from homeassistant.config_entries import ( SOURCE_RECONFIGURE, ConfigFlow, ConfigFlowResult, ) from homeassistant.const import CONF_HOST, CONF_NAME 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/worldclock/const.py
homeassistant/components/worldclock/const.py
"""Constants for world clock component.""" from homeassistant.const import Platform DOMAIN = "worldclock" PLATFORMS = [Platform.SENSOR] CONF_TIME_FORMAT = "time_format" DEFAULT_NAME = "Worldclock Sensor" DEFAULT_TIME_STR_FORMAT = "%H:%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/worldclock/sensor.py
homeassistant/components/worldclock/sensor.py
"""Support for showing the time in a different time zone.""" from __future__ import annotations from datetime import tzinfo from homeassistant.components.sensor import SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_NAME, CONF_TIME_ZONE from homeassistant.core 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/worldclock/__init__.py
homeassistant/components/worldclock/__init__.py
"""The worldclock component.""" from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import PLATFORMS async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Worldclock from a config entry.""" await hass.config_entries...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/worldclock/config_flow.py
homeassistant/components/worldclock/config_flow.py
"""Config flow for World clock.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, cast import zoneinfo import voluptuous as vol from homeassistant.const import CONF_NAME, CONF_TIME_ZONE from homeassistant.helpers.schema_config_entry_flow import ( SchemaCommonFlowH...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/izone/discovery.py
homeassistant/components/izone/discovery.py
"""Internal discovery service for iZone AC.""" import logging import pizone from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client from homeassistant.helpers.dispatcher import async_dispatcher_send from .const import ( DATA_DISCOVERY_SERVICE, DISPATCH_CONTROLLER_DISCO...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/izone/const.py
homeassistant/components/izone/const.py
"""Constants used by the izone component.""" IZONE = "izone" DATA_DISCOVERY_SERVICE = "izone_discovery" DATA_CONFIG = "izone_config" DISPATCH_CONTROLLER_DISCOVERED = "izone_controller_discovered" DISPATCH_CONTROLLER_DISCONNECTED = "izone_controller_disconnected" DISPATCH_CONTROLLER_RECONNECTED = "izone_controller_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/izone/__init__.py
homeassistant/components/izone/__init__.py
"""Platform for the iZone AC.""" import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_EXCLUDE, EVENT_HOMEASSISTANT_STOP, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import config...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/izone/climate.py
homeassistant/components/izone/climate.py
"""Support for the iZone HVAC.""" from __future__ import annotations from collections.abc import Callable, Mapping import logging from typing import Any, Concatenate from pizone import Controller, Zone import voluptuous as vol from homeassistant.components.climate import ( FAN_AUTO, FAN_HIGH, FAN_LOW, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/izone/config_flow.py
homeassistant/components/izone/config_flow.py
"""Config flow for izone.""" import asyncio from contextlib import suppress import logging from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_entry_flow from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import DISPATCH_CONTROLLER_DISCOVERED...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smhi/weather.py
homeassistant/components/smhi/weather.py
"""Support for the Swedish weather institute weather service.""" from __future__ import annotations from collections.abc import Mapping from typing import Any, Final from pysmhi import SMHIForecast from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_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/smhi/const.py
homeassistant/components/smhi/const.py
"""Constants in smhi component.""" from datetime import timedelta import logging from typing import Final from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN ATTR_SMHI_THUNDER_PROBABILITY: Final = "thunder_probability" DOMAIN = "smhi" HOME_LOCATION_NAME = "Home" DEFAULT_NAME = "Weather" ENTITY_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/smhi/coordinator.py
homeassistant/components/smhi/coordinator.py
"""DataUpdateCoordinator for the SMHI integration.""" from __future__ import annotations import asyncio from dataclasses import dataclass from pysmhi import ( SMHIFireForecast, SmhiFireForecastException, SMHIFirePointForecast, SMHIForecast, SmhiForecastException, SMHIPointForecast, ) 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/smhi/sensor.py
homeassistant/components/smhi/sensor.py
"""Sensor platform for SMHI integration.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smhi/__init__.py
homeassistant/components/smhi/__init__.py
"""Support for the Swedish weather institute weather service.""" from homeassistant.const import ( CONF_LATITUDE, CONF_LOCATION, CONF_LONGITUDE, CONF_NAME, Platform, ) from homeassistant.core import HomeAssistant from .coordinator import ( SMHIConfigEntry, SMHIDataUpdateCoordinator, SM...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/smhi/entity.py
homeassistant/components/smhi/entity.py
"""Support for the Swedish weather institute weather base entities.""" from __future__ import annotations from abc import abstractmethod from homeassistant.core import callback from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import Entity 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/smhi/config_flow.py
homeassistant/components/smhi/config_flow.py
"""Config flow to configure SMHI component.""" from __future__ import annotations from typing import Any from pysmhi import SmhiForecastException, SMHIPointForecast import voluptuous as vol from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN from homeassistant.config_entries import ConfigFlow, 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/apache_kafka/__init__.py
homeassistant/components/apache_kafka/__init__.py
"""Support for Apache Kafka.""" from __future__ import annotations from datetime import datetime import json from typing import Any, Literal from aiokafka import AIOKafkaProducer import voluptuous as vol from homeassistant.const import ( CONF_IP_ADDRESS, CONF_PASSWORD, CONF_PORT, CONF_USERNAME, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nzbget/services.py
homeassistant/components/nzbget/services.py
"""The NZBGet integration.""" import voluptuous as vol from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.exceptions import ServiceValidationError from homeassistant.helpers import config_validation as cv from .const import ( ATTR_SPEED, DATA_COORDINATOR, DEFAULT_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/nzbget/switch.py
homeassistant/components/nzbget/switch.py
"""Support for NZBGet switches.""" from __future__ import annotations from typing import Any from homeassistant.components.switch import SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_NAME from homeassistant.core import HomeAssistant 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/nzbget/const.py
homeassistant/components/nzbget/const.py
"""Constants for NZBGet.""" DOMAIN = "nzbget" # Attributes ATTR_SPEED = "speed" # Data DATA_COORDINATOR = "coordinator" DATA_UNDO_UPDATE_LISTENER = "undo_update_listener" # Defaults DEFAULT_NAME = "NZBGet" DEFAULT_PORT = 6789 DEFAULT_SPEED_LIMIT = 1000 # 1 Megabyte/Sec DEFAULT_SSL = False DEFAULT_VERIFY_SSL = Fals...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nzbget/coordinator.py
homeassistant/components/nzbget/coordinator.py
"""Provides the NZBGet DataUpdateCoordinator.""" import asyncio from datetime import timedelta import logging from pynzbgetapi import NZBGetAPI, NZBGetAPIException from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_PORT, CONF_SSL, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nzbget/sensor.py
homeassistant/components/nzbget/sensor.py
"""Monitor the NZBGet API.""" from __future__ import annotations from datetime import datetime, timedelta import logging from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry 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/nzbget/__init__.py
homeassistant/components/nzbget/__init__.py
"""The NZBGet integration.""" from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import config_validation as cv from homeassistant.helpers.typing import ConfigType from .const import DATA_COORDINATOR, DA...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nzbget/entity.py
homeassistant/components/nzbget/entity.py
"""The NZBGet integration.""" from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN from .coordinator import NZBGetDataUpdateCoordinator class NZBGetEntity(CoordinatorEntity[NZBGetDataUpdateCoord...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/nzbget/config_flow.py
homeassistant/components/nzbget/config_flow.py
"""Config flow for NZBGet.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.config_entries import ConfigFlow, ConfigFlowResult from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_PORT, CONF_SSL, 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/russound_rnet/media_player.py
homeassistant/components/russound_rnet/media_player.py
"""Support for interfacing with Russound via RNET Protocol.""" from __future__ import annotations import logging import math from russound import russound import voluptuous as vol from homeassistant.components.media_player import ( PLATFORM_SCHEMA as MEDIA_PLAYER_PLATFORM_SCHEMA, MediaPlayerEntity, Medi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/russound_rnet/__init__.py
homeassistant/components/russound_rnet/__init__.py
"""The russound_rnet 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/kef/media_player.py
homeassistant/components/kef/media_player.py
"""Platform for the KEF Wireless Speakers.""" from __future__ import annotations from datetime import timedelta from functools import partial import ipaddress import logging from aiokef import AsyncKefSpeaker from aiokef.aiokef import DSP_OPTION_MAPPING from getmac import get_mac_address import voluptuous as vol 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/kef/__init__.py
homeassistant/components/kef/__init__.py
"""The KEF Wireless Speakers 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/avea/__init__.py
homeassistant/components/avea/__init__.py
"""The avea 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/avea/light.py
homeassistant/components/avea/light.py
"""Support for the Elgato Avea lights.""" from __future__ import annotations from typing import Any import avea from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_HS_COLOR, ColorMode, LightEntity, ) from homeassistant.core import HomeAssistant from homeassistant.exceptions import Pla...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/vilfo/const.py
homeassistant/components/vilfo/const.py
"""Constants for the Vilfo Router integration.""" from __future__ import annotations DOMAIN = "vilfo" ATTR_API_DATA_FIELD_LOAD = "load" ATTR_API_DATA_FIELD_BOOT_TIME = "boot_time" ATTR_LOAD = "load" ATTR_BOOT_TIME = "boot_time" ROUTER_DEFAULT_HOST = "admin.vilfo.com" ROUTER_DEFAULT_MODEL = "Vilfo Router" ROUTER_DEF...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/vilfo/sensor.py
homeassistant/components/vilfo/sensor.py
"""Support for Vilfo Router sensors.""" from dataclasses import dataclass from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import PERCENTAGE from homeassistant.core import...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/vilfo/__init__.py
homeassistant/components/vilfo/__init__.py
"""The Vilfo Router integration.""" from datetime import timedelta import logging from vilfo import Client as VilfoClient from vilfo.exceptions import VilfoException from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_ACCESS_TOKEN, CONF_HOST, Platform from homeassistant.core 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/vilfo/config_flow.py
homeassistant/components/vilfo/config_flow.py
"""Config flow for Vilfo Router integration.""" import logging from typing import Any from vilfo import Client as VilfoClient from vilfo.exceptions import ( AuthenticationException as VilfoAuthenticationException, VilfoException, ) import voluptuous as vol from homeassistant.config_entries import ConfigFlow,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openuv/diagnostics.py
homeassistant/components/openuv/diagnostics.py
"""Diagnostics support for OpenUV.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_U...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openuv/binary_sensor.py
homeassistant/components/openuv/binary_sensor.py
"""Support for OpenUV binary sensors.""" from homeassistant.components.binary_sensor import ( BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddCon...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openuv/const.py
homeassistant/components/openuv/const.py
"""Define constants for the OpenUV component.""" import logging DOMAIN = "openuv" LOGGER = logging.getLogger(__package__) CONF_FROM_WINDOW = "from_window" CONF_TO_WINDOW = "to_window" DATA_PROTECTION_WINDOW = "protection_window" DATA_UV = "uv" DEFAULT_FROM_WINDOW = 3.5 DEFAULT_TO_WINDOW = 3.5 TYPE_CURRENT_OZONE_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/openuv/coordinator.py
homeassistant/components/openuv/coordinator.py
"""Define an update coordinator for OpenUV.""" from __future__ import annotations from collections.abc import Awaitable, Callable import datetime as dt from typing import Any, cast from pyopenuv.errors import InvalidApiKeyError, OpenUvError from homeassistant.config_entries import ConfigEntry from homeassistant.cor...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openuv/sensor.py
homeassistant/components/openuv/sensor.py
"""Support for OpenUV sensors.""" from __future__ import annotations from collections.abc import Callable, Mapping from dataclasses import dataclass from typing import Any from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openuv/__init__.py
homeassistant/components/openuv/__init__.py
"""Support for UV data from openuv.io.""" from __future__ import annotations import asyncio from typing import Any from pyopenuv import Client from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_API_KEY, CONF_BINARY_SENSORS, CONF_ELEVATION, CONF_LATITUDE, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/openuv/entity.py
homeassistant/components/openuv/entity.py
"""Support for UV data from openuv.io.""" from __future__ import annotations from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import DOMAIN 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/openuv/config_flow.py
homeassistant/components/openuv/config_flow.py
"""Config flow to configure the OpenUV component.""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass from typing import Any from pyopenuv import Client from pyopenuv.errors import OpenUvError import voluptuous as vol from homeassistant.config_entries 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/environment_canada/weather.py
homeassistant/components/environment_canada/weather.py
"""Platform for retrieving meteorological data from Environment Canada.""" from __future__ import annotations from typing import Any from env_canada import ECWeather from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_FOG, ATTR_CONDITION_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/environment_canada/diagnostics.py
homeassistant/components/environment_canada/diagnostics.py
"""Diagnostics support for Environment Canada.""" from __future__ import annotations from typing import Any from homeassistant.components.diagnostics import async_redact_data from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE from homeassistant.core import HomeAssistant from .coordinator import ECConfigE...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/environment_canada/camera.py
homeassistant/components/environment_canada/camera.py
"""Support for the Environment Canada radar imagery.""" from __future__ import annotations from env_canada import ECRadar import voluptuous as vol from homeassistant.components.camera import Camera from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import ( AddConfigEntryEnti...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/environment_canada/const.py
homeassistant/components/environment_canada/const.py
"""Constants for EC component.""" ATTR_OBSERVATION_TIME = "observation_time" ATTR_STATION = "station" CONF_STATION = "station" CONF_TITLE = "title" DOMAIN = "environment_canada" SERVICE_ENVIRONMENT_CANADA_FORECASTS = "get_forecasts"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/environment_canada/coordinator.py
homeassistant/components/environment_canada/coordinator.py
"""Coordinator for the Environment Canada (EC) component.""" from __future__ import annotations from dataclasses import dataclass from datetime import timedelta import logging import xml.etree.ElementTree as ET from env_canada import ECAirQuality, ECRadar, ECWeather, ECWeatherUpdateFailed, ec_exc 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/environment_canada/sensor.py
homeassistant/components/environment_canada/sensor.py
"""Support for the Environment Canada weather service.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from typing import Any from env_canada import ECWeather from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, Senso...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/environment_canada/__init__.py
homeassistant/components/environment_canada/__init__.py
"""The Environment Canada (EC) component.""" from datetime import timedelta import logging from env_canada import ECAirQuality, ECRadar, ECWeather from homeassistant.const import CONF_LANGUAGE, CONF_LATITUDE, CONF_LONGITUDE, Platform from homeassistant.core import HomeAssistant from homeassistant.exceptions 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/environment_canada/config_flow.py
homeassistant/components/environment_canada/config_flow.py
"""Config flow for Environment Canada integration.""" import logging from typing import Any import xml.etree.ElementTree as ET import aiohttp from env_canada import ECWeather, ec_exc from env_canada.ec_weather import get_ec_sites_list import voluptuous as vol from homeassistant.config_entries import ConfigFlow, 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/smart_home/__init__.py
homeassistant/components/smart_home/__init__.py
"""Virtual integration: Smart Home."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/vermont_castings/__init__.py
homeassistant/components/vermont_castings/__init__.py
"""Virtual integration for Vermont Castings fireplace."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/router.py
homeassistant/components/netgear/router.py
"""Represent the Netgear router and its devices.""" from __future__ import annotations import asyncio from datetime import timedelta import logging from typing import Any from pynetgear import Netgear from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_HOST, CONF_PASS...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/device_tracker.py
homeassistant/components/netgear/device_tracker.py
"""Support for Netgear routers.""" from __future__ import annotations import logging from homeassistant.components.device_tracker import ScannerEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddConfi...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/switch.py
homeassistant/components/netgear/switch.py
"""Support for Netgear switches.""" from collections.abc import Callable from dataclasses import dataclass from datetime import timedelta import logging from typing import Any from pynetgear import ALLOW, BLOCK from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription from homeassistant.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/netgear/const.py
homeassistant/components/netgear/const.py
"""Netgear component constants.""" from datetime import timedelta from homeassistant.const import Platform DOMAIN = "netgear" PLATFORMS = [ Platform.BUTTON, Platform.DEVICE_TRACKER, Platform.SENSOR, Platform.SWITCH, Platform.UPDATE, ] CONF_CONSIDER_HOME = "consider_home" KEY_ROUTER = "router" ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/update.py
homeassistant/components/netgear/update.py
"""Update entities for Netgear devices.""" from __future__ import annotations import logging from typing import Any from homeassistant.components.update import ( UpdateDeviceClass, UpdateEntity, UpdateEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import Hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/errors.py
homeassistant/components/netgear/errors.py
"""Errors for the Netgear component.""" from homeassistant.exceptions import HomeAssistantError class NetgearException(HomeAssistantError): """Base class for Netgear exceptions.""" class CannotLoginException(NetgearException): """Unable to login to the router."""
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/sensor.py
homeassistant/components/netgear/sensor.py
"""Support for Netgear routers.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import date, datetime from decimal import Decimal import logging from homeassistant.components.sensor import ( RestoreSensor, SensorDeviceClass, Senso...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/__init__.py
homeassistant/components/netgear/__init__.py
"""Support for Netgear routers.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PORT, CONF_SSL from homeassistant.core import HomeAssistant from homeassistant.exception...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/entity.py
homeassistant/components/netgear/entity.py
"""Represent the Netgear router and its devices.""" from __future__ import annotations from abc import abstractmethod from homeassistant.const import CONF_HOST from homeassistant.core import callback from homeassistant.helpers import device_registry as dr from homeassistant.helpers.device_registry import DeviceInfo ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/button.py
homeassistant/components/netgear/button.py
"""Support for Netgear Button.""" from collections.abc import Callable, Coroutine from dataclasses import dataclass from typing import Any from homeassistant.components.button import ( ButtonDeviceClass, ButtonEntity, ButtonEntityDescription, ) from homeassistant.config_entries import ConfigEntry from hom...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/netgear/config_flow.py
homeassistant/components/netgear/config_flow.py
"""Config flow to configure the Netgear integration.""" from __future__ import annotations import logging from typing import Any, cast from urllib.parse import urlparse from pynetgear import DEFAULT_HOST, DEFAULT_PORT, DEFAULT_USER import voluptuous as vol from homeassistant.config_entries import ( ConfigEntry,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/http/security_filter.py
homeassistant/components/http/security_filter.py
"""Middleware to add some basic security filtering to requests.""" from __future__ import annotations from collections.abc import Awaitable, Callable from functools import lru_cache import logging import re from typing import Final from urllib.parse import unquote from aiohttp.web import Application, HTTPBadRequest,...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/http/web_runner.py
homeassistant/components/http/web_runner.py
"""HomeAssistant specific aiohttp Site.""" from __future__ import annotations import asyncio from ssl import SSLContext from aiohttp import web from yarl import URL class HomeAssistantTCPSite(web.BaseSite): """HomeAssistant specific aiohttp Site. Vanilla TCPSite accepts only str as host. However, the unde...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/http/view.py
homeassistant/components/http/view.py
"""Support for views.""" from __future__ import annotations from homeassistant.helpers.http import ( # noqa: F401 HomeAssistantView, request_handler_factory, )
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/http/request_context.py
homeassistant/components/http/request_context.py
"""Middleware to set the request context.""" from __future__ import annotations from collections.abc import Awaitable, Callable from contextvars import ContextVar from aiohttp.web import Application, Request, StreamResponse, middleware from homeassistant.core import callback from homeassistant.helpers.http 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/http/cors.py
homeassistant/components/http/cors.py
"""Provide CORS support for the HTTP component.""" from __future__ import annotations from typing import Final, cast from aiohttp.hdrs import ACCEPT, AUTHORIZATION, CONTENT_TYPE, ORIGIN from aiohttp.web import Application from aiohttp.web_urldispatcher import ( AbstractResource, AbstractRoute, Resource, ...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/http/forwarded.py
homeassistant/components/http/forwarded.py
"""Middleware to handle forwarded data by a reverse proxy.""" from __future__ import annotations from collections.abc import Awaitable, Callable from ipaddress import IPv4Network, IPv6Network, ip_address import logging from aiohttp.hdrs import X_FORWARDED_FOR, X_FORWARDED_HOST, X_FORWARDED_PROTO from aiohttp.web 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/http/decorators.py
homeassistant/components/http/decorators.py
"""Decorators for the Home Assistant API.""" from __future__ import annotations from collections.abc import Callable, Coroutine from functools import wraps from typing import Any, Concatenate, overload from aiohttp.web import Request, Response, StreamResponse from homeassistant.auth.models import User 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/http/const.py
homeassistant/components/http/const.py
"""HTTP specific constants.""" from typing import Final from homeassistant.helpers.http import KEY_AUTHENTICATED, KEY_HASS # noqa: F401 DOMAIN: Final = "http" KEY_HASS_USER: Final = "hass_user" KEY_HASS_REFRESH_TOKEN_ID: Final = "hass_refresh_token_id"
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/http/ban.py
homeassistant/components/http/ban.py
"""Ban logic for HTTP component.""" from __future__ import annotations from collections import defaultdict from collections.abc import Awaitable, Callable, Coroutine from contextlib import suppress from datetime import datetime from http import HTTPStatus from ipaddress import IPv4Address, IPv6Address, ip_address 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/http/data_validator.py
homeassistant/components/http/data_validator.py
"""Decorator for view methods to help with data validation.""" from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine from functools import wraps from http import HTTPStatus import logging from typing import Any, Concatenate from aiohttp import web 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/http/__init__.py
homeassistant/components/http/__init__.py
"""Support to serve the Home Assistant API as WSGI application.""" from __future__ import annotations import asyncio from collections.abc import Collection from dataclasses import dataclass import datetime from functools import partial from ipaddress import IPv4Network, IPv6Network, ip_network import logging import o...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false
home-assistant/core
https://github.com/home-assistant/core/blob/6cae1821fb77e785a8aebb48dfc72ea5081b8975/homeassistant/components/http/headers.py
homeassistant/components/http/headers.py
"""Middleware that helps with the control of headers in our responses.""" from __future__ import annotations from collections.abc import Awaitable, Callable from typing import Final from aiohttp import hdrs from aiohttp.web import Application, Request, StreamResponse, middleware from aiohttp.web_exceptions import HT...
python
Apache-2.0
6cae1821fb77e785a8aebb48dfc72ea5081b8975
2026-01-04T14:38:15.504802Z
false