Mortdecai 8f2bd2b015 fix: power_off works under systemd — absolute key path + freshly-woken retry
Two OFF-path bugs found during live testing:
- bscpylgtv's key store defaulted to a CWD-relative ./.aiopylgtv.sqlite;
  under systemd (cwd=/) it couldn't open the pairing key db. Pass an
  absolute key_file_path (LGTV_KEY_FILE override, else ~/.aiopylgtv.sqlite).
- A TV woken seconds earlier answers TCP :3000 but rejects WebSocket control
  for ~20-30s. Retry power_off (2 attempts, 10s apart); common case still
  succeeds first try in ~3s. Kept under the bridge's 60s subprocess timeout.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 20:16:20 -04:00
S
Description
MQTT bridge for LG WebOS TV control in Home Assistant (runs on steel141)
64 KiB
Languages
Shell 52.9%
Python 47.1%