Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.selector.QrCodeSelector Class Reference
Inheritance diagram for homeassistant.helpers.selector.QrCodeSelector:
[legend]
Collaboration diagram for homeassistant.helpers.selector.QrCodeSelector:
[legend]

Public Member Functions

Any __call__ (self, Any data)
 
None __init__ (self, QrCodeSelectorConfig config)
 

Static Public Attributes

 CONFIG_SCHEMA
 
string selector_type = "qr_code"
 

Detailed Description

QR code selector.

Definition at line 555 of file selector.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.selector.QrCodeSelector.__init__ (   self,
QrCodeSelectorConfig  config 
)
Instantiate a selector.

Definition at line 570 of file selector.py.

Member Function Documentation

◆ __call__()

Any homeassistant.helpers.selector.QrCodeSelector.__call__ (   self,
Any  data 
)
Validate the passed selection.

Definition at line 574 of file selector.py.

Member Data Documentation

◆ CONFIG_SCHEMA

homeassistant.helpers.selector.QrCodeSelector.CONFIG_SCHEMA
static
Initial value:
= vol.Schema(
{
vol.Required("data"): str,
vol.Optional("scale"): int,
vol.Optional("error_correction_level"): vol.All(
vol.Coerce(QrErrorCorrectionLevel), lambda val: val.value
),
}
)

Definition at line 560 of file selector.py.

◆ selector_type

string homeassistant.helpers.selector.QrCodeSelector.selector_type = "qr_code"
static

Definition at line 558 of file selector.py.


The documentation for this class was generated from the following file: