Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Paulus Schoutsen
d405069406
Guard for callbacks in service helper ( #31339 )
2020-01-31 09:32:43 +01:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
4c5c34919d
Sort imports according to PEP8 for camera ( #29691 )
2019-12-09 11:50:48 +01:00
Ville Skyttä
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
Franck Nijhof
6a24d893c8
Use literal string interpolation in integrations B-D (f-strings) ( #26378 )
2019-09-03 17:09:59 +02:00
Jonathan Keljo
a38bdc4deb
Remove reference to typing.Deque (added in Python 3.6.1) ( #26030 )
...
* Remove reference to typing.Deque (added in Python 3.6.1)
* Silence mypy
* Type as collections.deque
2019-08-19 20:08:07 +03:00
Ville Skyttä
b738082dad
Type check various base components ( #25878 )
...
* Type check various component base classes, disabling bunch of checks for now
* Type hint fixes
* Help mypy out some
* Add more type hints
2019-08-11 20:38:18 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Franck Nijhof
31f569ada9
Batch of Component(s) -> Integration(s) ( #24972 )
2019-07-05 15:24:26 -07:00
Paulus Schoutsen
1de0a0bbb9
Convert stream source to method ( #23905 )
...
* Convert stream source to method
* Use async with
2019-05-23 09:45:30 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Paulus Schoutsen
45085dd97f
Better handle large amounts of data being sent over WS ( #23842 )
...
* Better handle large amounts of data being sent over WS
* Lint
2019-05-14 05:57:47 +02:00
Jason Hunter
e7102eaf30
only preload when stream is setup ( #23134 )
2019-04-15 22:36:57 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd30889bad5adc9a4fd60059d05ba5a7.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2cc53cbe6954f940062b18ae34b05621.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Jason Hunter
3fde1d3bab
coerce duration and lookback to int so they can be used in template automation ( #22819 )
2019-04-07 13:08:08 -04:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Jason Hunter
26726af689
Stream Record Service ( #22456 )
...
* Initial commit of record service for live streams
* fix lint
* update service descriptions
* add tests
* fix lint
2019-03-27 21:47:07 -07:00
Jason Hunter
bad0a8b342
Camera Preferences + Preload Stream ( #22339 )
...
* initial commit for camera preferences and preload stream
* cleanup and add tests
* respect camera preferences on each request stream call
* return the new prefs after update
2019-03-26 08:31:29 -04:00
Paulus Schoutsen
c68b621972
Google Assistant: Add camera stream trait ( #22278 )
...
* Add camera stream trait
* Lint
2019-03-23 09:16:43 -07:00
Paulus Schoutsen
4a4bb43422
Stream: Only add base url when needed ( #21979 )
2019-03-12 11:46:20 -07:00
Jason Hunter
7ccd0bba9a
Live Streams Component ( #21473 )
...
* initial commit of streams
* refactor stream component
* refactor so stream formats are not considered a platform
* initial test and minor refactor
* fix linting
* update requirements
* need av in tests as well
* fix import in class def vs method
* fix travis and docker builds
* address code review comments
* fix logger, add stream start/stop logs, listen to HASS stop
* address additional code review comments
* beef up tests
* fix tests
* fix lint
* add stream_source to onvif camera
* address pr comments
* add keepalive to camera play_stream service
* remove keepalive and move import
* implement registry and have output provider remove itself from stream after idle, set libav log level to error
2019-03-11 19:57:10 -07:00
emontnemery
b1faad0a50
Use PLATFORM_SCHEMA_BASE as base schema for additional components. ( #20578 )
...
* Disable extra=vol.ALLOW_EXTRA for additional platforms.
* Remove PLATFORM_SCHEMA_2
* Add entity_namespace to base platform schema
2019-02-04 21:52:19 -08:00
Paulus Schoutsen
8ea0a8d40b
RFC: Deprecate auto target all for services and introduce entity_id: * ( #19006 )
...
* Deprecate auto target all
* Match on word 'all'
2018-12-13 10:07:59 +01:00
Jason Hu
f516550f9f
Fix camera mjpeg stream handling ( #18076 )
...
* Fix handle_async_mjpeg_stream
* Lint
2018-11-01 09:28:23 +01:00
cdce8p
7f0a50ce31
async_create_task ( #17059 )
...
* async_create_task
* Update google.py
2018-10-02 11:03:09 +02:00
Paulus Schoutsen
2e6346ca43
Break up websocket 2 ( #17028 )
...
* Break up websocket 2
* Lint+Test
* Lintttt
* Rename
2018-10-01 16:09:31 +02:00
Paulus Schoutsen
22a80cf733
Break up websocket component ( #17003 )
...
* Break up websocket component
* Lint
2018-10-01 11:21:00 +02:00
cdce8p
fa98a27df7
Remove service helper (2) ( #16863 )
...
* alarm_control_panel
* automation
* camera
* climate
* counter
* fan
* Add legacy notes
* Fix tests
2018-09-26 09:49:55 +02:00
PhracturedBlue
cf4b72e00e
Fix camera proxy to not require api_password to function ( #16450 )
2018-09-06 10:51:16 +02:00
Ville Skyttä
dbd0763f83
Grammar and spelling fixes ( #16065 )
2018-08-19 22:29:08 +02:00
Paulus Schoutsen
1ff1639cef
More entity service ( #15998 )
...
* Camera use entity service
* Convert climate services
* Convert light
* Convert media player
* Migrate fan
2018-08-16 14:28:59 +02:00
Jason Hu
45a7ca62ae
Add turn_on/off service to camera ( #15051 )
...
* Add turn_on/off to camera
* Add turn_on/off supported features to camera.
Add turn_on/off service implementation to camera, add turn_on/off
supported features and services to Demo camera.
* Add camera supported_features tests
* Resolve code review comment
* Fix unit test
* Use async_add_executor_job
* Address review comment, change DemoCamera to local push
* Rewrite tests/components/camera/test_demo
* raise HTTPError instead return response
2018-07-24 10:13:26 -07:00
Pascal Vizeli
f3dfc433c2
Fix aiohttp connection reset errors ( #15577 )
...
* Fix aiohttp connection reset errors
* Update aiohttp_client.py
* Update aiohttp_client.py
* Update __init__.py
* Update mjpeg.py
* Update mjpeg.py
* Update ffmpeg.py
* Update ffmpeg.py
* Update ffmpeg.py
* Update proxy.py
* Update __init__.py
* Update aiohttp_client.py
* Update aiohttp_client.py
* Update proxy.py
* Update proxy.py
* Fix await inside coroutine
* Fix async syntax
* Lint
2018-07-23 14:36:36 +02:00
Ville Skyttä
b7c336a687
Pylint cleanups ( #15626 )
...
* Pylint 2 no-else-return fixes
* Remove unneeded abstract-class-not-used pylint disable
2018-07-23 10:16:05 +02:00
Paulus Schoutsen
70fe463ef0
User management ( #15420 )
...
* User management
* Lint
* Fix dict
* Reuse data instance
* OrderedDict all the way
2018-07-13 15:31:20 +02:00
Jason Hu
508d0459a7
Fix #14919 . Should throw exception when camera stream closed by frontend ( #15028 )
...
* Fix #14919 . Should throw exception when camera stream closed by frontend
* Re-trigger CI
* pythonic re-raise
2018-06-25 13:03:39 -04:00
Jason Hu
abf07b60f0
Refactoring camera component to use async/await syntax. ( #14990 )
...
* Refactoring camera component to use async/await syntax
Also updated camera demo platform to encourage use of async
* Code review
2018-06-16 10:49:11 -04:00
Ville Skyttä
4bd7a7eee3
Remove inline pylint disables for messages disabled in pylintrc ( #14978 )
2018-06-16 00:15:46 +02:00
Paulus Schoutsen
e014a84215
Nest config flow ( #14921 )
...
* Move nest to dir based component
* Add config flow for Nest
* Load Nest platforms via config entry
* Add tests for Nest config flow
* Import existing access tokens as config entries
* Lint
* Update coverage
* Update translation
* Fix tests
* Address strings
* Use python-nest token resolution
* Lint
* Do not do I/O inside constructor
* Lint
* Update test requirements
2018-06-13 11:14:52 -04:00
Abílio Costa
6843893d9f
Add "framerate" parameter to generic camera ( #14079 )
...
* add "framerate" parameter to generic camera
* fix lint
2018-05-11 00:22:02 +02:00
Paulus Schoutsen
58257af289
Add fetching camera thumbnails over websocket ( #14231 )
...
* Add fetching camera thumbnails over websocket
* Lint
2018-05-03 22:02:59 +02:00
NovapaX
38560cda1c
Allow to set a desired update interval for camera_proxy_stream view ( #13350 )
...
* allow to set a desired update interval for camera_proxy_stream view
* lint
* refactor into a seperate method.
Keep the handle_async_mjpeg_stream method to be overridden by platforms
so they can keep proxying the direct streams from the camera
* change descriptions
* consolidate
* lint
* travis
* async/await and force min stream interval for fallback stream.
* guard clause. Let the method raise error on interval.
* is is not =
* what to except when you're excepting
* raise ValueError, remove unnecessary 500 response
2018-05-01 14:49:33 -04:00
Paulus Schoutsen
6a5c7ef43f
Upgrade to aiohttp 3 ( #12921 )
...
* Upgrade aiohttp to 3.0.6
* Fix tests
* Fix aiohttp client stream test
* Lint
* Remove drain
2018-03-05 13:28:41 -08:00
Ville Skyttä
55ee8959ba
Spelling fixes ( #11940 )
2018-01-27 11:58:27 -08:00
Paulus Schoutsen
183e0543b4
Clean up entity component ( #11691 )
...
* Clean up entity component
* Lint
* List -> Tuple
* Add Entity.async_remove back
* Unflake setting up group test
2018-01-22 22:54:41 -08:00
Anders Melchiorsen
8267a21bfe
Lazy loading of service descriptions ( #11479 )
...
* Lazy loading of service descriptions
* Fix tests
* Load YAML in executor
* Return a copy of available services to allow mutations
* Remove lint
* Add zha/services.yaml
* Only cache descriptions for known services
* Remove lint
* Remove description loading during service registration
* Remove description parameter from async_register
* Test async_get_all_descriptions
* Remove lint
* Fix typos from multi-edit
* Remove unused arguments
* Remove unused import os
* Remove unused import os, part 2
* Remove unneeded coroutine decorator
* Only use executor for loading files
* Cleanups suggested in review
* Increase test coverage
* Fix races in existing tests
2018-01-07 14:54:16 -08:00
Pascal Vizeli
444b7c5ee7
Add new service 'snapshot' for camera ( #10207 )
...
* Add new service 'snapshot' for camera
* Fix lint
* fix arguments
* Add test and fix bugs
* Fix lint
* Fix typo
2017-10-29 23:14:26 +01:00
Pascal Vizeli
c1b197419d
Fix async probs ( #9924 )
...
* Update entity.py
* Update entity_component.py
* Update entity_component.py
* Update __init__.py
* Update entity_component.py
* Update entity_component.py
* Update entity.py
* cleanup entity
* Update entity_component.py
* Update entity_component.py
* Fix names & comments / fix tests
* Revert deadlock protection
* Add tests for entity
* Add test fix name
* Update other code
* Fix lint
* Remove restore state from template entities
* Lint
2017-10-19 10:56:25 +02:00