bendavid / aiopylgtv

Library to control webOS based LG Tv devices
MIT License
143 stars 47 forks source link

Fix volume read status #25

Closed Acrobot closed 3 years ago

Acrobot commented 3 years ago

Previously, the volume reported by Home Assistant for my LG TV was always "NaN". This is due to the fact that the payload returned by the library contains "volume", but wrapped in an outer structure of "volumeStatus". This PR fixes this and now Home Assistant correctly reports the current value of volume.

Tested by running modified version of code in Home Assistant.

More details can be found here: https://www.webosose.org/docs/reference/ls2-api/com-webos-service-audio/#master-getvolume

Acrobot commented 3 years ago

Closing in favour of #27.