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

Namespaces

 config_flow
 
 const
 
 cover
 
 entity
 
 sensor
 
 utils
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

 CONFIG_SCHEMA
 
list PLATFORMS = [Platform.COVER, Platform.SENSOR]
 

Detailed Description

Support for Soma Smartshades.

Function Documentation

◆ async_setup()

bool homeassistant.components.soma.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up the Soma component.

Definition at line 32 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.soma.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up Soma from a config entry.

Definition at line 48 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.soma.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 60 of file __init__.py.

Variable Documentation

◆ CONFIG_SCHEMA

homeassistant.components.soma.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  vol.All(
3  cv.deprecated(DOMAIN),
4  {
5  DOMAIN: vol.Schema(
6  {vol.Required(CONF_HOST): cv.string, vol.Required(CONF_PORT): cv.string}
7  )
8  },
9  ),
10  extra=vol.ALLOW_EXTRA,
11 )

Definition at line 17 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.soma.PLATFORMS = [Platform.COVER, Platform.SENSOR]

Definition at line 29 of file __init__.py.