Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.samsungtv.config_flow Namespace Reference

Classes

class  SamsungTVConfigFlow
 

Functions

bool _entry_is_complete (ConfigEntry entry, str|None ssdp_rendering_control_location, str|None ssdp_main_tv_agent_location)
 
bool _mac_is_same_with_incorrect_formatting (str current_unformatted_mac, str formatted_mac)
 
str _strip_uuid (str udn)
 

Variables

 DATA_SCHEMA = vol.Schema({vol.Required(CONF_HOST): str, vol.Required(CONF_NAME): str})
 

Detailed Description

Config flow for Samsung TV.

Function Documentation

◆ _entry_is_complete()

bool homeassistant.components.samsungtv.config_flow._entry_is_complete ( ConfigEntry  entry,
str | None  ssdp_rendering_control_location,
str | None  ssdp_main_tv_agent_location 
)
private
Return True if the config entry information is complete.

If we do not have an ssdp location we consider it complete
as some TVs will not support SSDP/UPNP

Definition at line 65 of file config_flow.py.

◆ _mac_is_same_with_incorrect_formatting()

bool homeassistant.components.samsungtv.config_flow._mac_is_same_with_incorrect_formatting ( str  current_unformatted_mac,
str   formatted_mac 
)
private
Check if two macs are the same but formatted incorrectly.

Definition at line 89 of file config_flow.py.

◆ _strip_uuid()

str homeassistant.components.samsungtv.config_flow._strip_uuid ( str  udn)
private

Definition at line 61 of file config_flow.py.

Variable Documentation

◆ DATA_SCHEMA

homeassistant.components.samsungtv.config_flow.DATA_SCHEMA = vol.Schema({vol.Required(CONF_HOST): str, vol.Required(CONF_NAME): str})

Definition at line 58 of file config_flow.py.