Update iOS configuration adding Action toggles to show in CarPlay and Watch (#108355)

This commit is contained in:
Bruno Pantaleão Gonçalves 2024-01-22 18:22:08 +01:00 committed by GitHub
parent 4d85f78b32
commit 31ef034c3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,8 @@ from .const import (
CONF_ACTION_LABEL_COLOR, CONF_ACTION_LABEL_COLOR,
CONF_ACTION_LABEL_TEXT, CONF_ACTION_LABEL_TEXT,
CONF_ACTION_NAME, CONF_ACTION_NAME,
CONF_ACTION_SHOW_IN_CARPLAY,
CONF_ACTION_SHOW_IN_WATCH,
CONF_ACTIONS, CONF_ACTIONS,
DOMAIN, DOMAIN,
) )
@ -147,6 +149,8 @@ ACTION_SCHEMA = vol.Schema(
vol.Optional(CONF_ACTION_ICON_ICON): cv.string, vol.Optional(CONF_ACTION_ICON_ICON): cv.string,
vol.Optional(CONF_ACTION_ICON_COLOR): cv.string, vol.Optional(CONF_ACTION_ICON_COLOR): cv.string,
}, },
vol.Optional(CONF_ACTION_SHOW_IN_CARPLAY): cv.boolean,
vol.Optional(CONF_ACTION_SHOW_IN_WATCH): cv.boolean,
}, },
) )

View File

@ -11,3 +11,5 @@ CONF_ACTION_ICON = "icon"
CONF_ACTION_ICON_COLOR = "color" CONF_ACTION_ICON_COLOR = "color"
CONF_ACTION_ICON_ICON = "icon" CONF_ACTION_ICON_ICON = "icon"
CONF_ACTIONS = "actions" CONF_ACTIONS = "actions"
CONF_ACTION_SHOW_IN_CARPLAY = "show_in_carplay"
CONF_ACTION_SHOW_IN_WATCH = "show_in_watch"