Implement Alexa.PlaybackStateReporter Interface for alexa (#28215)

This commit is contained in:
ochlocracy 2019-10-25 17:53:33 -04:00 committed by Paulus Schoutsen
parent 7fee44b8c5
commit d6654eaecb
4 changed files with 67 additions and 1 deletions

View file

@ -46,6 +46,7 @@ from .capabilities import (
AlexaMotionSensor,
AlexaPercentageController,
AlexaPlaybackController,
AlexaPlaybackStateReporter,
AlexaPowerController,
AlexaPowerLevelController,
AlexaRangeController,
@ -422,6 +423,7 @@ class MediaPlayerCapabilities(AlexaEntity):
)
if supported & playback_features:
yield AlexaPlaybackController(self.entity)
yield AlexaPlaybackStateReporter(self.entity)
if supported & media_player.SUPPORT_SELECT_SOURCE:
yield AlexaInputController(self.entity)