Skip to content

Commit

Permalink
Changes to pass hassfest
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Dec 28, 2023
1 parent 89bec37 commit 9174138
Show file tree
Hide file tree
Showing 4 changed files with 817 additions and 418 deletions.
3 changes: 3 additions & 0 deletions custom_components/browser_mod/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import homeassistant.helpers.config_validation as cv

from .store import BrowserModStore
from .mod_view import async_setup_view
Expand All @@ -9,6 +10,8 @@
_LOGGER = logging.getLogger(__name__)


CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)

async def async_setup(hass, config):

store = BrowserModStore(hass)
Expand Down
11 changes: 11 additions & 0 deletions custom_components/browser_mod/services.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sequence:
name: sequence
description: "Run a sequence of services"
target:
device:
Expand All @@ -13,6 +14,7 @@ sequence:
object:

delay:
name: delay
description: "Wait for a time"
target:
device:
Expand All @@ -28,6 +30,7 @@ delay:
mode: box

popup:
name: popup
description: "Display a popup"
target:
device:
Expand Down Expand Up @@ -112,6 +115,7 @@ popup:
multiline: true

more_info:
name: more_info
description: "Show more-info dialog"
target:
device:
Expand Down Expand Up @@ -139,6 +143,7 @@ more_info:
boolean:

close_popup:
name: close_popup
description: "Close a popup"
target:
device:
Expand All @@ -147,6 +152,7 @@ close_popup:
integration: "browser_mod"

notification:
name: notification
description: "Display a short notification"
target:
device:
Expand Down Expand Up @@ -178,6 +184,7 @@ notification:
object:

navigate:
name: navigate
description: "Navigate browser to a different page"
target:
device:
Expand All @@ -192,6 +199,7 @@ navigate:
text:

refresh:
name: refresh
description: "Refresh page"
target:
device:
Expand All @@ -200,6 +208,7 @@ refresh:
integration: "browser_mod"

set_theme:
name: set_theme
description: "Change the current theme"
target:
device:
Expand Down Expand Up @@ -233,6 +242,7 @@ set_theme:
color_rgb:

console:
name: console
description: "Print text to browser console"
target:
device:
Expand All @@ -247,6 +257,7 @@ console:
text:

javascript:
name: javascript
description: "Run arbitrary JavaScript code"
target:
device:
Expand Down
Loading

0 comments on commit 9174138

Please sign in to comment.