core: Enigma2 auth arguments missing when trying to download "grab" image
The problem
Log gets spammed with following when using openwebif with username and password:
Logger: homeassistant.components.media_player
Source: components/media_player/__init__.py:1212
Integration: Media Player (documentation, issues)
First occurred: 19:45:03 (1 occurrences)
Last logged: 19:45:03
Error retrieving proxied image from http://10.0.0.4:80/grab?format=jpg&r=720&mode=all&T=7110168981
Code problem description:
URL is used from there and constructed there
This works fine when used in session supplied by the python openwebif library
However media player integration propagates the URL down to there. Since the username and password are not inlined using http://user:pass@example.com (which, as shown in the method, can be used) it expectedly ends with HTTP 401 unauthorized error
Fix looks quite simple but leaving this to integration/library author since it’ll require dep bump anyway
What version of Home Assistant Core has the issue?
core-2022.3.8
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
enigma2
Link to integration documentation on our website
https://www.home-assistant.io/integrations/enigma2/
Diagnostics information
No response
Example YAML snippet
media_player:
# ========== ENIGMA 2 ==========
- platform: enigma2
host: 10.0.0.4
password: "xxxxx"
Anything in the logs that might be useful for us?
No response
Additional information
Probably duplicate of #44546 which got staled because of missing connection to enigma2 integration Dupe of #32490
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 16
Still an issue