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

Functions

None _browser_url (ServiceCall service)
 
bool setup (HomeAssistant hass, ConfigType config)
 

Variables

string ATTR_URL = "url"
 
string ATTR_URL_DEFAULT = "https://www.google.com"
 
 CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
 
string DOMAIN = "browser"
 
string SERVICE_BROWSE_URL = "browse_url"
 
 SERVICE_BROWSE_URL_SCHEMA
 

Detailed Description

Support for launching a web browser on the host machine.

Function Documentation

◆ _browser_url()

None homeassistant.components.browser._browser_url ( ServiceCall  service)
private
Browse to URL.

Definition at line 27 of file __init__.py.

◆ setup()

bool homeassistant.components.browser.setup ( HomeAssistant  hass,
ConfigType  config 
)
Listen for browse_url events.

Definition at line 32 of file __init__.py.

Variable Documentation

◆ ATTR_URL

string homeassistant.components.browser.ATTR_URL = "url"

Definition at line 11 of file __init__.py.

◆ ATTR_URL_DEFAULT

string homeassistant.components.browser.ATTR_URL_DEFAULT = "https://www.google.com"

Definition at line 12 of file __init__.py.

◆ CONFIG_SCHEMA

homeassistant.components.browser.CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)

Definition at line 24 of file __init__.py.

◆ DOMAIN

string homeassistant.components.browser.DOMAIN = "browser"

Definition at line 14 of file __init__.py.

◆ SERVICE_BROWSE_URL

string homeassistant.components.browser.SERVICE_BROWSE_URL = "browse_url"

Definition at line 16 of file __init__.py.

◆ SERVICE_BROWSE_URL_SCHEMA

homeassistant.components.browser.SERVICE_BROWSE_URL_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(ATTR_URL, default=ATTR_URL_DEFAULT): vol.Url(),
4  }
5 )

Definition at line 18 of file __init__.py.