mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
remove and disable pylint: disable=abstract-method for play_youtube()
This commit is contained in:
@@ -43,6 +43,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
# pylint: disable=too-many-instance-attributes
|
# pylint: disable=too-many-instance-attributes
|
||||||
# pylint: disable=too-many-public-methods
|
# pylint: disable=too-many-public-methods
|
||||||
|
# pylint: disable=abstract-method
|
||||||
class SonosDevice(MediaPlayerDevice):
|
class SonosDevice(MediaPlayerDevice):
|
||||||
""" Represents a Sonos device. """
|
""" Represents a Sonos device. """
|
||||||
|
|
||||||
@@ -182,7 +183,3 @@ class SonosDevice(MediaPlayerDevice):
|
|||||||
""" turn the media player on. """
|
""" turn the media player on. """
|
||||||
self._player.play()
|
self._player.play()
|
||||||
self.update_ha_state()
|
self.update_ha_state()
|
||||||
|
|
||||||
def play_youtube(self, media_id):
|
|
||||||
""" Plays a YouTube media. """
|
|
||||||
raise NotImplementedError()
|
|
||||||
|
Reference in New Issue
Block a user