diff --git a/homeassistant/components/homeassistant_alerts/__init__.py b/homeassistant/components/homeassistant_alerts/__init__.py index 006f0db54a5..ed7957407a8 100644 --- a/homeassistant/components/homeassistant_alerts/__init__.py +++ b/homeassistant/components/homeassistant_alerts/__init__.py @@ -141,7 +141,6 @@ class AlertUpdateCoordinator(DataUpdateCoordinator[dict[str, IntegrationAlert]]) self.ha_version = AwesomeVersion( __version__, ensure_strategy=AwesomeVersionStrategy.CALVER, - find_first_match=False, ) async def _async_update_data(self) -> dict[str, IntegrationAlert]: @@ -161,14 +160,12 @@ class AlertUpdateCoordinator(DataUpdateCoordinator[dict[str, IntegrationAlert]]) if "affected_from_version" in alert["homeassistant"]: affected_from_version = AwesomeVersion( alert["homeassistant"]["affected_from_version"], - find_first_match=False, ) if self.ha_version < affected_from_version: continue if "resolved_in_version" in alert["homeassistant"]: resolved_in_version = AwesomeVersion( alert["homeassistant"]["resolved_in_version"], - find_first_match=False, ) if self.ha_version >= resolved_in_version: continue diff --git a/homeassistant/components/mysensors/config_flow.py b/homeassistant/components/mysensors/config_flow.py index 04e95f1dad3..b3c3d11f279 100644 --- a/homeassistant/components/mysensors/config_flow.py +++ b/homeassistant/components/mysensors/config_flow.py @@ -82,7 +82,10 @@ def _validate_version(version: str) -> dict[str, str]: try: AwesomeVersion( version, - [AwesomeVersionStrategy.SIMPLEVER, AwesomeVersionStrategy.SEMVER], + ensure_strategy=[ + AwesomeVersionStrategy.SIMPLEVER, + AwesomeVersionStrategy.SEMVER, + ], ) except AwesomeVersionStrategyException: version_okay = False diff --git a/homeassistant/components/recorder/util.py b/homeassistant/components/recorder/util.py index ddc8747f79b..139e73199ed 100644 --- a/homeassistant/components/recorder/util.py +++ b/homeassistant/components/recorder/util.py @@ -50,10 +50,18 @@ QUERY_RETRY_WAIT = 0.1 SQLITE3_POSTFIXES = ["", "-wal", "-shm"] DEFAULT_YIELD_STATES_ROWS = 32768 -MIN_VERSION_MARIA_DB = AwesomeVersion("10.3.0", AwesomeVersionStrategy.SIMPLEVER) -MIN_VERSION_MYSQL = AwesomeVersion("8.0.0", AwesomeVersionStrategy.SIMPLEVER) -MIN_VERSION_PGSQL = AwesomeVersion("12.0", AwesomeVersionStrategy.SIMPLEVER) -MIN_VERSION_SQLITE = AwesomeVersion("3.31.0", AwesomeVersionStrategy.SIMPLEVER) +MIN_VERSION_MARIA_DB = AwesomeVersion( + "10.3.0", ensure_strategy=AwesomeVersionStrategy.SIMPLEVER +) +MIN_VERSION_MYSQL = AwesomeVersion( + "8.0.0", ensure_strategy=AwesomeVersionStrategy.SIMPLEVER +) +MIN_VERSION_PGSQL = AwesomeVersion( + "12.0", ensure_strategy=AwesomeVersionStrategy.SIMPLEVER +) +MIN_VERSION_SQLITE = AwesomeVersion( + "3.31.0", ensure_strategy=AwesomeVersionStrategy.SIMPLEVER +) # This is the maximum time after the recorder ends the session # before we no longer consider startup to be a "restart" and we diff --git a/homeassistant/helpers/issue_registry.py b/homeassistant/helpers/issue_registry.py index b01d56942ac..345ec099d3f 100644 --- a/homeassistant/helpers/issue_registry.py +++ b/homeassistant/helpers/issue_registry.py @@ -303,7 +303,6 @@ def async_create_issue( AwesomeVersion( breaks_in_ha_version, ensure_strategy=AwesomeVersionStrategy.CALVER, - find_first_match=False, ) issue_registry = async_get(hass) diff --git a/homeassistant/loader.py b/homeassistant/loader.py index 1d100a42d83..f6da5048d45 100644 --- a/homeassistant/loader.py +++ b/homeassistant/loader.py @@ -453,7 +453,7 @@ class Integration: try: AwesomeVersion( integration.version, - [ + ensure_strategy=[ AwesomeVersionStrategy.CALVER, AwesomeVersionStrategy.SEMVER, AwesomeVersionStrategy.SIMPLEVER, diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 5de59a22eb7..91660db1367 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -8,7 +8,7 @@ async-upnp-client==0.31.2 async_timeout==4.0.2 atomicwrites-homeassistant==1.4.1 attrs==21.2.0 -awesomeversion==22.6.0 +awesomeversion==22.8.0 bcrypt==3.1.7 bleak==0.15.1 bluetooth-adapters==0.3.2 diff --git a/pyproject.toml b/pyproject.toml index 3297cb39db2..d68cac82923 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dependencies = [ "async_timeout==4.0.2", "attrs==21.2.0", "atomicwrites-homeassistant==1.4.1", - "awesomeversion==22.6.0", + "awesomeversion==22.8.0", "bcrypt==3.1.7", "certifi>=2021.5.30", "ciso8601==2.2.0", diff --git a/requirements.txt b/requirements.txt index f190aa50233..f2ad6f875b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ astral==2.2 async_timeout==4.0.2 attrs==21.2.0 atomicwrites-homeassistant==1.4.1 -awesomeversion==22.6.0 +awesomeversion==22.8.0 bcrypt==3.1.7 certifi>=2021.5.30 ciso8601==2.2.0 diff --git a/script/hassfest/manifest.py b/script/hassfest/manifest.py index 53970a4a895..515a617757c 100644 --- a/script/hassfest/manifest.py +++ b/script/hassfest/manifest.py @@ -138,7 +138,7 @@ def verify_version(value: str): try: AwesomeVersion( value, - [ + ensure_strategy=[ AwesomeVersionStrategy.CALVER, AwesomeVersionStrategy.SEMVER, AwesomeVersionStrategy.SIMPLEVER,