Mark more entities secondary on Fully Kiosk Browser (#105595)

This commit is contained in:
Franck Nijhof 2023-12-12 21:40:11 +01:00 committed by GitHub
parent 283ff4fada
commit d144d6c9ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -54,16 +54,19 @@ BUTTONS: tuple[FullyButtonEntityDescription, ...] = (
FullyButtonEntityDescription(
key="toForeground",
translation_key="to_foreground",
entity_category=EntityCategory.CONFIG,
press_action=lambda fully: fully.toForeground(),
),
FullyButtonEntityDescription(
key="toBackground",
translation_key="to_background",
entity_category=EntityCategory.CONFIG,
press_action=lambda fully: fully.toBackground(),
),
FullyButtonEntityDescription(
key="loadStartUrl",
translation_key="load_start_url",
entity_category=EntityCategory.CONFIG,
press_action=lambda fully: fully.loadStartUrl(),
),
)

View File

@ -46,6 +46,7 @@ ENTITY_TYPES: tuple[NumberEntityDescription, ...] = (
native_max_value=255,
native_step=1,
native_min_value=0,
entity_category=EntityCategory.CONFIG,
),
)