cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

Allow String For Load Url #102

Closed ifflanb closed 2 years ago

ifflanb commented 2 years ago

Hi, at the moment, the load url action only allows a url type to be accepted. This prevents you from being able to use the "javascript:" actions that Fully allows. At the moment I change the type in the media player custom component to be a string and that fixes the issue, but I have to re apply the change after a new integration update. Can this please be changed?

For example I use commands like this:

javascript:postMessage({action:'navigate', route: { path: '/dashboard/view/ZhXOQnTti18APe0inuTX'}})

The area that I would like changed is this (Note the 'cv.string'):

platform.async_register_entity_service(
    SERVICE_LOAD_URL, {vol.Required(ATTR_URL): cv.string}, "async_fullykiosk_load_url"
)

Thanks