Fix 'Switch to' button
This commit is contained in:
		| @@ -441,7 +441,7 @@ class _MediaPlayerControlsState extends State<MediaPlayerControls> { | ||||
|   } | ||||
|  | ||||
|   void _switchTo(entity) { | ||||
|     HomeAssistant().sendFromPlayerId = entity.enityId; | ||||
|     HomeAssistant().sendFromPlayerId = entity.entityId; | ||||
|     _duplicateTo(entity); | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -232,6 +232,7 @@ class _PlayMediaPageState extends State<PlayMediaPage> { | ||||
|  | ||||
|   @override | ||||
|   void dispose(){ | ||||
|     HomeAssistant().sendFromPlayerId = null; | ||||
|     _stateSubscription?.cancel(); | ||||
|     _refreshDataSubscription?.cancel(); | ||||
|     super.dispose(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user