mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 09:06:29 +00:00
Fix error on comparson (#1104)
This commit is contained in:
parent
658449a7a0
commit
8ea712a937
@ -449,9 +449,9 @@ class AddonModel(CoreSysAttributes):
|
|||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
"""Compaired add-on objects."""
|
"""Compaired add-on objects."""
|
||||||
if self.slug == other.slug:
|
if not isinstance(other, AddonModel):
|
||||||
return True
|
return False
|
||||||
return False
|
return self.slug == other.slug
|
||||||
|
|
||||||
def _available(self, config) -> bool:
|
def _available(self, config) -> bool:
|
||||||
"""Return True if this add-on is available on this platform."""
|
"""Return True if this add-on is available on this platform."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user