Fix inverse naming of function in Reolink (#100113)

This commit is contained in:
starkillerOG 2023-09-11 18:03:22 +02:00 committed by GitHub
parent 6ccb74997c
commit 56678851af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View file

@ -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'",