diff --git a/custom_components/mass/__init__.py b/custom_components/mass/__init__.py index 1dc37a14..a1ea1596 100644 --- a/custom_components/mass/__init__.py +++ b/custom_components/mass/__init__.py @@ -104,8 +104,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): # compare version in manifest with HA version manifest = await read_manifest() ha_vers = AwesomeVersion(HA_VERSION, AwesomeVersionStrategy.SEMVER, True) + vers_parts = manifest["version"].split(".") req_ha_vers = AwesomeVersion( - manifest["ha_version"], AwesomeVersionStrategy.SEMVER, True + f"{vers_parts[0]}.{vers_parts[1]}.0", AwesomeVersionStrategy.SEMVER, True ) # for now, just raise at mismatch of major/minor because in 99% of the cases # there are breaking changes between HA releases diff --git a/custom_components/mass/manifest.json b/custom_components/mass/manifest.json index d43167df..69bc4ea8 100644 --- a/custom_components/mass/manifest.json +++ b/custom_components/mass/manifest.json @@ -2,7 +2,6 @@ "domain": "mass", "name": "Music Assistant", "version": "2022.8.0", - "ha_version": "2022.8.0", "documentation": "https://github.com/music-assistant/hass-music-assistant", "issue_tracker": "https://github.com/music-assistant/hass-music-assistant/issues", "requirements": [