Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.adguard Namespace Reference

Namespaces

 config_flow
 
 const
 
 entity
 
 sensor
 
 switch
 

Classes

class  AdGuardData
 

Functions

bool async_setup_entry (HomeAssistant hass, AdGuardConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, AdGuardConfigEntry entry)
 

Variables

 AdGuardConfigEntry
 
list PLATFORMS = [Platform.SENSOR, Platform.SWITCH]
 
 SERVICE_ADD_URL_SCHEMA
 
 SERVICE_REFRESH_SCHEMA
 
 SERVICE_URL_SCHEMA = vol.Schema({vol.Required(CONF_URL): cv.url})
 

Detailed Description

Support for AdGuard Home.

Function Documentation

◆ async_setup_entry()

bool homeassistant.components.adguard.async_setup_entry ( HomeAssistant  hass,
AdGuardConfigEntry  entry 
)
Set up AdGuard Home from a config entry.

Definition at line 57 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.adguard.async_unload_entry ( HomeAssistant  hass,
AdGuardConfigEntry  entry 
)
Unload AdGuard Home config entry.

Definition at line 120 of file __init__.py.

Variable Documentation

◆ AdGuardConfigEntry

homeassistant.components.adguard.AdGuardConfigEntry

Definition at line 46 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.adguard.PLATFORMS = [Platform.SENSOR, Platform.SWITCH]

Definition at line 45 of file __init__.py.

◆ SERVICE_ADD_URL_SCHEMA

homeassistant.components.adguard.SERVICE_ADD_URL_SCHEMA
Initial value:
1 = vol.Schema(
2  {vol.Required(CONF_NAME): cv.string, vol.Required(CONF_URL): cv.url}
3 )

Definition at line 38 of file __init__.py.

◆ SERVICE_REFRESH_SCHEMA

homeassistant.components.adguard.SERVICE_REFRESH_SCHEMA
Initial value:
1 = vol.Schema(
2  {vol.Optional(CONF_FORCE, default=False): cv.boolean}
3 )

Definition at line 41 of file __init__.py.

◆ SERVICE_URL_SCHEMA

homeassistant.components.adguard.SERVICE_URL_SCHEMA = vol.Schema({vol.Required(CONF_URL): cv.url})

Definition at line 37 of file __init__.py.