Fix stop player when switching to another

This commit is contained in:
estevez-dev
2019-09-15 20:27:49 +03:00
parent 14958d9165
commit 885c0b1316
3 changed files with 6 additions and 1 deletions

View File

@ -441,7 +441,7 @@ class _MediaPlayerControlsState extends State<MediaPlayerControls> {
}
void _switchTo(entity) {
eventBus.fire(ServiceCallEvent(entity.domain, "turn_off", entity.entityId, null));
HomeAssistant().sendFromPlayerId = entity.enityId;
_duplicateTo(entity);
}