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

version 0.0.3 stoped working in my C7 V2 170525 #6

Closed
martindb opened this issue May 10, 2020 · 2 comments
Closed

version 0.0.3 stoped working in my C7 V2 170525 #6

martindb opened this issue May 10, 2020 · 2 comments

Comments

@martindb
Copy link

Version 0.0.2 works great.

Log error with version 0.0.3:

Logger: homeassistant.components.device_tracker
Source: custom_components/tplink_router/device_tracker.py:537
Integration: Device tracker (documentation, issues)
First occurred: 3:23:45 PM (1 occurrences)
Last logged: 3:23:45 PM

Error setting up platform legacy
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 64, in async_setup_legacy
self.platform.get_scanner, hass, {DOMAIN: self.config}
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/tplink_router/device_tracker.py", line 54, in get_scanner
scanner = cls(config[DOMAIN])
File "/config/custom_components/tplink_router/device_tracker.py", line 513, in init
super(Tplink6DeviceScanner, self).init(config)
File "/config/custom_components/tplink_router/device_tracker.py", line 81, in init
self.success_init = self._update_info()
File "/config/custom_components/tplink_router/device_tracker.py", line 679, in _update_info
gotToken = self._get_auth_tokens()
File "/config/custom_components/tplink_router/device_tracker.py", line 613, in _get_auth_tokens
pubkey = self._get_pub_key()
File "/config/custom_components/tplink_router/device_tracker.py", line 537, in _get_pub_key
e = int(ee, 16)
ValueError: invalid literal for int() with base 16: ''

@martindb martindb changed the title version 0.0.3 stop working in my C7 V2 170525 version 0.0.3 stoped working in my C7 V2 170525 May 11, 2020
@ericpignet
Copy link
Owner

Sorry about that. Unsafe conversion in pull request #4 .
It didn't happen for me because the previous query was failing cleanly, before this conversion.
Should be fixed with last commit (see above).
I released a v0.0.4, please let me know if it's fixed

@martindb
Copy link
Author

Great, thank you. It seems that it's solved.

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

2 participants