GameDevHobby / Domoticz-LGTV-WebOS-Plugin

LG TV WebOS 3 Plugin for Domoticz
14 stars 13 forks source link

'onHeartbeat' failed 'ValueError' #1

Closed koenkooi closed 6 years ago

koenkooi commented 6 years ago

I installed the plugin yesterday and noticed some issues, one of them being this:

Nov 07 20:56:06 domoticz-gateway domoticz[27746]: (55" LG TV) Update 1:'com.webos.app.hdmi2
                                                  ' (55" LG TV - Status)
Nov 07 20:57:45 domoticz-gateway domoticz[27746]: (55" LG TV) Update 1:'netflix
                                                  ' (55" LG TV - Status)
Nov 07 20:58:33 domoticz-gateway domoticz[27746]: (55" LG TV) Update 1:'Traceback (most recent call last):
                                                  )' (55" LG TV - Status)
Nov 07 20:58:33 domoticz-gateway domoticz[27746]: (55" LG TV) Update 1:'10' (55" LG TV - Source)
Nov 07 20:58:41 domoticz-gateway domoticz[27746]: (55" LG TV) 'onHeartbeat' failed 'ValueError':'invalid literal for int() with base 10: 'Traceback (most recent call last):\n  File "/var/lib/domoticz/plugins/lgtv/lg.py", line 194, in <module>\n    main()\n  File "/var/lib/domoticz/plugins/lgtv/lg.py", line 189, in main\n    print(cmd.r'.
Nov 07 20:58:41 domoticz-gateway domoticz[27746]: (55" LG TV) ----> Line 366 in /var/lib/domoticz/plugins/lgtv/plugin.py, function onHeartbeat
Nov 07 20:58:41 domoticz-gateway domoticz[27746]: (55" LG TV) ----> Line 259 in /var/lib/domoticz/plugins/lgtv/plugin.py, function onHeartbeat
Nov 07 20:58:41 domoticz-gateway domoticz[27746]: (55" LG TV) ----> Line 343 in /var/lib/domoticz/plugins/lgtv/plugin.py, function GetTVInfo
Nov 07 20:58:45 domoticz-gateway domoticz[27746]: (55" LG TV) Update 0:'Off' (55" LG TV - Status)
GameDevHobby commented 6 years ago

Thanks for getting into my plugin! I will merge your pull request! May I ask what the value was that was invalid?

koenkooi commented 6 years ago

Thanks for meeging it! I haven’t looked at what the value was, the isdigit() worked on the first try and I forgot to inspect the value after that.

Op 8 nov. 2017 om 22:50 heeft Chris Gheen notifications@github.com het volgende geschreven:

Closed #1 via #3.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.