home-assistant-libs / pychromecast

Library for Python 3 to communicate with the Google Chromecast.
MIT License
2.51k stars 380 forks source link

Correct generating cast messages #806

Closed emontnemery closed 5 months ago

emontnemery commented 6 months ago

Without this PR, we first encode to bytes, protobuf will decode the bytes to str and then finally encode it again.

See: https://github.com/home-assistant-libs/pychromecast/pull/805#discussion_r1468856946