1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 21:32:21 +01:00

Add CODEOWNERS mechanism (#1199)

This commit is contained in:
Otto Winter
2020-07-25 15:57:18 +02:00
committed by GitHub
parent 5887fe8302
commit 4996967c79
48 changed files with 195 additions and 8 deletions

View File

@@ -66,6 +66,10 @@ class ComponentManifest:
def auto_load(self):
return getattr(self.module, 'AUTO_LOAD', [])
@property
def codeowners(self) -> List[str]:
return getattr(self.module, 'CODEOWNERS', [])
def _get_flags_set(self, name, config):
if not hasattr(self.module, name):
return set()