A couple of years ago I had my Virgin V6 Tivo integrated in HA - it worked fine. Recently I had to create a complete new installation, and my re-build can’t seem to access it. I have followed the installation guide, created the required folder and moved the required files in there, and added the required lines to my configuration file.
In the log I see:
Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:366
integration: Media Player (documentation, issues)
First occurred: 16:27:59 (1 occurrences)
Last logged: 16:27:59
Error while setting up virgintivo platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/virgintivo/media_player.py", line 230, in setup_platform
hass.data[DATA_VIRGINTIVO].append(VirginTivo(extra[CONF_HOST], channels, tivo_id, extra[CONF_NAME],
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
force_hd_on_tv, guide, keep_connected))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/virgintivo/media_player.py", line 330, in __init__
self.get_guide_channels()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/virgintivo/media_player.py", line 341, in get_guide_channels
for channel in channels_data["channels"]:
~~~~~~~~~~~~~^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
I’m running HA on a Raspberry Pi 400
- Core 2024.12.5
- Supervisor 2024.12.0
- Operating System 14.1
- Frontend 20241127.8
My configuration file looks like this:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Virgin TIVO
media_player:
- platform: virgintivo
tivos:
1:
name: Virgin V6
host: 192.168.0.xxx *<removed for security>*
tvchannellists:
enable: True
Can anyone please enlighten me as to what I’m doing wrong?