Ryan Kraus
60dd2d441d
Merge remote-tracking branch 'balloob/dev' into automation-decorator
...
# Conflicts:
# homeassistant/helpers/service.py
# tests/helpers/test_service.py
2016-01-24 22:51:00 -05:00
Ryan Kraus
5830da63b1
Moved service decorator to service helpers
...
Moved the service decorator to the service helpers module and moved the
associated tests.
2016-01-24 22:46:30 -05:00
Tim
50561ffe97
Fix long line
2016-01-25 03:39:13 +00:00
Tim
74e8446556
Bump version of liffylights
2016-01-25 03:34:24 +00:00
Tim
d94db5388c
Add preliminary support for transition time
2016-01-25 03:32:55 +00:00
Ryan Kraus
f66aeb2e73
Added event helper tests
...
1. Added tests for all event decorators
2. Added tests for sunrise and sunset event helpers
2016-01-24 22:23:56 -05:00
Ryan Kraus
54b82ecd91
Lint fixes and additions to event decorators
...
1. service decorator was overwriting the function name with one of its
arguments.
2. Accidentally left an extra argument in track_sunrise.
3. Added track_utc_time_change decorator.
2016-01-24 21:06:15 -05:00
Ryan Kraus
2fa98167c2
Updated example.py component
...
Cleaned up example.py to better handle failed loads.
2016-01-24 20:05:40 -05:00
Ryan Kraus
57725136c0
Many updates regarding event decorators
...
1. Added HASS to the arguments for callbacks that are created with
event decorators.
2. Added a service decorator.
3. Updated example.py in the example config to use the event decorators.
2016-01-24 19:52:22 -05:00
Ryan Kraus
40dbeb0b60
Another revision on event decorators
...
This revision of event decorators removes much of the complexity. The
decorated functions are no longer wrapped with a class that tracks
last_run, etc. Bootstrap now gives hass to the event_decorators module
before initializing components so the decorators no longer require
activation.
2016-01-24 17:46:05 -05:00
Ryan Kraus
ef92940ffb
A few lint fixes to event decorators.
2016-01-24 16:45:35 -05:00
Erik
e7865c1d67
Merge pull request #990 from molobrakos/squeezebox-fix
...
bugfix for squeezebox cover art regression
2016-01-24 21:56:21 +01:00
Ryan Kraus
02e634c6a2
Fixed bugs to allow HA to boot again
...
1) helpers/event should not import the sun component unless it is
requested. This prevents circular import.
2) fixed import typo in bootstrap
2) bootstrap cannot import event_decorators until it is needed because
this leads to a circular import.
2016-01-24 15:55:47 -05:00
Ryan Kraus
0f937cad74
Initial pass at event decorators
...
Created event decorators for custom components. Decorators were created
for the events: track_state_change, track_sunrise, track_sunset, and
track_time_change.
2016-01-24 15:28:09 -05:00
Ryan Kraus
81dd1515ae
Moved sunrise/sunset tracking to helpers
...
The automation component contained some very handy and generic
functions for tracking sunset and sunrise. This was moved to
helpers/event.py.
2016-01-24 15:07:09 -05:00
Ryan Kraus
a65d0f0549
Reverting Automation decorator in favor of a new approach.
2016-01-24 14:44:48 -05:00
Michael Auchter
881c82c2df
nest: implement fan control
2016-01-24 12:47:21 -06:00
Michael Auchter
df94c909f7
thermostat: add service to control fan mode
2016-01-24 12:47:21 -06:00
Michael Auchter
a0ed469aa2
thermostat: move fan attribute up to thermostat
2016-01-24 12:47:20 -06:00
Michael Auchter
afa4fc4ef5
thermostat: split up services
2016-01-24 12:47:20 -06:00
Paulus Schoutsen
df450c3d1f
Merge pull request #987 from balloob/update-pynetgear
...
Update version pynetgear
2016-01-24 09:46:23 -08:00
Paulus Schoutsen
dc5d652d31
Update version pynetgear
2016-01-24 09:43:06 -08:00
Paulus Schoutsen
e4fe19fff0
Merge pull request #986 from turbokongen/dev
...
Small errorlog fix.
2016-01-24 08:54:54 -08:00
John Arild Berentsen
f6f3f54228
flake8 complaint fix
2016-01-24 16:43:24 +01:00
John Arild Berentsen
6df67d2852
Send correct command to pyrfxtrx
...
Although it seems to work with send_on, it throws an logged error. Using correct command against pyrfxtrx removes this error.
2016-01-24 16:37:38 +01:00
Tim
2411d1f2c8
Fix wrongly generated requirements
2016-01-24 10:07:56 +00:00
Tim
9f6a1c75fa
Fix wrongly generated requirements
2016-01-24 10:01:23 +00:00
Stefan Jonasson
1842e5909e
Updated the entity names for all z-wave devices.
...
Z-Wave have a unique node id, this is now added to the entity name.
This is a change will break old configs. The Z-Wave entity_id will have to be updated in configurations.
The reason for this change is that the old behavior created duplicate entity_ids if you have several similar devices. The order devices is included is not consistent so when the service was restarted the entity ids could change and the configuration for entities will be invalid.
There was also inconsistencies between the naming for sensors and switches.
(cherry picked from commit 33a78df)
2016-01-24 10:20:51 +01:00
John Arild Berentsen
6f31aacb90
Merge pull request #1 from balloob/dev
...
Updating base
2016-01-24 09:58:51 +01:00
Paulus Schoutsen
e541b9ba77
Merge pull request #981 from balloob/ordered-yaml
...
Load YAML config into an ordered dict
2016-01-23 23:04:41 -08:00
Paulus Schoutsen
53484e46a3
Move generate_entity_id to entity helpers
2016-01-23 23:00:46 -08:00
Paulus Schoutsen
de79a46d43
Move extract_entity_id to service helpers
2016-01-23 22:57:14 -08:00
Paulus Schoutsen
bc19ef66bf
Move split_entity_id to helpers
2016-01-23 22:49:49 -08:00
Paulus Schoutsen
de08f0afaa
Load YAML config into an ordered dict
2016-01-23 22:41:01 -08:00
Tim
706bbeae16
Add to .coveragerc
2016-01-24 02:17:52 +00:00
Paulus Schoutsen
e5497d89f4
Merge pull request #980 from balloob/upgrade-cast
...
Upgrade PyChromecast version
2016-01-23 18:15:12 -08:00
Paulus Schoutsen
048ec0aa66
Merge pull request #964 from balloob/passive-zones
...
Allow passive zones
2016-01-23 18:15:06 -08:00
Paulus Schoutsen
03ed85b0a7
Merge pull request #971 from trollkarlen/smtp-fix
...
smtp: make smtp component thread safe
2016-01-23 18:08:03 -08:00
Paulus Schoutsen
9d92707fd7
Merge pull request #973 from turbokongen/dev
...
Added support for Dimming with lights in Rfxtrx module
2016-01-23 18:03:37 -08:00
Paulus Schoutsen
90c392e270
Upgrade PyChromecast version
2016-01-23 17:29:40 -08:00
Tim
6cb6cbfefd
Update requirements
2016-01-24 01:18:18 +00:00
Tim
6d2bca0fd1
Import 3rd party library inside method
2016-01-24 01:13:51 +00:00
Tim
99286391e1
Fixes for lint
2016-01-24 01:00:02 +00:00
Tim
711f2da496
Update liffylights version
2016-01-24 00:43:50 +00:00
Ryan Kraus
fbd68b6f89
Created automation decorator prototype
...
Created an initial iteration of an Automation decorator.
2016-01-23 19:39:59 -05:00
Paulus Schoutsen
85ebd0ab59
Merge pull request #977 from sdague/dev
...
fix typo in log message
2016-01-23 14:27:37 -08:00
Tim
58034219b6
Bump version liffylights
2016-01-23 22:23:46 +00:00
Tim
17f5a466d9
Separate LIFX code and HA component
2016-01-23 22:14:57 +00:00
Sean Dague
90ca6a0998
fix typo in log message
...
The plex component logs an htts url, which is confusing to people, as
they think something is broken, when it is not.
Closes #959
2016-01-23 16:06:50 -05:00
Erik
ec2b433733
should be _id
2016-01-23 18:55:43 +01:00