home-assistant/custom_components/hacs/helpers/properties/custom.py

14 lines
436 B
Python
Raw Normal View History

2021-02-02 04:58:39 +00:00
# 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