jcgoette / baby_buddy_homeassistant

This custom integration provides sensors for Baby Buddy API endpoints.
MIT License
59 stars 26 forks source link

Pumping amount is always saved as integer, not float #147

Closed 20BBrown14 closed 1 month ago

20BBrown14 commented 4 months ago

When using the add_pumping service, specifying a float for the amount is always saved as an integer (2.73 -> 2.0, 3.5 -> 3.0, etc) in baby buddy. I have confirmed that the baby buddy API itself handles floats just fine and saved them as expected. For some reason, the add_pumping service doesn't honor the float and converts it to an integer.

jcgoette commented 1 month ago

Fixed by https://github.com/jcgoette/baby_buddy_homeassistant/commit/75c263a92682c5399ff919f212037a6ce6c6238d.