Limych / media_player.linkplay

Deprecated. Please, use https://github.com/nagyrobi/home-assistant-custom-components-linkplay
MIT License
31 stars 58 forks source link

Support turning a device off #10

Closed mgustavss closed 5 years ago

mgustavss commented 5 years ago

I made some small fixes to support turning off a device. I've tested the code with my Audio Pro A10 and it seems to work fine.

I do get communication errors when the device is turned off, but that also happens when I turn off the device with the physical on/off button so it does not have anything to do with this PR. I'll look into those errors at a later time and submit a separate PR.