JeffLIrion / homeassistant_native_firetv

43 stars 16 forks source link

State not updated when pausing playback #11

Closed lociii closed 6 years ago

lociii commented 6 years ago

Thanks for the native implementation. Works great in general, just found one "issue" (maybe it's just a limitation).

Whenever I pause the playback, the state of the fire tv is still "playing". Would be great if the state updates to "paused" so that automations aren't accidentally resuming playback. e.g. I'd love to stop playback on an incoming call.

Can you reproduce or let me know if it's a limitation? Thanks.

JeffLIrion commented 6 years ago

That's just a limitation. In the update function it determines whether it's playing, paused, or on standby based on the current app and whether or not wake lock is in effect

https://github.com/JeffLIrion/homeassistant_native_firetv/blob/4d4a2079b00320551517196a5de3e84163db165b/media_player/firetv.py#L156-L177