core/tests/components/light
Matthew Treinish 640d58f0a8 Fix X10 commands for mochad light turn on (#11146)
* Fix X10 commands for mochad light turn on

This commit attempts to address issues that a lot of people are having
with the x10 light component. Originally this was written to use the
xdim (extended dim) X10 command. However, not every X10 dimmer device
supports the xdim command. Additionally, it turns out the number of
dim/brighness levels the X10 device supports is device specific and
there is no way to detect this (given the mostly 1 way nature of X10)

To address these issues, this commit removes the usage of xdim and
instead relies on using the 'on' command and the 'dim' command. This
should work on all x10 light devices. In an attempt to address the
different dim/brightness levels supported by different devices this
commit also adds a new optional config value, 'brightness_levels', to
specify if it's either 32, 64, or 256. By default 32 levels are used
as this is the normal case and what is documented by mochad.

Fixes #8943

* make code more readable

* fix style

* fix lint

* fix tests
2017-12-17 00:52:40 +01:00
..
__init__.py Fix PEP257 issues 2016-03-09 10:25:50 +01:00
test_demo.py Cleanup old stale restore feature (#10593) 2017-11-15 23:03:41 -08:00
test_hue.py Refactor hue to split bridge support from light platform (#10691) 2017-12-10 10:15:01 -08:00
test_init.py Disallow ambiguous color descriptors in the light.turn_on schema (#7765) 2017-06-01 23:05:05 -07:00
test_litejet.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_mochad.py Fix X10 commands for mochad light turn on (#11146) 2017-12-17 00:52:40 +01:00
test_mqtt.py Mqtt light options to fix #9330 and #7810 (#9829) 2017-10-31 23:18:49 +01:00
test_mqtt_json.py Fix attribute entity (#8066) 2017-06-17 10:03:49 -07:00
test_mqtt_template.py Fix attribute entity (#8066) 2017-06-17 10:03:49 -07:00
test_rflink.py Correct spelling of aliases, deprecate old config options. (#8348) 2017-07-06 15:59:54 +02:00
test_rfxtrx.py Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
test_template.py Add entity_picture_template options to Template Cover, Template Light, Template Sensor, and Template Switch (#9854) 2017-10-30 09:28:37 -07:00
test_zwave.py Support for GE Zwave fan controller (#7767) 2017-05-25 22:55:00 -07:00