mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 06:36:30 +00:00
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:
parent
ec6da7851e
commit
d684aab207
@ -99,9 +99,7 @@ class DockerAddon(DockerInterface):
|
|||||||
@property
|
@property
|
||||||
def version(self) -> AwesomeVersion:
|
def version(self) -> AwesomeVersion:
|
||||||
"""Return version of Docker image."""
|
"""Return version of Docker image."""
|
||||||
if self.addon.legacy:
|
return self.addon.version
|
||||||
return self.addon.version
|
|
||||||
return super().version
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def arch(self) -> str:
|
def arch(self) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user