Add config flow to nfandroidtv (#51280)
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
02a7a2464a
commit
462db1b4b2
14 changed files with 512 additions and 185 deletions
28
homeassistant/components/nfandroidtv/const.py
Normal file
28
homeassistant/components/nfandroidtv/const.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
"""Constants for the NFAndroidTV integration."""
|
||||
DOMAIN: str = "nfandroidtv"
|
||||
CONF_DURATION = "duration"
|
||||
CONF_FONTSIZE = "fontsize"
|
||||
CONF_POSITION = "position"
|
||||
CONF_TRANSPARENCY = "transparency"
|
||||
CONF_COLOR = "color"
|
||||
CONF_INTERRUPT = "interrupt"
|
||||
|
||||
DEFAULT_NAME = "Android TV / Fire TV"
|
||||
DEFAULT_TIMEOUT = 5
|
||||
|
||||
ATTR_DURATION = "duration"
|
||||
ATTR_FONTSIZE = "fontsize"
|
||||
ATTR_POSITION = "position"
|
||||
ATTR_TRANSPARENCY = "transparency"
|
||||
ATTR_COLOR = "color"
|
||||
ATTR_BKGCOLOR = "bkgcolor"
|
||||
ATTR_INTERRUPT = "interrupt"
|
||||
ATTR_FILE = "file"
|
||||
# Attributes contained in file
|
||||
ATTR_FILE_URL = "url"
|
||||
ATTR_FILE_PATH = "path"
|
||||
ATTR_FILE_USERNAME = "username"
|
||||
ATTR_FILE_PASSWORD = "password"
|
||||
ATTR_FILE_AUTH = "auth"
|
||||
# Any other value or absence of 'auth' lead to basic authentication being used
|
||||
ATTR_FILE_AUTH_DIGEST = "digest"
|
Loading…
Add table
Add a link
Reference in a new issue