Repository event subscription (#67284)
This commit is contained in:
parent
73fdd47d54
commit
e65670fef4
5 changed files with 61 additions and 7 deletions
|
@ -11,7 +11,18 @@ DOMAIN = "github"
|
|||
CLIENT_ID = "1440cafcc86e3ea5d6a2"
|
||||
|
||||
DEFAULT_REPOSITORIES = ["home-assistant/core", "esphome/esphome"]
|
||||
DEFAULT_UPDATE_INTERVAL = timedelta(seconds=300)
|
||||
FALLBACK_UPDATE_INTERVAL = timedelta(hours=1, minutes=30)
|
||||
|
||||
CONF_ACCESS_TOKEN = "access_token"
|
||||
CONF_REPOSITORIES = "repositories"
|
||||
|
||||
|
||||
REFRESH_EVENT_TYPES = (
|
||||
"CreateEvent",
|
||||
"ForkEvent",
|
||||
"IssuesEvent",
|
||||
"PullRequestEvent",
|
||||
"PushEvent",
|
||||
"ReleaseEvent",
|
||||
"WatchEvent",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue