Skip to content

Commit

Permalink
change version check to satisfy hassfest
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Aug 4, 2022
1 parent 4e05b88 commit c1ecb09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/mass/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion custom_components/mass/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit c1ecb09

Please sign in to comment.