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

TypeError for discover_timeout #21

Open
jimboca opened this issue Dec 23, 2023 · 0 comments
Open

TypeError for discover_timeout #21

jimboca opened this issue Dec 23, 2023 · 0 comments
Assignees

Comments

@jimboca
Copy link
Collaborator

jimboca commented Dec 23, 2023

https://forum.universal-devices.com/topic/41998-pg3-kasa-tp-link-node-server-314/?do=findComment&comment=377066

2023-12-21 10:55:50,332 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,)
2023-12-21 10:55:50,530 Thread-10  udi_interface      ERROR    Controller:handler_start: discover failed
Traceback (most recent call last):
  File "/var/polyglot/pg3/ns/0021b90266f4_15/nodes/Controller.py", line 80, in handler_start
    self.discover()
  File "/var/polyglot/pg3/ns/0021b90266f4_15/nodes/Controller.py", line 158, in discover
    res = future.result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 446, in result
    return self.__get_result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  File "/var/polyglot/pg3/ns/0021b90266f4_15/nodes/Controller.py", line 181, in _discover
    await Discover.discover(timeout=self.discover_timeout,discovery_packets=10,target=target,on_discovered=self.discover_add_device)
  File "/var/polyglot/pg3/ns/0021b90266f4_15/.local/lib/python3.9/site-packages/kasa/discover.py", line 247, in discover
    await asyncio.sleep(timeout)
  File "/usr/local/lib/python3.9/asyncio/tasks.py", line 640, in sleep
    if delay <= 0:
TypeError: '<=' not supported between instances of 'str' and 'int'
@jimboca jimboca self-assigned this Dec 30, 2023
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