Color temperature for lights#154
Conversation
|
I don't know why the coveralls coverage decreased. Everything I have added should have tests as well. |
|
Coveralls sometims does not like us :) (im pretty busy with some 35C3 stuff atm, but will have a look at your MR asap...) |
|
@farmio: Can you please update this PR so that it is up to date with the master branch? :) |
marvin-w
left a comment
There was a problem hiding this comment.
@farmio Thank you for the PR. Please merge the current master in your remote branch and take care of the review comments (where needed). I'd then merge it and take care of the PR at HA.
It would be great if you could retest this since at least I am unable to test this without the appropriate devices.
| from homeassistant.helpers.script import Script | ||
|
|
||
| REQUIREMENTS = ['xknx==0.8.5'] | ||
| REQUIREMENTS = ['xknx==0.9.0'] |
There was a problem hiding this comment.
please remove this from the PR. The current version will be 0.9.3 and we will merge it from HA directly into XKNX.
| PYTHONPATH = {toxinidir} | ||
| commands = | ||
| py.test --cov --cov-report= {posargs} | ||
| whitelist_externals = make |
There was a problem hiding this comment.
Without it tox throws a warning:
pylint runtests: commands[0] | make pylint WARNING: test command found but not installed in testenv cmd: /usr/bin/make env: /Users/meti/Documents/Dev/xknx/.tox/pylint Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
on my system. Same for
pydocstyle runtests: commands[0] | make pydocstyle
There was a problem hiding this comment.
Could this be the reason for the decreased coverage? These warnings occurred with the travis tests of the latest PR #161 too.
See for example https://travis-ci.org/XKNX/xknx/jobs/471596429 line 589 ff.
cc @Julius2342
|
I have tested it with Home-Assistant 0.84.6 and it works properly with an MDT Led Controller AKD-0424R.02 The only error was
but I haven't touched that file. |
|
@farmio Thanks for your fast feedback. We somehow need to get rid of those coverage "errors". I already fixed the error in I will merge the changes into our project once the PR is merged. There seem to be a lot of changes in this PR that are not related to the actual code changes. Can you fix this please? |
|
Never mind. I have done another rebase and force-pushed it. Seems good now.
Also I am not entirely sure if ATTR_WHITE_VALUE and SUPPORT_WHITE_VALUE are the best choices for relative color temperature settings. I couldn't find documentation about this back in October. |
- added tunable white function for setting relative color temperature for lights - tests for tunable white function - whitelist 'make' for tox - removed double whitespace in device.py
- added color temperature function for setting absolute color temperature values for lights - added tests for color remperature function - reordered DPTMAP in remote_value_sensor.py by DPT number - added DPTColorTemperature class for DPT 7.600
- added color temperature for home assistant plugin - added min and max kelvin / mireds
- removed unused import - bumped required version of xknx in ha-plugin - disabled pylint too-many-locals warning in light.py
- added color temperature function for setting absolute color temperature values for lights - added tests for color remperature function - reordered DPTMAP in remote_value_sensor.py by DPT number - added DPTColorTemperature class for DPT 7.600
- added color temperature for home assistant plugin - added min and max kelvin / mireds
- removed unused import - bumped required version of xknx in ha-plugin - disabled pylint too-many-locals warning in light.py
0dded5b to
ac432ab
Compare
Avoid triple conversion while comparing against min / max color temperature when a new value is set.
|
@farmio thanks for updating the PR. I will take another look tomorrow when I'm back home! |
|
🐬 |
added support for absolute and relative color temperature functions of lights.
'tunable_white' sets the relative color temperature in %
'color_temperature' sets the absolute color temperature in Kelvin
this PR supersedes #153