We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470d3e8 commit 1980675Copy full SHA for 1980675
custom_components/xiaomi_cloud_map_extractor/connector/__init__.py
@@ -92,7 +92,9 @@ async def _update(self: Self) -> None:
92
93
if not self._is_authenticated():
94
_LOGGER.debug("Logging in...")
95
- await self._cloud_connector.login_with_credentials(self._username, self._password)
+ if self._connector_config.username is None or self._connector_config.password is None:
96
+ raise FailedLoginException()
97
+ await self._cloud_connector.login_with_credentials(self._connector_config.username, self._connector_config.password)
98
99
_LOGGER.error("Not authenticated!")
100
raise FailedLoginException()
0 commit comments