core/homeassistant/components
MartinHjelmare c56701baaf Refactor reproduce_state for scene component
* Add tests to reach full coverage for helpers/state.py.
* Refactor reproduce_state function in helpers/state.py. Add two dicts,
	as global constants, service_attributes and service_to_state. Use
	these in combination with the dict of services per domain from
	ServiceRegistry, to find the correct service to use in a scene state
	change.
* Use break statement in for loop, to break if service was selected
	to update state, in preference to update state attributes, ie state
	update takes precedence.
* Add ATTR_CODE and ATTR_CODE_FORMAT in const. Import these in
	alarm_control_panel and lock platforms instead of making duplicate
	constants in multiple modules.
* Use ATTR_MEDIA_CONTENT_TYPE and ATTR_MEDIA_CONTENT_ID in media_player
	platform in SERVICE_PLAY_MEDIA and play_media methods, instead of
	'media_type' and 'media_id'.
* Fix PEP257 in modified files.
2016-03-09 18:52:05 +01:00
..
alarm_control_panel Refactor reproduce_state for scene component 2016-03-09 18:52:05 +01:00
automation Fix PEP257 issues 2016-03-07 20:20:07 +01:00
binary_sensor Fix PEP257 issues 2016-03-09 11:15:04 +01:00
camera Fix PEP257 issues 2016-03-07 20:29:54 +01:00
device_tracker Fix PEP257 issues 2016-03-09 11:15:04 +01:00
frontend Fix PEP257 issues 2016-03-09 11:15:04 +01:00
garage_door Fix PEP257 issues 2016-03-07 21:22:21 +01:00
light Fix PEP257 issues 2016-03-07 22:08:21 +01:00
lock Refactor reproduce_state for scene component 2016-03-09 18:52:05 +01:00
media_player Refactor reproduce_state for scene component 2016-03-09 18:52:05 +01:00
mqtt Modify import of template and PEP257 2016-02-23 21:19:22 +01:00
notify Fix PEP257 issues 2016-03-08 11:46:32 +01:00
rollershutter Fix PEP257 issues 2016-03-07 23:01:34 +01:00
scene Refactor reproduce_state for scene component 2016-03-09 18:52:05 +01:00
sensor Merge pull request #1508 from persandstrom/verisure_typo_thermometers 2016-03-08 21:42:43 +01:00
switch Remove parenthesis 2016-03-08 18:05:01 +01:00
thermostat Fix PEP257 issues 2016-03-07 22:44:35 +01:00
__init__.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
alexa.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
apcupsd.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
api.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
arduino.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
bloomsky.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
browser.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
configurator.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
conversation.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
demo.py Update demo.py 2016-02-26 18:43:50 -08:00
device_sun_light_trigger.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
discovery.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
downloader.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
ecobee.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
graphite.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
group.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
history.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
http.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
ifttt.py Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
influxdb.py Use global variable and merge two if in one 2016-03-04 23:32:24 +01:00
input_boolean.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
input_select.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
insteon_hub.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
introduction.py Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
isy994.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
keyboard.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
logbook.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
logger.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
modbus.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
mqtt_eventstream.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
mysensors.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
nest.py Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
proximity.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
recorder.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
rfxtrx.py Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
rpi_gpio.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
script.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
scsgate.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
shell_command.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
splunk.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
statsd.py Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
sun.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
tellduslive.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
updater.py Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
verisure.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
weblink.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
wemo.py Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
wink.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
zigbee.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
zone.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
zwave.py Fix PEEP257 issues 2016-03-08 17:55:57 +01:00