Skip to content

Commit

Permalink
Use _get_reconfigure_entry in feedreader (#127282)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Oct 2, 2024
1 parent f6c7ade commit 273795b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions homeassistant/components/feedreader/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from collections.abc import Mapping
import logging
from typing import TYPE_CHECKING, Any
from typing import Any
import urllib.error

import feedparser
Expand Down Expand Up @@ -125,12 +125,7 @@ async def async_step_reconfigure(
self, entry_data: Mapping[str, Any]
) -> ConfigFlowResult:
"""Handle a reconfiguration flow initialized by the user."""
config_entry = self.hass.config_entries.async_get_entry(
self.context["entry_id"]
)
if TYPE_CHECKING:
assert config_entry is not None
self._config_entry = config_entry
self._config_entry = self._get_reconfigure_entry()
return await self.async_step_reconfigure_confirm()

async def async_step_reconfigure_confirm(
Expand Down

0 comments on commit 273795b

Please sign in to comment.