Update API temperature values #272
Reference in New Issue
Block a user
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I noticed some funky behaviour with the new API (#261 ). Basically the temperature shown in the WebUI differs from the one returned from the API.
After some digging I found, that the rpi_inputs aren't updated when the temperature is read. These 2 simple lines of codes update the rpi_inputs array (python makes shallow copies by default, which means the original object is updated).
I did test this with some absurd hardcoded values and they were returned correctly by the API. Hope you can merge this as well, as this will make the API way more useful :)
Thanks, I haven't had the time to work on this project, I started a major refactor to make the code more readable and following more pythonic coding style.
I'm guessing over the Hollidays I'll come back and work on this project!
Thanks for merging this so quickly! If you need any help, or someone to review something (especially the API part) let me know :)