From 629ceb3f03c001bf999b97b35d5a04b0812d293d Mon Sep 17 00:00:00 2001 From: Teemu R Date: Sat, 8 Dec 2018 21:09:31 +0100 Subject: [PATCH 1/2] Add poll configuration variable for songpal --- source/_components/media_player.songpal.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_components/media_player.songpal.markdown b/source/_components/media_player.songpal.markdown index 0fd9a73f72cf..45f6246f5e31 100644 --- a/source/_components/media_player.songpal.markdown +++ b/source/_components/media_player.songpal.markdown @@ -46,6 +46,11 @@ endpoint: description: API endpoint of the device. required: true type: string + poll: + description: If true, a websocket is used to listen for instantaneous notifications from the device instead of polling it. + required: false + type: bool + default: true {% endconfiguration %} See [python-songpal's documentation](https://github.com/rytilahti/python-songpal#locating-the-endpoint) how to get your API endpoint. From 5f8e04be1462231381f44244bb82d1be8d4da6d8 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Sat, 8 Dec 2018 22:14:54 +0100 Subject: [PATCH 2/2] Update media_player.songpal.markdown --- source/_components/media_player.songpal.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/media_player.songpal.markdown b/source/_components/media_player.songpal.markdown index 45f6246f5e31..286f69417a1f 100644 --- a/source/_components/media_player.songpal.markdown +++ b/source/_components/media_player.songpal.markdown @@ -46,7 +46,7 @@ endpoint: description: API endpoint of the device. required: true type: string - poll: +poll: description: If true, a websocket is used to listen for instantaneous notifications from the device instead of polling it. required: false type: bool