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

Classes

class  LastFmConfigFlowHandler
 
class  LastFmOptionsFlowHandler
 

Functions

tuple[User, dict[str, str]] get_lastfm_user (str api_key, str username)
 
tuple[list[str], dict[str, str]] validate_lastfm_users (str api_key, list[str] usernames)
 

Variables

dictionary PLACEHOLDERS = {"api_account_url": "https://www.last.fm/api/account/create"}
 
 Schema
 

Detailed Description

Config flow for LastFm.

Function Documentation

◆ get_lastfm_user()

tuple[User, dict[str, str]] homeassistant.components.lastfm.config_flow.get_lastfm_user ( str  api_key,
str  username 
)
Get and validate lastFM User.

Definition at line 36 of file config_flow.py.

◆ validate_lastfm_users()

tuple[list[str], dict[str, str]] homeassistant.components.lastfm.config_flow.validate_lastfm_users ( str  api_key,
list[str]   usernames 
)
Validate list of users. Return tuple of valid users and errors.

Definition at line 57 of file config_flow.py.

Variable Documentation

◆ PLACEHOLDERS

dictionary homeassistant.components.lastfm.config_flow.PLACEHOLDERS = {"api_account_url": "https://www.last.fm/api/account/create"}

Definition at line 26 of file config_flow.py.

◆ Schema

homeassistant.components.lastfm.config_flow.Schema

Definition at line 28 of file config_flow.py.