Skip to content

Commit

Permalink
Add support for Lovelace dashboards (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Mar 17, 2020
1 parent 435f3d6 commit cbb5290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pychromecast/controllers/homeassistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def get_status(self, callback_function=None):
{"type": "get_status"}, callback_function=callback_function
)

def show_lovelace_view(self, view_path, callback_function=None):
def show_lovelace_view(self, view_path, url_path=None, callback_function=None):
"""Show a Lovelace UI."""
self.send_connected_message(
{"type": "show_lovelace_view", "viewPath": view_path},
{"type": "show_lovelace_view", "viewPath": view_path, "urlPath": url_path},
callback_function=callback_function,
)

Expand Down

0 comments on commit cbb5290

Please sign in to comment.