Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Wiim support #1

Merged
merged 3 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions custom_components/linkplay/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
"domain": "linkplay",
"name": "Linkplay",
"version":"3.1.8",
"documentation": "https://github.com/nagyrobi/home-assistant-custom-components-linkplay",
"issue_tracker": "https://github.com/nagyrobi/home-assistant-custom-components-linkplay/issues",
"documentation": "https://github.com/spdustin/home-assistant-custom-components-linkplay",
"issue_tracker": "https://github.com/spdustin/home-assistant-custom-components-linkplay/issues",
"after_dependencies": ["http", "tts", "media_source"],
"config_flow": false,
"iot_class": "local_polling",
"codeowners": [
"@nicjo814",
"@limych",
"@nagyrobi"
"@nagyrobi",
"@spdustin"
],
"requirements": [
"async-upnp-client>=0.27",
Expand Down
8 changes: 4 additions & 4 deletions custom_components/linkplay/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=

state = STATE_IDLE

initurl = "http://{0}/httpapi.asp?command=getStatus".format(host)
initurl = "https://{0}/httpapi.asp?command=getStatus".format(host)

try:
websession = async_get_clientsession(hass)
response = await websession.get(initurl)
response = await websession.get(initurl, verify_ssl=False)

if response.status == HTTPStatus.OK:
data = await response.json(content_type=None)
Expand Down Expand Up @@ -397,7 +397,7 @@ async def async_added_to_hass(self):

async def call_linkplay_httpapi(self, cmd, jsn):
"""Get the latest data from HTTPAPI service."""
url = "http://{0}/httpapi.asp?command={1}".format(self._host, cmd)
url = "https://{0}/httpapi.asp?command={1}".format(self._host, cmd)

if self._first_update:
timeout = 10
Expand All @@ -407,7 +407,7 @@ async def call_linkplay_httpapi(self, cmd, jsn):
try:
websession = async_get_clientsession(self.hass)
async with async_timeout.timeout(timeout):
response = await websession.get(url)
response = await websession.get(url, verify_ssl=False)

except (asyncio.TimeoutError, aiohttp.ClientError) as error:
_LOGGER.warning(
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Linkplay-based speakers and devices",
"name": "Linkplay-adjacent WiiM speakers",
"content_in_root": false,
"render_readme": false,
"domains": ["media_player"],
Expand Down