Add config flow to pushover (#74500)

* Add config flow to `pushover`

* Add tests for reauth

* add deprecated yaml issue

* address comments

* fix test error, other fixes

* update translations
This commit is contained in:
Rami Mosleh 2022-08-19 09:07:32 +03:00 committed by GitHub
parent 09aaf45f0a
commit 72a4f8af3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 660 additions and 46 deletions

View file

@ -0,0 +1,20 @@
"""Constants for pushover."""
from typing import Final
DOMAIN: Final = "pushover"
DATA_HASS_CONFIG: Final = "pushover_hass_config"
DEFAULT_NAME: Final = "Pushover"
ATTR_ATTACHMENT: Final = "attachment"
ATTR_URL: Final = "url"
ATTR_URL_TITLE: Final = "url_title"
ATTR_PRIORITY: Final = "priority"
ATTR_RETRY: Final = "retry"
ATTR_SOUND: Final = "sound"
ATTR_HTML: Final = "html"
ATTR_CALLBACK_URL: Final = "callback_url"
ATTR_EXPIRE: Final = "expire"
ATTR_TIMESTAMP: Final = "timestamp"
CONF_USER_KEY: Final = "user_key"