mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix xbox type hint (#49102)
This commit is contained in:
parent
fe80afdb86
commit
05468a50f4
@ -2,7 +2,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from typing import List
|
|
||||||
|
|
||||||
from xbox.webapi.api.client import XboxLiveClient
|
from xbox.webapi.api.client import XboxLiveClient
|
||||||
from xbox.webapi.api.provider.catalog.models import Image
|
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"]
|
purpose_order = ["FeaturePromotionalSquareArt", "Tile", "Logo", "BoxArt"]
|
||||||
for purpose in purpose_order:
|
for purpose in purpose_order:
|
||||||
for image in images:
|
for image in images:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user