@willholdoway thanks for great work!
I’ve found 2 issues:
first:
2020-05-25 10:56:05 ERROR (SyncWorker_1) [homeassistant.loader] Error parsing manifest.json file at /config/custom_components/hifiberry/manifest.json: Expecting value: line 7 column 18 (char 186)
can be solved by quotes in manifest.json
, codeowners:
{
"domain": "hifiberry",
"name": "Hifiberry",
"documentation": "https://www.home-assistant.io/integrations/HifiBerry",
"requirements": [],
"dependencies": [],
"codeowners": ["@willholdoway"]
}
second, not sure why this happens:
2020-05-25 11:05:49 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/yarl/__init__.py", line 161, in __new__
port = val.port
File "/usr/local/lib/python3.7/urllib/parse.py", line 169, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10: '8123static'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 380, in _request
url = URL(str_or_url)
File "/usr/local/lib/python3.7/site-packages/yarl/__init__.py", line 165, in __new__
) from e
ValueError: Invalid URL: port can't be converted to integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 125, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 881, in get
data, content_type = await player.async_get_media_image()
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 424, in async_get_media_image
return await _async_fetch_image(self.hass, url)
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 837, in _async_fetch_image
response = await websession.get(url)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 382, in _request
raise InvalidURL(str_or_url)
aiohttp.client_exceptions.InvalidURL: http://172.16.172.2:8123static/unknown.png
2
my config (base_url: has been deprecated):
homeassistant:
external_url: https://my.external-url.tld
internal_url: http://172.16.172.2:8123
media_player:
- platform: hifiberry
host: 172.16.172.3
name: HifiBerry
port: 81
home assistant version: 0.110.2
thanks for help