Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion homeassistant/components/philips_js/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ async def async_media_next_track(self) -> None:
async def async_media_play_pause(self) -> None:
"""Send pause command to media player."""
if self._tv.quirk_playpause_spacebar:
await self._tv.sendUnicode(" ")
await self._tv.sendKey("Confirm")
else:
await self._tv.sendKey("PlayPause")
await self._async_update_soon()
Expand Down Expand Up @@ -509,6 +509,8 @@ def _update_from_coordinator(self):
self._media_title = self._sources.get(self._tv.source_id)
self._media_channel = None

self._attr_assumed_state = True

@callback
def _handle_coordinator_update(self) -> None:
"""Handle updated data from the coordinator."""
Expand Down