tdm icon indicating copy to clipboard operation
tdm copied to clipboard

Crash when right-clicking empty window

Open normanr opened this issue 4 years ago • 5 comments

If you right click when there are no devices listed:

Traceback (most recent call last):
  File "~/.local/lib/python3.8/site-packages/GUI/Devices.py", line 315, in show_list_ctx_menu
    self.select_device(self.device_list.indexAt(at))
  File "~/.local/lib/python3.8/site-packages/GUI/Devices.py", line 323, in select_device
    relays = self.device.power()
AttributeError: 'NoneType' object has no attribute 'power'
Aborted

normanr avatar Mar 13 '21 22:03 normanr

Same for me! Is there any way to add devices in this case? I'm new to TDM.. I guess right clicking the empty area opens a context menu to add devices? Not sure, since TDM will just close. Mhh, thanks! o)

tbone2k-git avatar Feb 15 '22 21:02 tbone2k-git

You don't need to add devices to TDM They are automatically discovered

barbudor avatar Feb 15 '22 22:02 barbudor

Hey barbudor, it's you again! o) Mhh.. ok, but I have 4 tasmota devices which can be accessed from "this" computer, why would TDM not show them?

tbone2k-git avatar Feb 16 '22 00:02 tbone2k-git

TDM uses MQTT server to get all the information is your pc able to see and did you configure the mqqt tab

PVerburg avatar Feb 16 '22 02:02 PVerburg

Ah, ok.. I got it! I was expecting auto discovery from network somehow. Thank you! o)

tbone2k-git avatar Feb 16 '22 07:02 tbone2k-git

after many many months I've gotten back to TDM development. This issue is fixed in latest develop branch, releases will follow within few next days with new features.

jziolkowski avatar Nov 16 '22 17:11 jziolkowski

Thank you! o)

tbone2k-git avatar Nov 16 '22 20:11 tbone2k-git