Remove unnecessary should poll from media player classes (#41220)

This commit is contained in:
springstan 2020-10-04 21:26:09 +02:00 committed by GitHub
parent b8ed9fb4c0
commit 228e167b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 25 deletions

View File

@ -476,11 +476,6 @@ class ADBDevice(MediaPlayerEntity):
"""Return the device name."""
return self._name
@property
def should_poll(self):
"""Device should be polled."""
return True
@property
def source(self):
"""Return the current app."""

View File

@ -126,11 +126,6 @@ class AFSAPIDevice(MediaPlayerEntity):
"""
return AFSAPI(self._device_url, self._password)
@property
def should_poll(self):
"""Device should be polled."""
return True
@property
def name(self):
"""Return the device name."""

View File

@ -187,11 +187,6 @@ class OpenhomeDevice(MediaPlayerEntity):
"""Flag of features commands that are supported."""
return self._supported_features
@property
def should_poll(self):
"""Return the polling state."""
return True
@property
def unique_id(self):
"""Return a unique ID."""

View File

@ -88,11 +88,6 @@ class PandoraMediaPlayer(MediaPlayerEntity):
self._media_duration = 0
self._pianobar = None
@property
def should_poll(self):
"""Return the polling state."""
return True
@property
def name(self):
"""Return the name of the media player."""

View File

@ -137,11 +137,6 @@ class YamahaDevice(MediaPlayerEntity):
return self.status
return self.power
@property
def should_poll(self):
"""Push an update after each command."""
return True
@property
def is_volume_muted(self):
"""Boolean if volume is currently muted."""