mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Fix capitalization of protocols in Reolink option flow (#118839)
This commit is contained in:
parent
ed0568c655
commit
46bb9cb014
@ -25,7 +25,7 @@ from homeassistant.const import (
|
|||||||
)
|
)
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.data_entry_flow import AbortFlow
|
from homeassistant.data_entry_flow import AbortFlow
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv, selector
|
||||||
from homeassistant.helpers.device_registry import format_mac
|
from homeassistant.helpers.device_registry import format_mac
|
||||||
|
|
||||||
from .const import CONF_USE_HTTPS, DOMAIN
|
from .const import CONF_USE_HTTPS, DOMAIN
|
||||||
@ -60,7 +60,24 @@ class ReolinkOptionsFlowHandler(OptionsFlow):
|
|||||||
vol.Required(
|
vol.Required(
|
||||||
CONF_PROTOCOL,
|
CONF_PROTOCOL,
|
||||||
default=self.config_entry.options[CONF_PROTOCOL],
|
default=self.config_entry.options[CONF_PROTOCOL],
|
||||||
): vol.In(["rtsp", "rtmp", "flv"]),
|
): selector.SelectSelector(
|
||||||
|
selector.SelectSelectorConfig(
|
||||||
|
options=[
|
||||||
|
selector.SelectOptionDict(
|
||||||
|
value="rtsp",
|
||||||
|
label="RTSP",
|
||||||
|
),
|
||||||
|
selector.SelectOptionDict(
|
||||||
|
value="rtmp",
|
||||||
|
label="RTMP",
|
||||||
|
),
|
||||||
|
selector.SelectOptionDict(
|
||||||
|
value="flv",
|
||||||
|
label="FLV",
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user