mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 21:37:07 +00:00
Move imports to top for ps4 (#29471)
This commit is contained in:
parent
43665466f5
commit
c6b8d35c16
@ -2,9 +2,9 @@
|
||||
import logging
|
||||
import os
|
||||
|
||||
import voluptuous as vol
|
||||
from pyps4_2ndscreen.ddp import async_create_ddp_endpoint
|
||||
from pyps4_2ndscreen.media_art import COUNTRIES
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.media_player.const import (
|
||||
ATTR_MEDIA_CONTENT_TYPE,
|
||||
@ -20,7 +20,7 @@ from homeassistant.const import (
|
||||
)
|
||||
from homeassistant.core import split_entity_id
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers import entity_registry, config_validation as cv
|
||||
from homeassistant.helpers import config_validation as cv, entity_registry
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
from homeassistant.util import location
|
||||
from homeassistant.util.json import load_json, save_json
|
||||
|
@ -1,19 +1,18 @@
|
||||
"""Support for PlayStation 4 consoles."""
|
||||
import logging
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from pyps4_2ndscreen.errors import NotReady, PSDataIncomplete
|
||||
import pyps4_2ndscreen.ps4 as pyps4
|
||||
from pyps4_2ndscreen.errors import NotReady
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.components.media_player import ENTITY_IMAGE_URL, MediaPlayerDevice
|
||||
from homeassistant.components.media_player.const import (
|
||||
ATTR_MEDIA_CONTENT_TYPE,
|
||||
ATTR_MEDIA_TITLE,
|
||||
MEDIA_TYPE_GAME,
|
||||
MEDIA_TYPE_APP,
|
||||
SUPPORT_SELECT_SOURCE,
|
||||
MEDIA_TYPE_GAME,
|
||||
SUPPORT_PAUSE,
|
||||
SUPPORT_SELECT_SOURCE,
|
||||
SUPPORT_STOP,
|
||||
SUPPORT_TURN_OFF,
|
||||
SUPPORT_TURN_ON,
|
||||
@ -26,9 +25,10 @@ from homeassistant.const import (
|
||||
CONF_REGION,
|
||||
CONF_TOKEN,
|
||||
STATE_IDLE,
|
||||
STATE_STANDBY,
|
||||
STATE_PLAYING,
|
||||
STATE_STANDBY,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers import device_registry, entity_registry
|
||||
|
||||
from .const import (
|
||||
@ -254,7 +254,6 @@ class PS4Device(MediaPlayerDevice):
|
||||
|
||||
async def async_get_title_data(self, title_id, name):
|
||||
"""Get PS Store Data."""
|
||||
from pyps4_2ndscreen.errors import PSDataIncomplete
|
||||
|
||||
app_name = None
|
||||
art = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user