Paulus Schoutsen
09a771a026
Move script component tests to script helper tests
2016-04-21 21:29:28 -04:00
Paulus Schoutsen
f76d545a08
Add script logic into helper.
2016-04-21 21:06:05 -04:00
Paulus Schoutsen
4e568f8b99
Automation: Add trigger context and expose to action
2016-04-21 13:59:42 -07:00
Paulus Schoutsen
c4913a87e4
Alexa: Expose intent variables to service calls
2016-04-21 12:27:23 -07:00
Paulus Schoutsen
4acb121689
Allow variables in service.call_from_config
2016-04-21 12:22:19 -07:00
Daniel Høyer Iversen
3318c55c65
Heat control config validation
...
* heat control configuration validation
* fix heat contol test
2016-04-21 07:59:35 -07:00
Paulus Schoutsen
2e79e9d5bb
Correct celcius to celsius ( #1860 )
2016-04-19 20:30:44 -07:00
Brad Johnson
09693bf16c
Upgrading to python-wink 0.7.4 and improving RGB color support in HA ( #1832 )
2016-04-17 19:07:21 -07:00
MartinHjelmare
ca2d969198
Fix field type conflict in influxdb
...
* Add STATE_UNAVAILABLE to states that are ignored when writing to the
database. This will avoid a field type error for string if the field
already contains a different type, eg integer.
* Add test for ignored states for influxdb.
* Clean up influxdb tests.
2016-04-16 20:25:39 +02:00
Paulus Schoutsen
68d92c3196
Use standardised datetime format
2016-04-16 01:46:50 -07:00
Justyn Shull
bf3b77e1f2
Change sqlite queries to work with older versions of sqlite
2016-04-15 21:18:51 -05:00
Justyn Shull
d5ca97b1f6
Add tests for purging old states and events
2016-04-15 21:02:17 -05:00
Jan Harkes
d6f3123937
Service validation for logbook component.
2016-04-13 12:35:07 -04:00
Jan Harkes
d90f31bf6e
Config and service validation for shell_command component.
2016-04-13 12:35:07 -04:00
Jan Harkes
241735c924
Change local library path from {config_dir}/lib to {config_dir}/deps. ( #1799 )
...
Just on the off chance that someone who happens to run as root and also
doesn't correctly parse "just remove config /lib and restart".
2016-04-11 20:07:50 -07:00
Daniel Høyer Iversen
769d958464
Config validation for rfxtrx sensor ( #1780 )
2016-04-10 16:05:32 -07:00
Paulus Schoutsen
4f834ba3f1
Make all entity_ids lowercase ( #1786 )
2016-04-10 15:20:20 -07:00
Daniel Høyer Iversen
d3493c7e5a
Config validation of yr sensor ( #1767 )
2016-04-10 10:43:05 -07:00
Joel Asher Friedman
9808c0e3fd
mqtt garage door component ( #1742 )
2016-04-09 20:31:53 -07:00
Paulus Schoutsen
b87e2437aa
Prevent device tracker from creating invalid YAML ( #1774 )
2016-04-09 13:38:51 -07:00
Jan Harkes
446d367aeb
Accept group without entities in configuration. ( #1768 )
...
* Accept group without entities in configuration.
People seem to use these as placeholders for future expansion of their
home automation dreams, and we used to accept them. We still have to
specify at least one of 'name', 'view' or 'icon' so that the group is
parsed as a dictionary.
* Also accept empty entities: key in a group.
* Additional fix for empty entities value in a group config.
2016-04-09 09:24:18 -07:00
Jan Harkes
3aa4727b18
Fix for MQTT config validation on the protocol field. ( #1765 )
2016-04-09 09:03:41 -07:00
Paulus Schoutsen
2ec9cc15f4
Build frontend
2016-04-08 21:28:59 -07:00
Daniel Høyer Iversen
cac555fc69
Rfxtrx config validating ( #1747 )
...
* config validation
* Config validation of rfxtrx switch
* Config validation of rfxtrx light
* Config validation of rfxtrx
* Config validation of rfxtrx
2016-04-08 20:55:31 -07:00
Jan Harkes
c481cbce7e
Make tox run faster by using in-memory sqlite db. ( #1752 )
...
Two tests were invariably grinding my system to a halt as it was
applying migrations to an empty sqlite database. This patch reduces
the time of a pytest run from 50 to about 16 seconds on my desktop.
The difference is even more noticable on a slower laptop drive, but
is probably insignificant for all you fancy SSD users.
2016-04-08 18:28:19 -07:00
Jan Harkes
9e0e61fec9
Trying to fix failing sun component tests. ( #1741 )
...
Make sure we set a timezone to make UTC calculations predictable
and don't override the location of the test_home_assistant config.
2016-04-07 18:32:21 -07:00
Jan Harkes
29c30861bf
Be flexible in what we accept for script.delay configuration. ( #1738 )
...
Accept delay configuration even when someone forgets to indent the time
specification.
Also removed 'weeks' and 'microseconds' from acceptable delay values.
There is a new homeassistant release every 2 weeks and running scripts
are not persisting across restarts. And there is still the option of
using (weeks*7) days if the long delay is really necessary.
And if someone really depends on microsecond delay precision we are
unlikely to be able to provide this accuracy, even milliseconds is
suspect for that matter but will at least allow us to specify some
subsecond delay.
2016-04-07 12:19:28 -07:00
Jan Harkes
5b17f629ad
Test function for mqtt topic validators and IsFile() linting fix ( #1740 )
...
* Add test function for mqtt topic validators.
* Fix for linting error on vol.IsFile()
2016-04-07 13:52:25 -04:00
Paulus Schoutsen
5ff9479f0b
Merge pull request #1703 from jaharkes/config-validation-mqtt
...
Config validation for MQTT
2016-04-07 08:43:01 -07:00
Daniel Høyer Iversen
a1a2e456ad
Add test for fire event in rfxtrx component
2016-04-07 08:40:15 -07:00
Jan Harkes
fca08b095a
Config validation for MQTT rollershutter platform.
2016-04-06 22:51:39 -04:00
Jan Harkes
deecec5e4e
Config validation for MQTT switch platform.
2016-04-06 22:51:39 -04:00
Jan Harkes
eb3f812e38
Config validation for MQTT sensor platform.
2016-04-06 22:51:39 -04:00
Jan Harkes
c8df06bb9f
Config validation for MQTT lock platform.
2016-04-06 22:51:38 -04:00
Jan Harkes
29a8403741
Config validation for MQTT light platform.
2016-04-06 22:51:38 -04:00
Jan Harkes
88da42fe62
Config validation for MQTT device_tracker platform.
2016-04-06 22:51:38 -04:00
Jan Harkes
287f0f4f68
Config validation for MQTT binary_sensor platform.
2016-04-06 22:51:38 -04:00
Jan Harkes
0bd4e15fcb
Config validation for MQTT alarm_control_panel platform.
2016-04-06 22:51:38 -04:00
Jan Harkes
58ea589f99
Fixes for mqtt config validation tests.
2016-04-06 22:51:38 -04:00
Jan Harkes
8cca2bb344
Config validation for MQTT
2016-04-06 22:51:38 -04:00
Josh Wright
2e9bf42688
Disable updater.updater on dev versions
...
The Updater component doesn't make much sense on dev versions. If you
want to run a production config with the updater enabled, you end up
with an 'Update Available' badge pointing you to the last release
version. This change disables the Updater component on dev and updates
the tests to use a faked version number.
A warning is emitted if the Updater component is disabled to ensure
there is no confusion.
2016-04-06 18:46:48 -07:00
Jan Harkes
dbbbed404c
Detect duplicate keys in configuration.yaml.
2016-04-05 21:21:16 -07:00
Paulus Schoutsen
8ef542927f
Add automation config validation
...
* Add automation config validation
* Remove unnecessary dict validator
* Downgrade voluptuous to 0.8.9
* Fix linting
* Address issues
2016-04-04 12:18:58 -07:00
Jan Harkes
cbe9a7d2a3
Add case insensitive testing to boolean string validation.
2016-04-03 21:38:58 -07:00
Paulus Schoutsen
e140e9b8ab
Add script + extra config validators
...
* Add config validation and extra validators
* Address PR comments
2016-04-03 10:19:09 -07:00
Jan Harkes
9ce2081110
Coerce ascii flags in MQTT publish service call.
...
Also fixes a bug where the test when no payload is given succeeds only
because we run the jinja templating out of memory. Sending an empty
payload instead of trying to fix it through validation for now.
2016-04-03 00:54:05 -07:00
Paulus Schoutsen
f6d584af09
Allow platforms to specify PLATFORM_SCHEMA
2016-04-02 20:10:57 -07:00
Jan Harkes
5c753f8ffd
Service validation for MQTT component.
...
* Service validation for MQTT component.
* Fixes for failing mqtt tests.
- Changed behaviour when both 'payload' and 'payload_template' are provided
instead of silently ignoring the payload_template value.
- Have validation accept any type of payload and leave encoding to paho-mqtt.
2016-04-02 08:46:09 -07:00
Paulus Schoutsen
b063fa3165
Merge pull request #1646 from balloob/rfxtrx
...
Fixed bug in rfxtrx sensor
2016-03-31 22:12:04 -07:00
Paulus Schoutsen
489c5b8188
bootstrap platform components: adjust instead of replace config
2016-03-31 21:11:14 -07:00
Jan Harkes
4f3dc2ce8b
Coerce RGB and XY color values to tuples instead of lists.
2016-03-31 22:59:18 -04:00
Jan Harkes
017f47dd2c
Service validation for light.turn_on/.turn_off/.toggle
2016-03-31 22:03:38 -04:00
Daniel
c4062bf6ea
Fixed bug in rfxtrx sensor
2016-03-30 10:57:26 +02:00
Paulus Schoutsen
5b00919bed
Merge branch 'pr/1643' into dev
...
Conflicts:
requirements_all.txt
2016-03-29 23:23:45 -07:00
Paulus Schoutsen
8ceab5d4ba
Add extra tests
2016-03-29 22:50:38 -07:00
Daniel J. Kemp
86199c8277
Add onkyo receiver, and source select support
...
Added onkyo receiver component
Added support for input source selection to media players,
and do the onkyo receiver component.
2016-03-29 22:17:36 -04:00
Paulus Schoutsen
25269cdb6b
Add tests for bootstrap config validation
2016-03-29 00:17:53 -07:00
Paulus Schoutsen
5baa98b79f
Add initial config validation
2016-03-28 23:46:12 -07:00
Paulus Schoutsen
7cb69ae9d9
Make sure we always sent content-length header
2016-03-27 12:15:41 -07:00
Paulus Schoutsen
41f205e09d
Clean up template platforms
2016-03-24 23:22:17 -07:00
Paulus Schoutsen
70ce179224
Merge pull request #1551 from w1ll1am23/command_line_assumed
...
Added assumed state to command_line switch
2016-03-24 21:54:36 -07:00
MartinHjelmare
4e4b24fcff
Log error for servicecall without required data
...
* Log error for services called without required attributes, in
media_player, notify and thermostat platforms.
* Add fan property and methods in thermostat demo component.
* Add tests for notify file and thermostat demo component.
* Increase coverage of tests for media_player, notify and thermostat
platforms.
* Fix some PEP issues, but not all. Tests still have old linting
errors.
2016-03-19 08:06:57 +01:00
William Scanlon
a64726e321
Added assumed state to command_line switch
2016-03-17 10:41:26 -04:00
pavoni
4e7160139e
Fix race condition in template components.
2016-03-17 12:10:19 +00:00
Paulus Schoutsen
663e4d57d9
Merge pull request #1546 from persandstrom/input_slider
...
input slider
2016-03-14 20:26:34 -07:00
Paulus Schoutsen
dd607ea84a
Merge pull request #1540 from balloob/slowtests_rfxtrx
...
Fixed close connection issue with rfxtrx device and update rfxtrx lib
2016-03-14 19:09:15 -07:00
Paulus Schoutsen
b4458b7f52
Merge pull request #1538 from balloob/script-allow-template-service
...
Remove support for old deprecated script call service config
2016-03-14 19:05:34 -07:00
Per Sandström
2bdad928d0
input slider
2016-03-14 22:03:30 +01:00
Daniel
d6344d6492
Fixed close connection issue with rfxtrx device and update rfxtrx lib
2016-03-14 08:33:59 +01:00
Paulus Schoutsen
6bc3e0bb58
Merge pull request #1530 from balloob/content-length
...
Add content-length header to http resonses
2016-03-13 22:32:59 -07:00
Paulus Schoutsen
54b60c6564
Merge pull request #1531 from balloob/cleanup-automation
...
Remove support for old deprecated automation config
2016-03-13 22:32:48 -07:00
Paulus Schoutsen
61b387cd0b
Script: fix template service calls and remove old config support
2016-03-13 22:29:36 -07:00
pavoni
fc455a1047
Allow entry into passive zones.
2016-03-13 18:01:29 +00:00
Paulus Schoutsen
956f6056f9
Remove support for old deprecated automation config
2016-03-13 00:00:05 -08:00
Paulus Schoutsen
f8d2da2ace
Add content-length header to http resonses
2016-03-12 23:41:00 -08:00
Paulus Schoutsen
8386bda4e4
MQTT: Start embedded server if no config given
2016-03-12 21:42:47 -08:00
Paulus Schoutsen
a01111ae56
Merge pull request #1457 from fabaff/sensor-classes
...
Add support for sensor classes
2016-03-11 22:50:32 -08:00
Paulus Schoutsen
ddc139b853
Merge pull request #1510 from persandstrom/automation_templating
...
Use templates in service calls
2016-03-11 21:49:47 -08:00
Paulus Schoutsen
025713ee41
Type checks for MQTT config
2016-03-10 21:42:17 -08:00
Per Sandström
81e5a852f0
Use templates in service calls
2016-03-10 21:36:05 +01:00
Fabian Affolter
4637a83c29
Add sensor_class to MQTT binary sensor
2016-03-10 20:51:58 +01:00
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
Fabian Affolter
f22a40c3e8
Fix PEP257 issues
2016-03-09 11:15:04 +01:00
Fabian Affolter
9838697d2b
Fix PEP257 issues
2016-03-09 10:25:50 +01:00
Paulus Schoutsen
b47f1c3a96
MQTT Light: fix brightness issues
2016-03-07 08:54:08 -08:00
Paulus Schoutsen
18f48191d9
Merge pull request #1482 from balloob/history-significant-states
...
History: update significant states
2016-03-06 21:45:48 -08:00
Paulus Schoutsen
cd30f2de0d
Device Sun Light Trigger: Clean up
2016-03-05 20:15:33 -08:00
Paulus Schoutsen
fb46eff5f8
Device tracker: remove support for old config
2016-03-05 11:43:23 -08:00
Paulus Schoutsen
9701be9e9c
History: ignore scripts that we cannot cancel
2016-03-05 10:28:48 -08:00
Paulus Schoutsen
605a572c86
History: Ignore insignificant domains
2016-03-05 09:49:04 -08:00
Paulus Schoutsen
1159360281
Skip rfxtrx tests because of speed reasons
2016-03-05 09:28:47 -08:00
Paulus Schoutsen
41214fd082
TCP test to work offline
2016-03-05 09:27:22 -08:00
Paulus Schoutsen
931dc27300
Merge pull request #1465 from bestlibre/influxdb_blacklist
...
Possibility to blacklist events for influxdb
2016-03-05 00:57:26 -08:00
Hydreliox
c04555d7b1
Add GPS accuracy check for a location update or an event update
...
Add tests related to this
Great thanks to @pavoni for his support on this fix
2016-03-04 20:19:50 +01:00
bestlibre
4d5e9f2931
Possibility to blacklist events
...
Possibility to blacklist some events based on the entity_id
2016-03-03 17:02:41 +01:00
Daniel
2fd0b28c53
Added tests for RFxtrx device, updated rfxtrx to ver 0.5, fixed bug in setting brightness for rfxtrx light
2016-03-02 20:36:41 +01:00
Paulus Schoutsen
d641cd5eef
Merge pull request #1452 from balloob/rfxtrx_tests
...
Added tests for rfxtrx sensor
2016-03-01 08:07:21 -08:00
Daniel
6c518c74ec
Added tests for rfxtrx sensor
2016-03-01 10:14:02 +01:00
Paulus Schoutsen
4370f5170b
Merge pull request #1374 from sander76/scene_with_platforms
...
scene with platforms
2016-02-29 23:00:03 -08:00
Paulus Schoutsen
49c6484f72
Merge pull request #1433 from fabaff/mqtt-lock
...
Add MQTT lock support
2016-02-29 22:58:55 -08:00