Fix inverse naming of function in Reolink (#100113)
This commit is contained in:
parent
6ccb74997c
commit
56678851af
2 changed files with 5 additions and 8 deletions
|
@ -19,7 +19,7 @@ from homeassistant.helpers.device_registry import format_mac
|
|||
from .const import CONF_PROTOCOL, CONF_USE_HTTPS, DOMAIN
|
||||
from .exceptions import ReolinkException, ReolinkWebhookException, UserNotAdmin
|
||||
from .host import ReolinkHost
|
||||
from .util import has_connection_problem
|
||||
from .util import is_connected
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -103,7 +103,7 @@ class ReolinkFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
and CONF_PASSWORD in existing_entry.data
|
||||
and existing_entry.data[CONF_HOST] != discovery_info.ip
|
||||
):
|
||||
if has_connection_problem(self.hass, existing_entry):
|
||||
if is_connected(self.hass, existing_entry):
|
||||
_LOGGER.debug(
|
||||
"Reolink DHCP reported new IP '%s', "
|
||||
"but connection to camera seems to be okay, so sticking to IP '%s'",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue