Bump awesomeversion to 21.8.1 (#55817)

This commit is contained in:
Ruslan Sayfutdinov 2021-09-11 19:40:46 +01:00 committed by GitHub
parent ed9b271fd0
commit a9ed4fa405
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 4 deletions

View file

@ -322,6 +322,14 @@ class Integration:
return integration
_LOGGER.warning(CUSTOM_WARNING, integration.domain)
if integration.version is None:
_LOGGER.error(
"The custom integration '%s' does not have a "
"version key in the manifest file and was blocked from loading. "
"See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details",
integration.domain,
)
return None
try:
AwesomeVersion(
integration.version,

View file

@ -7,7 +7,7 @@ astral==2.2
async-upnp-client==0.20.0
async_timeout==3.0.1
attrs==21.2.0
awesomeversion==21.4.0
awesomeversion==21.8.1
backports.zoneinfo;python_version<"3.9"
bcrypt==3.1.7
certifi>=2020.12.5

View file

@ -5,7 +5,7 @@ aiohttp==3.7.4.post0
astral==2.2
async_timeout==3.0.1
attrs==21.2.0
awesomeversion==21.4.0
awesomeversion==21.8.1
backports.zoneinfo;python_version<"3.9"
bcrypt==3.1.7
certifi>=2020.12.5

View file

@ -36,7 +36,7 @@ REQUIRES = [
"astral==2.2",
"async_timeout==3.0.1",
"attrs==21.2.0",
"awesomeversion==21.4.0",
"awesomeversion==21.8.1",
'backports.zoneinfo;python_version<"3.9"',
"bcrypt==3.1.7",
"certifi>=2020.12.5",

View file

@ -141,7 +141,7 @@ async def test_custom_integration_version_not_valid(
await loader.async_get_integration(hass, "test_no_version")
assert (
"The custom integration 'test_no_version' does not have a valid version key (None) in the manifest file and was blocked from loading."
"The custom integration 'test_no_version' does not have a version key in the manifest file and was blocked from loading."
in caplog.text
)