diff --git a/custom_components/alexa_media/helpers.py b/custom_components/alexa_media/helpers.py index 699d7859..d10b7b9b 100644 --- a/custom_components/alexa_media/helpers.py +++ b/custom_components/alexa_media/helpers.py @@ -242,7 +242,7 @@ def _existing_serials(hass, login_obj) -> list: .get("devices", {}) .get("media_player", {}) ) - for serial in existing_serials: + for serial in existing_serials[:]: device = device_data.get(serial, {}) if "appDeviceList" in device and device["appDeviceList"]: apps = [