Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform does not support 'port:' option #16

Open
peregrinus opened this issue Mar 31, 2020 · 1 comment
Open

Platform does not support 'port:' option #16

peregrinus opened this issue Mar 31, 2020 · 1 comment

Comments

@peregrinus
Copy link

The problem

The integration does not support the option to specify the listening port of the admin URL. Many people run this system under Docker and the requirement to only listen on 8443 is limiting.

When the port is specified in the 'host:' section home assistant simply appends :8443 to the address.

Environment

arch | x86_64
dev | false
docker | true
hassio | false
os_name | Linux
os_version | 4.15.0-91-generic
python_version | 3.7.7
version | 0.107.7
virtualenv | false

  • Home Assistant Core release with the issue: All
  • Last working Home Assistant Core release (if known): None
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker

Problem-relevant configuration.yaml

  platform: unifigateway
  host: 10.x.x.x
  username: oliver
  password: *******
  monitored_conditions:
    - wlan
    - alerts
    - firmware

Traceback/Error logs

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 380, in prepare_url
    scheme, auth, host, port, path, query, fragment = parse_url(url)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/url.py", line 392, in parse_url
    return six.raise_from(LocationParseError(source_url), None)
  File "<string>", line 3, in raise_from
urllib3.exceptions.LocationParseError: Failed to parse: https://10.x.x.x:8446:8443/api/login

Additional information

@peregrinus
Copy link
Author

If anyone else is interested, i was able to update the port section of the sensor.py file in the custom component folder as a temporary solution:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant