mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
move imports in squeezebox component (#27650)
This commit is contained in:
parent
c7bd0fe909
commit
2f6c2fadd0
@ -2,13 +2,14 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
import socket
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import async_timeout
|
import async_timeout
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
|
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
|
||||||
from homeassistant.components.media_player.const import (
|
from homeassistant.components.media_player.const import (
|
||||||
ATTR_MEDIA_ENQUEUE,
|
ATTR_MEDIA_ENQUEUE,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
@ -100,7 +101,6 @@ SERVICE_TO_METHOD = {
|
|||||||
|
|
||||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Set up the squeezebox platform."""
|
"""Set up the squeezebox platform."""
|
||||||
import socket
|
|
||||||
|
|
||||||
known_servers = hass.data.get(KNOWN_SERVERS)
|
known_servers = hass.data.get(KNOWN_SERVERS)
|
||||||
if known_servers is None:
|
if known_servers is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user