home-assistant-libs / pychromecast

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

Change logged precision of volume from 1 to 2 #768

Closed alexdelorenzo closed 9 months ago

alexdelorenzo commented 10 months ago

Before this change, updating volume from 0.80 to 0.89 would cause pychromecast to log the change as such:

INFO:pychromecast.controllers:Receiver:setting volume to 0.8
INFO:pychromecast.controllers:Receiver:setting volume to 0.8

After this change, logs accurately reflect volume changes:

INFO:pychromecast.controllers:Receiver:setting volume to 0.80
INFO:pychromecast.controllers:Receiver:setting volume to 0.89