Matthias Urlichs
f5cc40024d
Rename homeassistant.util.async to .async_ ( #13088 )
...
"async" is (going to be) a reserved word.
2018-03-11 10:01:12 -07:00
Eugenio Panadero
4ca5ed25bc
add option to set content_type in camera.generic to support 'svg cameras' ( #8188 )
...
* add custom content_type to support 'generic svg cameras'
* add unittest to check content_type for svg generic camera
* Tweak tests
2017-06-25 12:25:14 -07:00
Paulus Schoutsen
f43db3c615
Replace executor with async_add_job ( #7658 )
...
* Remove executor
* Lint
* Lint
* Fix tests
2017-05-26 08:28:07 -07:00
Fabian Affolter
3ee4d1060f
Update docstrings ( #7361 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update tomato.py
* Update isy994.py
* Lint + fix tests
* Lint
2017-04-29 22:04:49 -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
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
Erik Eriksson
3b693d5e70
generic camera: improved exception handling ( #6158 )
...
Avoid unhandled exception and stack trace when server closes connection by changing from handle ClientDisconnectedError to DisconnectedError. Also added HttpProcessingError, which was missing.
2017-02-22 07:43:52 -08:00
Pascal Vizeli
1d7ab0fa95
Cleanup some async stuff ( #6127 )
...
* Cleanup some async stuff
* change to schedule_update_ha_state()
* fix media player
* fix zigbee
2017-02-20 13:24:03 -08:00
Paulus Schoutsen
e5504b39ec
Close aiohttp responses ( #4624 )
...
* Close aiohttp responses
* Update generic.py
2016-11-30 13:05:58 -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
Johann Kellerman
9bb94a4512
Improve async generic camera's error handling ( #4316 )
...
* Handle errors
* Feedback
* DisconnectedError
2016-11-10 21:28:22 -08:00
Pascal Vizeli
2e0c185740
Async cleanup part 3 ( #4302 )
2016-11-07 22:31:40 -08:00
Paulus Schoutsen
ee5f228309
Make services yield ( #4187 )
...
* Make services yield
* Disable pylint abstract-method check
* add input_select
* add input_slider
* change to async vers.
* fix lint
* yield on add_entities as other components does
2016-11-03 18:32:14 -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
Pascal Vizeli
3324995e70
Async clientsession / fix stuff on aiohttp and camera platform ( #4084 )
...
* add websession
* convert to websession
* convert camera to async
* fix lint
* fix spell
* add import
* create task to loop
* fix test
* update aiohttp
* fix tests part 2
* Update aiohttp.py
2016-10-27 21:40:10 -07:00
Paulus Schoutsen
519d9f2fd0
async HTTP component ( #3914 )
...
* Migrate WSGI to asyncio
* Rename wsgi -> http
* Python 3.4 compat
* Move linting to Python 3.4
* lint
* Lint
* Fix Python 3.4 mock_open + binary data
* Surpress logging aiohttp.access
* Spelling
* Sending files is a coroutine
* More callback annotations and naming fixes
* Fix ios
2016-10-23 23:48:01 -07:00
Paulus Schoutsen
00e298206e
Optimize template 2 ( #3521 )
...
* Enforce compiling templates
* Refactor templates
* Add template validator to Logbook service
* Some more fixes
* Lint
* Allow easy skipping of rfxtrx tests
* Fix template bug in AND & OR conditions
* add entities extractor
Conflicts:
tests/helpers/test_template.py
* fix unittest
* Convert template to be async
* Fix Farcy
* Lint fix
* Limit template updates to related entities
* Make template automation async
2016-09-27 21:29:55 -07:00
Paulus Schoutsen
0c0feda834
Pre-compile templates ( #3515 )
...
* Pre-compile templates
* Compile templates in numeric_state condition
2016-09-25 13:33:01 -07:00
Fabian Affolter
e6b9d5f5b3
Migrate to voluptuous ( #2989 )
...
🍪 🐬
2016-08-27 14:42:34 -06:00
Paulus Schoutsen
aa6a0523ef
Add template support to generic camera + local file tests ( #2881 )
...
* Add template support to generic camera
* Add tests for local file
2016-08-20 23:04:55 -07:00
Matthias Grawinkel
8a3c511a04
Adding Digest Auth for webcam image retrieval ( #2821 )
...
* Adding Digest Auth for webcam image retrieval
* Update generic.py
* Update mjpeg.py
* Update generic.py
* Update mjpeg.py
* Update generic.py
* Update mjpeg.py
2016-08-17 19:08:47 +02:00
Paulus Schoutsen
a80a74b586
Add camera timeouts
2016-06-18 13:06:14 -07:00
Fabian Affolter
cd5b5c55e2
Fix PEP257 issues
2016-03-07 20:29:54 +01:00
Fabian Affolter
032f06e015
Modify docstrings to match PEP257
2016-03-07 18:50:30 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Paulus Schoutsen
a301d869d7
PyLint 1.5 fixes
2015-11-29 13:49:05 -08:00
Fabian Affolter
ab9e173179
Update docstrings
2015-11-18 08:42:49 +01:00
Nolan Gilley
85e0db6ade
add exception handling to generic camera requests function.
2015-11-13 13:55:22 -05:00
Fabian Affolter
97f9f8aa49
Update link to docs (Jekyll 3 update)
2015-11-09 13:12:18 +01:00
Fabian Affolter
44418b509c
Move configuration details to docs
2015-10-13 21:00:28 +02:00
Fabian Affolter
e196c136c1
Update docstring (config file) and attempt to honor PEP0257
2015-09-07 18:38:49 +02:00
Paulus Schoutsen
2cbfc60679
Add camera to demo
2015-07-10 23:24:05 -07:00
Paulus Schoutsen
aec25c88b4
Clean up camera component
2015-07-10 23:17:12 -07:00
jamespcole
bf2b06880e
Fixed some linting errors
2015-07-10 20:10:23 +10:00
jamespcole
c231a349c7
Updates from pull request feedback
2015-07-10 18:03:46 +10:00
jamespcole
7a4d40a8fd
Fixed some linting errors
2015-06-05 23:04:52 +10:00
jamespcole
aaf0ca2105
Very simple IP Camera support
2015-06-05 22:51:29 +10:00