Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbrunt57 authored Jul 21, 2024
1 parent 0712810 commit e2a89de
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions custom_components/alexa_media/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,6 @@ def async_get_options_flow(
return OptionsFlowHandler(config_entry)


######


class OptionsFlowHandler(config_entries.OptionsFlow):
"""Handle a option flow for Alexa Media."""

Expand Down Expand Up @@ -865,16 +862,16 @@ async def async_step_init(
(
vol.Optional(
CONF_SCAN_INTERVAL,
default=self.config_entry.data.get(CONF_SCAN_INTERVAL, 120),
default=self.config_entry.data.get(
CONF_SCAN_INTERVAL, 120
),
),
int,
),
(
vol.Optional(
CONF_QUEUE_DELAY,
default=self.config_entry.data.get(
CONF_QUEUE_DELAY, DEFAULT_QUEUE_DELAY
),
default=self.config_entry.data.get(CONF_QUEUE_DELAY, DEFAULT_QUEUE_DELAY),
),
float,
),
Expand All @@ -890,8 +887,7 @@ async def async_step_init(
),
(
vol.Optional(
CONF_DEBUG,
default=self.config_entry.data.get(CONF_DEBUG, DEFAULT_DEBUG),
CONF_DEBUG, default=self.config_entry.data.get(CONF_DEBUG, DEFAULT_DEBUG)
),
bool,
),
Expand All @@ -914,14 +910,10 @@ async def async_step_init(
user_input[CONF_OTPSECRET] = self.config_entry.data[CONF_OTPSECRET]
if CONF_OAUTH in self.config_entry.data:
user_input[CONF_OAUTH] = self.config_entry.data[CONF_OAUTH]
self.hass.config_entries.async_update_entry(
self.config_entry, data=user_input, options=self.config_entry.options
)

self.hass.config_entries.async_update_entry(
self.config_entry, data=user_input, options=self.config_entry.options
)

return self.async_create_entry(title="", data={})

return self.async_show_form(
Expand Down

0 comments on commit e2a89de

Please sign in to comment.