Add select
This commit is contained in:
@@ -6,6 +6,8 @@ from . import CONF_OPTOMA_RS232_ID, OptomaRS232Component, optoma_ns
|
||||
|
||||
DEPENDENCIES = ["optoma_rs232"]
|
||||
|
||||
InputSelect = optoma_ns.class_("InputSelect", select.Select)
|
||||
|
||||
Inputs = optoma_ns.enum("Inputs")
|
||||
INPUT_OPTIONS = {
|
||||
"Unknown": 0,
|
||||
@@ -14,8 +16,7 @@ INPUT_OPTIONS = {
|
||||
"HDMI 2": 8,
|
||||
}
|
||||
|
||||
CONFIG_SCHEMA = select.select_schema(
|
||||
).extend({
|
||||
CONFIG_SCHEMA = select.select_schema(InputSelect).extend({
|
||||
cv.GenerateID(CONF_OPTOMA_RS232_ID): cv.use_id(OptomaRS232Component),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user