File tree 1 file changed +1
-9
lines changed
homeassistant/components/generic
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -341,14 +341,6 @@ def async_get_options_flow(
341
341
"""Get the options flow for this handler."""
342
342
return GenericOptionsFlowHandler (config_entry )
343
343
344
- def check_for_existing (self , options : dict [str , Any ]) -> bool :
345
- """Check whether an existing entry is using the same URLs."""
346
- return any (
347
- entry .options .get (CONF_STILL_IMAGE_URL ) == options .get (CONF_STILL_IMAGE_URL )
348
- and entry .options .get (CONF_STREAM_SOURCE ) == options .get (CONF_STREAM_SOURCE )
349
- for entry in self ._async_current_entries ()
350
- )
351
-
352
344
async def async_step_user (
353
345
self , user_input : dict [str , Any ] | None = None
354
346
) -> ConfigFlowResult :
@@ -402,7 +394,7 @@ async def async_step_user_confirm(
402
394
) -> ConfigFlowResult :
403
395
"""Handle user clicking confirm after still preview."""
404
396
if user_input :
405
- if ha_stream := self .context . get ( " preview_stream" ) :
397
+ if ha_stream := self .preview_stream :
406
398
# Kill off the temp stream we created.
407
399
await ha_stream .stop ()
408
400
if not user_input .get (CONF_CONFIRMED_OK ):
You can’t perform that action at this time.
0 commit comments