Change log severity from warn to error for custom integration version (#49726)

This commit is contained in:
Joakim Sørensen 2021-04-27 00:04:39 +02:00 committed by GitHub
parent 2a2e573987
commit 9d3b5cd0de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -791,12 +791,12 @@ def custom_integration_warning(integration: Integration) -> None:
_LOGGER.warning(CUSTOM_WARNING, integration.domain)
if integration.manifest.get("version") is None:
_LOGGER.warning(
_LOGGER.error(
CUSTOM_WARNING_VERSION_MISSING, integration.domain, integration.domain
)
else:
if not validate_custom_integration_version(integration.manifest["version"]):
_LOGGER.warning(
_LOGGER.error(
CUSTOM_WARNING_VERSION_TYPE,
integration.manifest["version"],
integration.domain,