Johann Kellerman
fdc373f27e
Restore_state helper to restore entity states from the DB on startup ( #4614 )
...
* Restore states
* feedback
* Remove component move into recorder
* space
* helper
* Address my own comments
* Improve test coverage
* Add test for light restore state
2017-02-20 23:40:27 -08:00
Pascal Vizeli
e1cbd6b4c0
MQTT convert to async ( #6064 )
...
* Migrate mqtt to async
* address paulus comment / convert it complet async
* adress paulus comment / remove future
* Automation triggers should be async
* Fix MQTT async calls
* Show that event helpers are callbacks
* Fix tests
* Lint
2017-02-18 14:17:18 -08:00
Paulus Schoutsen
f29ee24b72
Do not allow config dependency ( #6036 )
...
* Do not allow config dependency
* Prevent config in discovery
* Migrate to blacklist
2017-02-18 11:31:37 -08:00
Paulus Schoutsen
235d0057b1
Simplify customize ( #6007 )
...
* Simplify customize
* Maintain glob order
* Have glob overrule domain
2017-02-15 19:47:30 -08:00
Pascal Vizeli
4b8e6e36b6
Make EntityComponent update process more robust. ( #5943 )
...
* Make EntityComponent update process more robust.
* address paulus comments
* Add platform to log message.
2017-02-14 09:32:40 -08:00
Pascal Vizeli
41849eab06
Core cleanup: two stage shutdown ( #5876 )
...
* Core cleanup: two stage shutdown
* fix spell
* fix
* add async logger to close
* change aiohttp to use CLOSE
* address paulus comments
* Fix tests
* Add unittest
2017-02-13 06:24:07 +01:00
Pascal Vizeli
9aac2113b6
Add 'wait_template' to script commands / Refactory track_template ( #5827 )
...
* Add 'wait' to script commands.
* Add track_template + unittest / rename wait_template
* fix lint & test
* Fix handling / change automation-template / add tests
* address paulus comments
2017-02-12 13:27:53 -08:00
Adam Mills
e877d572f5
binary_sensor sensor_class to entity device_class ( #5860 )
...
* binary_sensor sensor_class to entity device_class
* Linter fixes
* Should be it
2017-02-10 20:46:15 -08:00
Erik Eriksson
c7c3b30e0a
Do not call state if device isn't available ( #5835 )
2017-02-10 08:59:58 -08:00
Paulus Schoutsen
c54517de90
Convert config.components to a set ( #5824 )
2017-02-09 20:21:57 +02:00
Paulus Schoutsen
4398b8b5c6
Deprecate event decorators ( #5822 )
2017-02-09 00:10:38 -08:00
Pascal Vizeli
2cbed9cd96
Move signal handling out of core to bootstrap ( #5815 )
...
* Move signal handling out of core to bootstrap
* Fix tests
2017-02-08 21:58:45 -08:00
Adam Mills
ecfe8e0a9a
Formalize supported_features as entity property ( #5794 )
...
* Formalize supported_features as entity property
* Remove extra emulated_hue conditions
* Generate log message in executor
2017-02-07 20:42:45 -08:00
Stéphane Bidoul (ACSONE)
7927a6b588
add min and max jinja filters ( #5765 )
2017-02-07 00:25:47 -08:00
Pascal Vizeli
10a104271e
Cleanup climate platform for async update_ha_state / migrate generic thermostat ( #5679 )
...
* Cleanup climate from blocking stuff / migrate generic
* Migrate generic thermostat
* fix tests
* fix lint
2017-02-01 21:44:05 -08:00
andrey-git
1fb372ffdb
Apply new customize format to Zwave ( #5603 )
2017-01-28 22:29:51 +02:00
Duoxilian
b732174def
Hold mode ( #5586 )
...
* Initial commit of hold_mode feature.
* Added deprecation warning for climate.away_mode
* Add tests to demo environment.
2017-01-27 08:57:18 -08:00
Martin Hjelmare
a09a772f43
Add more validation for mysensors ( #5493 )
...
* Move isdevice validator under helpers.config_validation.
* Check that all persistence files are set and are unique if any is set
by user. This is necessary to avoid file name clashes.
* Check that a set persistence file has an existing and writable
directory.
* Check that a device is either a valid device file, "mqtt", or a valid
domain name or ip address.
2017-01-24 22:04:44 -08:00
Pascal Vizeli
92858554e6
Bugfix endless aiohttp streamreader ( #5540 )
2017-01-24 20:43:36 +01:00
Fabian Affolter
64fc6a08d3
Fix typos ( #5522 )
2017-01-23 13:25:38 -08:00
andrey-git
addc2c4340
Allow easier customization of whole domain, entity lists, globs. ( #5215 )
2017-01-22 21:19:50 +02:00
Pascal Vizeli
8da398c0bd
Proxy aiohttp websession / more rebust. ( #5419 )
2017-01-19 09:55:27 -08:00
Daniel Høyer Iversen
467cb18625
Add last triggered to script ( #5261 )
...
* Add last triggered to script
* Add tests for script last_triggered
2017-01-11 16:23:05 +01:00
Pascal Vizeli
a65388e778
Bugfix segfault with new helper track_time_interval ( #5222 )
...
* Bugfix sigfault with new helper track_time_interval
* Add none init also to sunrise/sunset for consistance
2017-01-08 14:06:15 +01:00
Pascal Vizeli
ca4a857532
Improve aiohttp default clientsession close with connector ( #5208 )
2017-01-07 21:11:19 +01:00
Pascal Vizeli
1719d88602
Bugfix default values to timedelta ( #5193 )
...
* Bugfix default values to timedelta
* fix unittests
2017-01-06 00:16:12 +01:00
Pascal Vizeli
50a8ec7335
Bugfix aiohttp connector pool close on shutdown ( #5190 )
...
* Bugfix aiohttp connector pool close on shutdown
* fix circular import
* remove lint disable
2017-01-05 23:09:04 +01:00
Nick Touran
a36ca62445
Support longer-than-60-second scan_interval and interval_seconds ( #5147 )
...
* Update scan_interval and interval_seconds max to 1 day vs. 60 seconds
* Format fixes
* Add docstring on unittest.
* Added and implemented new async_track_time_interval helper.
* Format fixes, removed unused import.
* Undid whoops on unsub_polling.
* Updated unit tests for scan_interval.
* Added unit test for track_time_interval.
* Allow other forms of time interval input for scan_interval and interval_seconds
2017-01-05 23:05:16 +01:00
Johann Kellerman
cbda516af9
ensure_list validator - Allow None to return an empty list ( #5133 )
2017-01-05 21:33:22 +02:00
Daniel Høyer Iversen
67ab1f69d8
user agent header ( #5172 )
...
* user agent in header
* update user agent info
* Use user-agent from lib
2017-01-04 21:15:50 +01:00
Brian Torres-Gil
7b6503c017
Ecobee service fix and new 'resume program' service ( #4510 )
...
* ecobee_set_fan_min_on_time: fix issue using 'entity_id' field and add service field help text
* climate.ecobee: add 'resume_program' service
* Add default value for resume_all and correct entity_id field name reference
2016-12-27 21:56:26 +01:00
Pascal Vizeli
244cdf43d0
Async reduce coro ( #5001 )
...
* Asyncio coro reduce
* Replace comments
2016-12-26 14:10:23 +01:00
Paulus Schoutsen
cc9e5de503
Only report slowness warning once per entity ( #4962 )
2016-12-17 13:00:08 -08:00
Pascal Vizeli
8295fc8b4c
Pararell execute state restore by domain ( #4801 )
...
* Pararell execute state restore per domain
* fix spell
2016-12-07 08:37:35 -08:00
Jan Losinski
d0dcd1bb73
Scene: add support for input_select ( #4674 )
...
This adds support for the scene component to handle input_select
devices and set their options.
This fixes bug #4673
Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
2016-12-07 05:33:41 -08:00
Pascal Vizeli
2e6a48ff5f
WIP: Migrate scene to async + homeassistant scene async ( #4665 )
...
* Migrate scene to async + homeassistant scene async
* fix lint
* Update state.py
* Fix tests
2016-12-01 21:38:12 -08:00
Pascal Vizeli
cf57db919e
Refactory aiohttp clientsession handling in HA ( #4602 )
...
* Refactory aiohttp clientsession handling in HA
* remove from core / update platforms / rename file
2016-11-27 16:26:46 -08:00
Vlad Korniev
2a7bc0e55c
Advanced Ip filtering ( #4424 )
...
* Added IP Bans configuration
* Fixing warnings
* Added ban enabled option and unit tests
* Fixed py34 tox
* http: requested changes fix
* Requested changes fix
2016-11-24 21:52:10 -08:00
Paulus Schoutsen
2c7e895105
Entity and climate: do not convert temperature unnecessary ( #4522 )
...
* Climate: more consistent units
* Prevent unnecessary conversion in entity component
* int -> round
* Disable Google tests because they connect to the internet
* Remove default conversion rounding F->C
* Add rounding of temp to weather comp
* Fix equality
* Maintain precision when converting temp in entity
* Revert "Disable Google tests because they connect to the internet"
This reverts commit b60485dc19
.
2016-11-22 17:38:04 -08:00
Paulus Schoutsen
c81735cc84
Fix platform discovery when platform discovered during discovery of a ( #4529 )
...
component
2016-11-22 08:21:08 -08:00
Pascal Vizeli
835577b2bc
Bugfix discovery use wrong time async ( #4515 )
...
* Bugfix discovery use wrong time async
* fix lint
2016-11-21 19:33:08 -08:00
Paulus Schoutsen
455e1df7cb
Fix typo
2016-11-19 16:05:33 -08:00
Paulus Schoutsen
d930c399fe
Better locking while setting up components + discovery ( #4463 )
2016-11-19 08:18:33 -08:00
Paulus Schoutsen
d2bbc6ef70
Upgrade linter ( #4461 )
2016-11-18 21:47:59 -08:00
Pascal Vizeli
c56f99baaf
Async migration device_tracker ( #4406 )
...
* Async migration device_tracker
* change location stuff to async
* address paulus comments
* fix lint & add async discovery listener
* address paulus comments v2
* fix tests
* fix test_mqtt
* fix test_init
* fix gps_acc
* fix lint
* change async_update_stale to callback
2016-11-18 23:35:08 +01:00
Paulus Schoutsen
f006b00dc1
Fix spelling schedule_update_ha_state ( #4415 )
2016-11-16 08:26:29 -08:00
Pascal Vizeli
41aaeb715a
Convert switch to AsnycIO ( #4382 )
...
* Convert switch to AsnycIO
* Move update entity to service
* use time better for faster handling
* Change to suggestion from paulus
* Use new shedule_update_ha_state
* fix lint
* minimize executor calls
2016-11-15 21:06:50 -08:00
pvizeli
cb24282040
Faster async entity update on component.
2016-11-14 14:18:04 +01:00
Pascal Vizeli
71a305ea45
Hotfix deadlock on platform setup ( #4354 )
...
* Hotfix deadlock on platform setup
* fix wrong import
2016-11-12 16:19:13 -08:00
Lewis Juggins
01a6c1c1c8
Add strptime template function ( #3950 )
2016-11-10 22:57:44 -08:00