diff --git a/homeassistant/components/youtube/coordinator.py b/homeassistant/components/youtube/coordinator.py index 693d2550f53472..726295448950e5 100644 --- a/homeassistant/components/youtube/coordinator.py +++ b/homeassistant/components/youtube/coordinator.py @@ -65,7 +65,7 @@ async def _get_channels(self, service: Resource) -> list[dict[str, Any]]: channels = self.config_entry.options[CONF_CHANNELS] while received_channels < len(channels): # We're slicing the channels in chunks of 50 to avoid making the URI too long - end = min(received_channels + 50, len(channels) - 1) + end = min(received_channels + 50, len(channels)) channel_request: HttpRequest = service.channels().list( part="snippet,statistics", id=",".join(channels[received_channels:end]),