updating to latest
This commit is contained in:
13
custom_components/hacs/helpers/properties/custom.py
Normal file
13
custom_components/hacs/helpers/properties/custom.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# pylint: disable=missing-class-docstring,missing-module-docstring,missing-function-docstring,no-member
|
||||
from abc import ABC
|
||||
|
||||
|
||||
class RepositoryPropertyCustom(ABC):
|
||||
@property
|
||||
def custom(self):
|
||||
"""Return flag if the repository is custom."""
|
||||
if str(self.data.id) in self.hacs.common.default:
|
||||
return False
|
||||
if self.data.full_name == "hacs/integration":
|
||||
return False
|
||||
return True
|
||||
Reference in New Issue
Block a user