1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Fix xbox type hint (#49102)

This commit is contained in:
Marc Mueller 2021-04-12 13:57:30 +02:00 committed by GitHub
parent fe80afdb86
commit 05468a50f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@
from __future__ import annotations
import re
from typing import List
from xbox.webapi.api.client import XboxLiveClient
from xbox.webapi.api.provider.catalog.models import Image
@ -233,7 +232,7 @@ class XboxMediaPlayer(CoordinatorEntity, MediaPlayerEntity):
}
def _find_media_image(images=List[Image]) -> Image | None:
def _find_media_image(images: list[Image]) -> Image | None:
purpose_order = ["FeaturePromotionalSquareArt", "Tile", "Logo", "BoxArt"]
for purpose in purpose_order:
for image in images: