Paulus Schoutsen
3ac31b2c1b
Fix broken tests + linting
2016-05-30 10:19:12 -07:00
Paulus Schoutsen
a91f937245
Fix linting issues
2016-05-30 10:08:49 -07:00
Bart274
65fbba0e79
List entity_ids in config and only react to them ( #2144 )
...
* List entity_ids in config and only react to them
This allows us to define a list of entity_ids in the config to make the
template sensor, binary sensor and switch only react to state changes of
these entities instead of listening to all state changes.
* Forgot to import the track_state_change function
* Changed test for added entity_ids to config
* Use default MATCH_ALL and remove event_listener
2016-05-29 14:34:21 -07:00
Paulus Schoutsen
41f205e09d
Clean up template platforms
2016-03-24 23:22:17 -07:00
pavoni
4e7160139e
Fix race condition in template components.
2016-03-17 12:10:19 +00:00
Fabian Affolter
8bff97083c
Fix PEPE257 issues
2016-03-08 16:46:34 +01:00
pavoni
4e3c8a8697
Fix noisy error on startup. Make callbacks code consistent.
2016-03-06 19:19:07 +00:00
Fabian Affolter
582394bc3b
Modify import of template and PEP257
2016-02-23 21:19:22 +01:00
Fabian Affolter
60d579af84
Update/add docstrings (PEP257)
2016-02-23 06:23:04 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Paulus Schoutsen
dde80850a6
Merge pull request #1112 from balloob/switch-template
...
First cut of switch.template
2016-02-06 09:12:13 -08:00
pavoni
ced380f0cd
Remove unneeded entity_id check and blank lines.
2016-02-04 17:24:38 +00:00
pavoni
d344defc7e
Switch to warning.
2016-02-02 16:26:17 +00:00
pavoni
3aad223c95
Change to warning if attributes missing.
2016-02-02 14:14:29 +00:00
pavoni
9c33af60f2
Fix unreachable code!
2016-02-01 18:38:11 +00:00
pavoni
95748a6880
Generate entity id correctly, was using friendly_name.
2016-02-01 17:45:18 +00:00
Fabian Affolter
cf7c06d307
Update docstring and fix typos
2016-01-27 09:21:21 +01:00
pavoni
ad62591f43
Change error state to be 'error' rather than 'unknown', trace error.
2016-01-22 16:30:02 +00:00
pavoni
87a9fd8252
Handle race condition on startup.
2016-01-22 11:30:04 +00:00
pavoni
c615272c06
Tidy.
2016-01-21 23:17:19 +00:00
pavoni
a6f37c032b
Revise to not need dependencies (or quoting)!
2016-01-21 17:35:33 +00:00
pavoni
e66d15b71d
First drafy of sensor.template.
2016-01-21 16:31:23 +00:00