-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TPLink WR841N - Error setting up platform legacy tplink_router #11
Comments
Hi, I have created a branch that potentially addresses this issue. Please clone that branch and replace your custom_components/tplink_router folder with the contents of the same folder in the Once verified, please confirm so that this can be merged into |
Hi, unfortunately this change doesn't work for me. I copied your data, then I also turned on "switch:", "sensor" and"device_tracker" in configuration.yaml and then I received multiple error messages: Logger: homeassistant.helpers.entity Update for switch.tplink_router_wan fails This error originated from a custom integration. Logger: homeassistant.helpers.entity Update for switch.tplink_router_5ghz fails This error originated from a custom integration. Logger: homeassistant.helpers.entity Update for switch.tplink_router_24ghz fails Logger: homeassistant.components.device_tracker Error setting up platform legacy tplink_router This error originated from a custom integration. Logger: homeassistant Error doing job: Task exception was never retrieved This error originated from a custom integration. Logger: homeassistant Error doing job: Task exception was never retrieved This error originated from a custom integration. Logger: homeassistant Error doing job: Task exception was never retrieved This error originated from a custom integration. Logger: custom_components.tplink_router.switch Metadata Update Error. This error originated from a custom integration. Logger: custom_components.tplink_router.sensor Metadata Update Error. |
Hello,
can you help me with this issue?
Device tracker doesnt work with my router.
Logger: homeassistant.components.device_tracker
Source: custom_components/tplink_router/device_tracker.py:451
Integration: Device tracker (documentation, issues)
First occurred: 10:10:07 AM (1 occurrences)
Last logged: 10:10:07 AM
Error setting up platform legacy tplink_router
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 282, in async_setup_legacy
scanner = await hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/tplink_router/device_tracker.py", line 56, in get_scanner
scanner = cls(config[DOMAIN])
File "/config/custom_components/tplink_router/device_tracker.py", line 83, in init
self.success_init = self._update_info()
File "/config/custom_components/tplink_router/device_tracker.py", line 451, in _update_info
session.get(base_url, headers=header)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 573, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 484, in prepare_request
p.prepare(
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 369, in prepare
self.prepare_headers(headers)
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 491, in prepare_headers
check_header_validity(header)
File "/usr/local/lib/python3.10/site-packages/requests/utils.py", line 1037, in check_header_validity
raise InvalidHeader(
requests.exceptions.InvalidHeader: Header part ('User-Agent') from {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gecko/20100101 Firefox/53.0'} must be of type str or bytes, not <class 'multidict._multidict.istr'>
Thank you
The text was updated successfully, but these errors were encountered: