Commit graph

187 commits

Author SHA1 Message Date
Philip Allgaier
bd1d6f2c0d
Add link to log view in persistent notification () 2020-10-21 12:09:45 -05:00
Paulus Schoutsen
440570244d
Don't swallow all errors when checking for config validator platform () 2020-10-19 17:09:57 +02:00
Franck Nijhof
ee914366a8
Add native Python types support to templates ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-10-07 00:05:52 +02:00
Bram Kragten
510e90803e
Exclude media_dirs from YAML config check () 2020-10-05 22:09:47 +02:00
Franck Nijhof
f83f3c927a
Fix local media browser source conflicting with local www folder () 2020-09-16 21:38:40 +02:00
Franck Nijhof
ff0562ad1e
Add media dirs core configuration ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-16 15:28:25 +02:00
Jason Hunter
f2b3e63ff6
Media Source implementation for Chromecast ()
* Implement local media finder and integrate into cast

* update to media source as a platform

* Tweak media source design

* fix websocket and local source

* fix websocket schema

* fix playing media

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add resolve_media websocket

* Register that shit

* Square brackets

* Sign path

* add support for multiple media sources and address PR review

* fix lint

* fix tests from auto whitelisting config/media

* allow specifying a name on the media source

* add tests

* fix for python 3.7

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* add http back to cast and remove guess_type from executor as there is no i/o

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-04 11:16:29 -04:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Franck Nijhof
93c6a9cd96
Fix swapped variables deprecation in log message () 2020-07-16 10:08:05 +02:00
Paulus Schoutsen
8ed1a29c82
Drop white blacklist pt1 () 2020-07-13 17:43:11 +02:00
Aaron Bach
7968cd650a
Add concept of allowed external URLs to config ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-06-24 17:37:01 -07:00
Franck Nijhof
0146f35687
Fix packages when config schema is fully deprecated ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-11 10:59:52 -07:00
Ville Skyttä
b4404b071f
Pylint cleanups ()
* Avoid some outer name redefinitions

* Remove unneeded directives

* Narrow directive scope

* Don't disable redefined-variable-type
2020-05-09 14:08:40 +03:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url () 2020-05-08 02:29:47 +02:00
Paulus Schoutsen
a2fab264c4
Fix identifying Plex schema when used in packages () 2020-04-24 09:52:23 -07:00
Franck Nijhof
98a2efcbab
Collection of random (mainly) test improvements () 2020-04-06 12:51:48 +02:00
springstan
fca90a8ddc
Improve string formatting v5 ()
* Improve string formatting v5

* Address review comments
2020-04-05 17:48:55 +02:00
Franck Nijhof
7653dc947a
Enable pylint unnecessary-pass ()
* Enable pylint unnecessary-pass

* Process review suggestions

* Fix smhi tests
2020-04-05 10:33:07 +02:00
Franck Nijhof
22ae498f3a
Remove redundant open modes () 2020-04-04 22:49:15 +02:00
Franck Nijhof
b9b1cee403
Enable pylint import-outside-toplevel () 2020-04-04 17:07:36 +02:00
Erik Montnemery
3a74066529
Small cleanup in async_process_ha_core_config () 2020-04-03 09:44:20 -07:00
Paulus Schoutsen
b6d9454b54
Fix package default extraction () 2020-03-20 20:27:37 -07:00
Paulus Schoutsen
d16d44d3e7
Add negative tests for identify schema for packages () 2020-03-20 13:34:56 -07:00
Franck Nijhof
661101df08
Fix packages for schemas without a default () 2020-03-20 08:17:43 -07:00
Paulus Schoutsen
c3c5cc9ae7
Fix zones in packages () 2020-03-19 20:45:26 -07:00
springstan
b41cbe9885
Add www. to all documentation links ()
* Add www. to all documentation links

* Fix broken redirect uri test
2020-02-21 16:10:02 -08:00
Paulus Schoutsen
fbbb29a6ec
Catch unexpected exceptions when validating config () 2020-02-13 22:43:07 +01:00
Paulus Schoutsen
5fdc60e067
Add Safe Mode ()
* Store last working HTTP settings

* Add safe mode

* Fix tests

* Add cloud to safe mode

* Update logging text

* Fix camera tests leaving files behind

* Make emulated_hue tests not leave files behind

* Make logbook tests not leave files behind

* Make tts tests not leave files behind

