jangxx / node-magichome

An incomplete implementation of the functionality of the "Magic Home" app. Partially a port of https://github.com/Danielhiversen/flux_led to Node.js
ISC License
124 stars 26 forks source link

consistency for white values #7

Closed tedstriker closed 5 years ago

tedstriker commented 5 years ago

I'd like to propose a change of percental display for warm white to its absolute value for a few reasons:

kept warm_white_percent property for compatibility/convenience purposes.

jangxx commented 5 years ago

This is a good idea, considering the warm_white_percent key is just a relic from the Python library this library is based on. Tbh, I would go even further and just remove the percent value outright. I have already argued to have the API take absolute values instead of percent https://github.com/jangxx/node-magichome/issues/5#issuecomment-421750327 and I don't see why we should include any unnecessary values in the response object.