mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
This commit is contained in:
@@ -40,7 +40,7 @@ from .util import fetch_image_url
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
SCAN_INTERVAL = timedelta(minutes=1)
|
SCAN_INTERVAL = timedelta(seconds=30)
|
||||||
|
|
||||||
SUPPORT_SPOTIFY = (
|
SUPPORT_SPOTIFY = (
|
||||||
MediaPlayerEntityFeature.BROWSE_MEDIA
|
MediaPlayerEntityFeature.BROWSE_MEDIA
|
||||||
@@ -107,7 +107,6 @@ def spotify_exception_handler(func):
|
|||||||
class SpotifyMediaPlayer(MediaPlayerEntity):
|
class SpotifyMediaPlayer(MediaPlayerEntity):
|
||||||
"""Representation of a Spotify controller."""
|
"""Representation of a Spotify controller."""
|
||||||
|
|
||||||
_attr_entity_registry_enabled_default = False
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_icon = "mdi:spotify"
|
_attr_icon = "mdi:spotify"
|
||||||
_attr_media_content_type = MEDIA_TYPE_MUSIC
|
_attr_media_content_type = MEDIA_TYPE_MUSIC
|
||||||
|
Reference in New Issue
Block a user