* Make image_processing tests not leave files behind

* Make manual_mqtt tests not leave files behind
2020-01-14 13:03:02 -08:00
Ville Skyttä
fa4fa30461 Various string cleanups ()
* Remove some unnecessary string concatenations

* Replace some simple str.formats with f-strings

* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations () 2020-01-02 21:17:10 +02:00
Franck Nijhof
0439d6964c Fix persistent setup error notification content ()
* Fix persistent setup error notification content

* Use documentation from manifest, enriched error messages

* Fix issue caught by mypy
2019-12-16 20:16:23 +01:00
Bas Nijholt
67c56c860d Sort imports according to PEP8 for 'homeassistant' folder ()
Components are already done
2019-12-09 16:42:10 +01:00
Ville Skyttä
99c7608fb4 Lint config cleanups ()
* Remove bunch of unneeded lint exclusions

* Use symbolic names instead of identifiers in pylint disables

* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
Franck Nijhof
5fcfdee6b5
Fix documentation URL in failed platform config check ()
* Fix documentation URL in failed platform config check

* Replace pop from list by access using negative index

* Use of split instead of rsplit
2019-11-19 18:33:09 +01:00
Bram Kragten
e419689229 Add config endpoint for scene ()
* Add config endpoint for scene

* Add scenes to default config

* Fix test and add context to websocket service call

* Update scene.py

* Add tests
2019-11-04 12:38:18 -08:00
Paulus Schoutsen
93f9afcd21
Fix config imports ()
* Fix config imports

* Remove old migration

* Remove migrate tests
2019-10-15 16:15:26 -07:00
Paulus Schoutsen
3231e22ddf
Remove direct authentication via trusted networks or API password ()
* Remove direct authentication via trusted networks and API password

* Fix tests
2019-10-14 14:56:45 -07:00
Franck Nijhof
d4a67e3a30 Update documentation link URL for integrations (part2) () 2019-10-02 09:34:07 -07:00
Erik Montnemery
e57e7e8449
Improve validation of device trigger config ()
* Improve validation of device trigger config

* Remove action and condition checks

* Move config validation to own file

* Fix tests

* Fixes

* Fixes

* Small tweak
2019-09-27 17:48:48 +02:00
Franck Nijhof
0df1b4c7a1 Replaces IOError by OSError () 2019-09-04 19:09:24 +02:00
Franck Nijhof
2f0eb07624 Migrate legacy typehints in core to PEP-526 ()
* Migrate legacy typehints in core to PEP-526

* Fix one type
2019-09-03 20:36:04 -07:00
Franck Nijhof
decf13b948 Use literal string interpolation in core (f-strings) () 2019-08-23 09:53:33 -07:00
Paulus Schoutsen
6f357cb23e First pass fixing tests that raise exceptions caught by asyncio.gather ()
* First pass fixing tests that raise exceptions caught by asyncio.gather

* Fix demo test

* lint
2019-08-12 16:42:12 +02:00
Johann Kellerman
8b9d0593b1 Allow components with empty list config (i.e. person) in packages ()
* Fix 

* mypy Lists
2019-08-10 16:30:33 -07:00
Joakim Plate
d1b9ebc7b2 Integration requirement check refactor ()
* Factor out code getting requirements for integration

* Have process requirements raise an exception

* One more lint fix

* Blackify

* Catch new exception

* Let RequirementsNotFound be a HomeAssistantError

* Correct another test

* Split catching of exceptions and avoid complete log
2019-08-07 15:35:50 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Joakim Plate
3d11c45edd Log platform import errors and correct reqs for config check ()
* Log failures to load plaforms

* Drop unused exception variable

* Also load pip requirements with check config

* Fix lint

* More lint

* Drop invalid parameters for error call
2019-07-31 09:09:00 -07:00
Ville Skyttä
56841da2d3 Upgrade mypy to 0.720, turn on unreachability warnings ()
* Upgrade mypy to 0.720

* Turn on mypy unreachability warnings, address raised issues
2019-07-16 15:11:38 -07:00
Joakim Plate
b57c60ad7a Load requirements for platforms ()
Fixes  and fixes 
2019-07-14 14:13:36 -07:00
Johann Kellerman
2e26f0bd2b Add check_config helper ()
* check_config

* no ignore

* tests

* try tests again
2019-07-10 11:56:50 -07:00