Addon version shouldn't rely on io.hass.version (#3906)

* Addon version doesn't rely on `io.hass.version`

* Legacy and non-legacy match so remove the if
This commit is contained in:
Mike Degatano 2022-09-27 15:43:42 -04:00 committed by GitHub
parent ec6da7851e
commit d684aab207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,9 +99,7 @@ class DockerAddon(DockerInterface):
@property
def version(self) -> AwesomeVersion:
"""Return version of Docker image."""
if self.addon.legacy:
return self.addon.version
return super().version
return self.addon.version
@property
def arch(self) -> str: