mirror of
https://github.com/home-assistant/supervisor
synced 2024-09-27 19:03:30 +02: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):
|
||||
"""Compaired add-on objects."""
|
||||
if self.slug == other.slug:
|
||||
return True
|
||||
return False
|
||||
if not isinstance(other, AddonModel):
|
||||
return False
|
||||
return self.slug == other.slug
|
||||
|
||||
def _available(self, config) -> bool:
|
||||
"""Return True if this add-on is available on this platform."""
|
||||
|
Loading…
Reference in New Issue
Block a user