Adam Mills
7dd7f509ca
Add tests for deprecation helpers ( #7452 )
2017-05-06 10:10:48 -07:00
Paulus Schoutsen
9afbbbf3fe
Remove ordered_dict validator ( #7375 )
...
* Remove ordered_dict validator
* Lint
* Update test_config_validation.py
2017-04-30 10:55:03 -07:00
Anders Melchiorsen
5fa8037231
Always return True/False from is_state and is_state_attr ( #7138 )
...
* Always return True/False from is_state and is_state_attr
These functions are documented to always return True/False but the
short-circuit evaluation would return None if the entity_id did not exist.
* Reword into a single statement
2017-04-16 16:36:15 -07:00
Pascal Vizeli
d7ca9e7a66
Make core to look avilable state of device on servicecall ( #7045 )
2017-04-11 08:59:46 -07:00
Paulus Schoutsen
714b516176
aiohttp 2 ( #6835 )
...
* Upgrade aiohttp2
* Fix resource caching
* Fix helpers.aiohttp_client
* Lint
* Use static path for api error_log
* Fix ClientErrors import
* Remove not needed DisconnectError
* Remove releasing responses code
* Add timeout if stream starts non responding
* More async_aiohttp_proxy_stream cleanup
* Fix references to ClientError
* Fix fingerprinting
* Fix aiohttp stream tests
* Rename aiohttp_proxy_stream
* Remove impossible darksky test
* Fix sleepiq requests escaping mocker
* Lint
* Remove deprecated parameter
* Break up aiohttp_proxy_stream in 2 methods
* Lint
* Upgrade to aiohttp 2.0.4
* Convert connector close to a callback
* Fix static fingerprinted links
2017-03-30 00:50:53 -07:00
Adam Mills
efbd66bca1
Fix flaky template test ( #6768 )
2017-03-23 20:56:39 -07:00
Paulus Schoutsen
96e22c7b41
Remove event decorators ( #6634 )
2017-03-15 14:46:57 +01:00
Pascal Vizeli
5529d77c62
Prevent entities running multiple updates simultaneously ( #6511 )
...
* Protect entity for multible updates on same time.
* Address all comments / make update more robust
* fix unittest
* fix lint
* address comments
2017-03-14 09:26:55 -07:00
Paulus Schoutsen
bb4f23f8e7
Add warning for slow platforms/components ( #6467 )
...
* Add warning for slow platforms/components
* Add test for slow component setup.
* Add test for slow platform setup
* Fix tests on Py34
2017-03-07 20:31:57 -08:00
Paulus Schoutsen
e8a22cb4a8
Tweak recorder/restore_state ( #6412 )
...
* Tweak recorder/restore_state
* Lint
2017-03-05 10:52:08 +01:00
Paulus Schoutsen
2650c73a89
Split bootstrap into bs + setup ( #6416 )
...
* Split bootstrap into bs + setup
* Lint
2017-03-05 10:41:54 +01:00
Pascal Vizeli
8232f1ef65
Cleanup async handling ( #6388 )
...
* Cleanups unneeded blocks
* Cleanup bootstrap
* dedicated update_ha_state
* Fix imap_email_content
* fx tests
* Fix lint & spell
2017-03-04 15:10:36 -08:00
Jose Juan Montes
4da2156ebf
Return None instead of raising ValueException from as_timestamp template function. ( #6155 )
2017-03-02 22:18:01 -08:00
Pascal Vizeli
41f558b181
Bootstrap / Component setup async ( #6264 )
...
* Bootstrap / Entiy setup async
* Cleanup add_job stuff / return task/future object
* Address paulus comments / part 1
* fix install pip
* Cleanup bootstrap / move config stuff to config.py
* Make demo async
* Further bootstrap improvement
* Address Martin's comments
* Fix initial tests
* Fix final tests
* Fix bug with prepare loader
* Remove no longer needed things
* Log error when invalid config
* More cleanup
* Cleanups platform events & fix lint
* Use a non blocking add_entities callback for platform
* Fix Autoamtion is setup befor entity is ready
* Better automation fix
* Address paulus comments
* Typo
* fix lint
* rename functions
* fix tests
* fix test
* change exceptions
* fix spell
2017-02-28 20:33:19 -08:00
Paulus Schoutsen
61909e873f
Feature/reorg recorder ( #6237 )
...
* Re-organize recorder
* Fix history
* Fix history stats
* Fix restore state
* Lint
* Fix session reconfigure
* Move imports around
* Do not start recording till HASS started
* Lint
* Fix logbook
* Fix race condition recorder init
* Better reporting on errors
2017-02-26 14:38:06 -08:00
Johann Kellerman
5d007e636b
No wait for start and more async
2017-02-25 17:51:37 +02:00
Pascal Vizeli
81ca978413
Move mqtt from eventbus to dispatcher / add unsub for dispatcher ( #6206 )
...
* Move mqtt from eventbus to dispatcher / add unsub for dispatcher
* Fix lint
* Fix test
* Fix lint v2
* fix dispatcher_send
2017-02-24 17:11:50 -08:00
Pascal Vizeli
f2a2d6bfa1
Refactory of envisalink ( #6160 )
...
* Refactory of envisalink
* remove event buss
* init dispatcher from hass.
* Move platform to new dispatcher
* fix lint
* add unittest & threadded functions
* fix copy & past error
2017-02-23 13:02:56 -08:00
Johann Kellerman
aee8758fc1
Restore input_select and test helper proposal ( #6148 )
...
* Restore input_select and test helper proposal
* DB still active
2017-02-22 00:15:48 -08:00
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
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
75e41a21c9
Clean up mock_coro ( #6037 )
2017-02-15 23:19:34 -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
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
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
Stéphane Bidoul (ACSONE)
7927a6b588
add min and max jinja filters ( #5765 )
2017-02-07 00:25:47 -08:00
Pascal Vizeli
2a139d6bc7
Add unittest for multible entities in one line ( #5759 )
2017-02-05 14:24:38 +01:00
Pascal Vizeli
ca558f6485
Add unittest for cleanup not validate ssl stuff. ( #5643 )
2017-01-30 13:09:36 +01:00
Pascal Vizeli
847a5a064d
Aiohttp client unittest ( #5635 )
...
* add test for cleanup
* add test for mjpeg stream
2017-01-29 16:15:40 -08:00
andrey-git
1fb372ffdb
Apply new customize format to Zwave ( #5603 )
2017-01-28 22:29:51 +02:00
andrey-git
addc2c4340
Allow easier customization of whole domain, entity lists, globs. ( #5215 )
2017-01-22 21:19:50 +02: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
Paulus Schoutsen
aa1e4c564c
Fix tests closing properly ( #5203 )
2017-01-07 01:47:25 +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
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
Paulus Schoutsen
b35fa4f1c1
Finish all tasks before setup phase is done ( #4606 )
2016-11-30 13:02:45 -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
00019b9ff0
Fix warning in test
2016-11-22 12:48:35 -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
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
Paulus Schoutsen
e88b98f5fa
Clean up tests ( #4209 )
2016-11-03 21:58:18 -07:00
Paulus Schoutsen
2940fb72fb
EntityComponent.add_entities now converts generators to a list ( #4183 )
2016-11-02 19:24:25 -07:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Pierre Ståhl
33e46b484f
Add service to change visibility of a group ( #3998 )
2016-10-29 16:54:26 -07:00