1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add version to hassfest for custom integrations (#45523)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Joakim Sørensen
2021-01-25 13:31:14 +01:00
committed by GitHub
parent 1c0a74f18a
commit edfb8c3423
4 changed files with 51 additions and 4 deletions

View File

@@ -74,6 +74,11 @@ class Integration:
"""Integration domain."""
return self.path.name
@property
def core(self) -> bool:
"""Core integration."""
return self.path.as_posix().startswith("homeassistant/components")
@property
def disabled(self) -> Optional[str]:
"""List of disabled."""