hass-core/tests
Abílio Costa 61634d0a64 Store ZHA light brightness when fading off to turn on at the correct brightness (#26680)
* Use light's on_level in ZHA to turn on at the correct brightness

Previously, if the light is turned off with a time transition, the
brightness level stored in the light will be 1. The next time the light
is turned on with no explicit brightness, it will be at 1.

This is solved by storing the current brightness in on_level before
turning off, and then using that when turning on (by calling the
onOff cluster 'on' command).

* store off light level locally to avoid wearing device's flash memory

* store off brightness in HA attributes

* improve set/clear of off_brightness

* fix device_state_attributes; clear off_brightness when light goes on

* fix tests
2019-09-23 09:08:44 -04:00
..
auth Black 2019-07-31 12:25:30 -07:00
components Store ZHA light brightness when fading off to turn on at the correct brightness (#26680) 2019-09-23 09:08:44 -04:00
fixtures Add here_travel_time (#24603) 2019-09-23 11:50:18 +02:00
helpers Fix tests 2019-09-10 13:07:55 -07:00
mock Black 2019-07-31 12:25:30 -07:00
resources Revised package util tests 2016-01-30 14:08:32 -05:00
scripts Integration requirement check refactor (#25626) 2019-08-07 15:35:50 -07:00
test_util Bumps aiohttp to 3.6.0 (#26728) 2019-09-19 20:34:41 +02:00
testing_config Add device automation support to binary_sensor entities (#26643) 2019-09-22 11:13:17 -07:00
util Black 2019-07-31 12:25:30 -07:00
__init__.py async HTTP component (#3914) 2016-10-23 23:48:01 -07:00
common.py Rename MockToggleDevice to MockToggleEntity (#26644) 2019-09-15 09:50:17 +02:00
conftest.py Black 2019-07-31 12:25:30 -07:00
test_bootstrap.py Black 2019-07-31 12:25:30 -07:00
test_config.py Allow components with empty list config (i.e. person) in packages (#25827) 2019-08-10 16:30:33 -07:00
test_config_entries.py Reload config entry when entity enabled in entity registry, remove entity if disabled. (#26120) 2019-08-22 19:32:43 -05:00
test_core.py Black 2019-07-31 12:25:30 -07:00
test_data_entry_flow.py Black 2019-07-31 12:25:30 -07:00
test_loader.py Black 2019-07-31 12:25:30 -07:00
test_main.py Black 2019-07-31 12:25:30 -07:00
test_requirements.py Integration requirement check refactor (#25626) 2019-08-07 15:35:50 -07:00
test_setup.py Black 2019-07-31 12:25:30 -07:00