Skip to content

Commit f611f36

Browse files
committed
Increase test coverage
1 parent c20e753 commit f611f36

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

homeassistant/components/generic/config_flow.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,6 @@ def async_get_options_flow(
341341
"""Get the options flow for this handler."""
342342
return GenericOptionsFlowHandler(config_entry)
343343

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-
352344
async def async_step_user(
353345
self, user_input: dict[str, Any] | None = None
354346
) -> ConfigFlowResult:
@@ -402,7 +394,7 @@ async def async_step_user_confirm(
402394
) -> ConfigFlowResult:
403395
"""Handle user clicking confirm after still preview."""
404396
if user_input:
405-
if ha_stream := self.context.get("preview_stream"):
397+
if ha_stream := self.preview_stream:
406398
# Kill off the temp stream we created.
407399
await ha_stream.stop()
408400
if not user_input.get(CONF_CONFIRMED_OK):

0 commit comments

Comments
 (0)