Commit graph

110 commits

Author SHA1 Message Date
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
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields () 2020-04-03 12:58:19 -07:00
Paulus Schoutsen
4ebbabcdd1
Unsub dispatcher when removing entity from hass ()
* Unsub dispatcher when removing entity from hass

* Update homeassistant/components/plaato/sensor.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/volvooncall/__init__.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-02 09:25:33 -07:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state ()
* Directly call async_write_ha_state

* Address comments

* Fix tests
2020-04-01 14:19:51 -07:00
Paulus Schoutsen
536b31305a
Support multiple Lovelace dashboards ()
* Support multiple Lovelace dashboards

* Mark collection maintenance as unfinished

* Fix import

* Add websockets commands for resource management

* Revert "Add websockets commands for resource management"

This reverts commit 7d140b2bcc.

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-02-25 11:18:21 -08:00
Ville Skyttä
9b2544c923
Remove some unneeded pylint suppressions () 2020-02-24 16:47:15 -08:00
Paulus Schoutsen
3b3e062a35
Whitelist shopping list updated event ()
* Whitelist shopping list updated event

* Add ignore to hassfest
2020-02-12 10:13:07 -08:00
Franck Nijhof
bfa0edaf92 Migrate Integration Quality Scale from docs to manifest: internal () 2020-01-07 20:58:49 +01:00
Franck Nijhof
b4d6d238e5 Correct names in manifests (T-Z) () 2020-01-07 14:31:18 +01:00
Franck Nijhof
a84741392b
Format all manifests with prettier () 2020-01-06 21:28:23 +01:00
Paulus Schoutsen
b9aba30a6e
Extract Collection helper from Person integration ()
* Add CRUD foundation

* Use collection helper in person integration

* Lint/pytest

* Add tests

* Lint

* Create notification
2020-01-03 21:37:11 +01:00
springstan
6de8072e8a Move imports to top for websocket_api ()
* Move imports to top for websocket_api

* Move back an import because of circular dependency, add annotations
2019-12-08 12:19:15 +01:00
Paulus Schoutsen
bd54ff3c02 Add TT WS API ()
* Add TT WS API

* Add a test

* Correctly convert TT errrors
2019-11-08 10:06:16 +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
Ville Skyttä
381d423fec Upgrade mypy to 0.740 ()
* Upgrade mypy to 0.740

http://mypy-lang.blogspot.com/2019/10/mypy-0740-released.html

* Type hint additions

* Type fixes

* Remove no longer needed type ignores and casts

* Disable untyped definition checks in bunch of files
2019-10-19 11:35:57 -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
Paulus Schoutsen
c9e26b6fd0
Improve speed websocket sends messages ()
* Improve speed websocket sends messages

* return -> continue
2019-10-07 20:08:07 -07:00
Franck Nijhof
c7da781efc Update documentation link URL for integrations in all manifests () 2019-10-02 09:25:44 -07:00
Ville Skyttä
f259ff17d5
Type hint additions ()
* Type hint additions

* Remove optional from sidebar_icon comment

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* Remove optional from sidebar_title comment

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* Fix issues after rebase and mypy 0.730
2019-09-29 20:07:49 +03:00
Franck Nijhof
b1118cb8ff Removes unnecessary else/elif blocks () 2019-09-24 13:53:03 -07:00
Paulus Schoutsen
92f8362883
Allow core config updated () 2019-09-03 23:13:34 -07:00
Thomas Lovén
e7e083c547 Websocket call for rendering jinja2 templates subscription ()
* Websocket call for rendering jinja2 templates

* Address review comments

* Address review comments

* Allow MATCH_ALL, but ignore it.

* Always register unsub method.
2019-08-10 12:46:49 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
f5f86993f1
Improve Alexa error handling () 2019-06-24 22:04:31 -07:00
Paulus Schoutsen
1a3a38d370 Dynamic panels ()
* Don't require all panel urls to be registered

* Allow removing panels, fire event when panels updated
2019-05-30 13:37:01 +02:00
Bram Kragten
5c86a51b45 Lovelace: Fire event on save ()
* Lovelace: Fire event on save

* Add event to whitelist
2019-05-26 20:27:07 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ()
* 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
de1fd5a7fa
WS: Improve service calling errors ()
* WS: Improve service calling errors

* Docstyle

* Types

* Update text
2019-05-14 07:09:11 +02:00
Paulus Schoutsen
45085dd97f
Better handle large amounts of data being sent over WS ()
* Better handle large amounts of data being sent over WS

* Lint
2019-05-14 05:57:47 +02:00
Paulus Schoutsen
07ee3b2eb9
Add update events to registries ()
* Add update events to registries

* Add to websocket
2019-05-07 20:04:57 -07:00
Penny Wood
3338f5c9b4 Further patch to fix of () 2019-05-02 14:05:16 -07:00
Paulus Schoutsen
5b0ee473b6 Add get_states faster () 2019-04-23 12:46:22 +02:00
Paulus Schoutsen
a52f96b23a
Add stub services.yaml and make validation mandatory () 2019-04-18 15:13:35 -07:00
Paulus Schoutsen
e8343452cd
Validate component usage ()
* Update manifest validator

* Update circle

* Update text

* Typo

* fix link to codeowners

* Merge CODEOWNERS into hassfest

* Annotate errors with fixable

* Convert error to warning

* Lint

* Make abs path

* Python 3.5...

* Typo

* Fix tests
2019-04-13 13:17:01 -07:00
Penny Wood
2527731865 Fix websocket connection sensor ()
* Fix for 

* Singleton count
2019-04-13 10:48:40 -07:00
Paulus Schoutsen
373b2009c9
Catch connection reset () 2019-04-10 15:42:10 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ()
* Add manifests

* Update auto name

* Update codeowners

* Add requirements from platforms

* Minor cleanup

* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Leonardo Merza
29ad3961e5 Use voluptuous error string for websocket validation error ()
* use voluptuous error string to websocket validation error

* added exception logging to websocket error

* add detailed message to websocket validation error

* add error message to websocket validation error

* Add humanize error for websocket invalid vol error

* Add humanize error for websocket invalid vol error

* Add humanize error for websocket invalid vol error
2019-03-27 10:40:39 -07:00
Penny Wood
1ddc65a0ce Fixing the api_streams sensor ()
* Fire events with websocket messages.

* Added tests to validate

* Fixed api_streams sensor to use new sensor

* Delete from coverageac as now works.

* Removed websocket request event.

* Use dispatcher instead of events.

* Moved sensor to under websocket_api

* Changes as per code review

* Fixed tests.

* Modified test

* Patch
2019-03-22 11:59:10 -07:00
Paulus Schoutsen
29131a655d
Allow non-admins to listen to certain events () 2019-03-17 19:13:06 -07:00
Paulus Schoutsen
429bbc05dc
Add WS subscription command for MQTT ()
* Add WS subscription command for MQTT

* Add test

* Add check for connected

* Rename event_listeners to subscriptions
2019-03-10 20:07:09 -07:00
Jason Hu
fe1840f901 Deprecate http.api_password ()
* Deprecated http.api_password

* Deprecated ApiConfig.api_password

GitHub Drafted PR would trigger CI after changed it to normal PR.
I have to commit a comment change to trigger it

* Trigger CI

* Adjust if- elif chain in auth middleware
2019-03-10 19:55:36 -07:00
Paulus Schoutsen
fc1ee9be43
Use new style for built-in ws commmands ()
* Use new style for built-in ws commmands

* Lint
2019-03-05 19:31:26 -08:00
Jason Hu
ee6f09dd29 Log exception occurred in WS service call command () 2019-03-03 21:22:22 -08:00
Jason Hu
f1b867dccb Re-thrown exception occurred in the blocking service call ()
* Rethrown exception occurred in the actual service call

* Fix lint and test
2019-03-01 23:09:31 -08:00
Daniel Høyer Iversen
519315f9c8 pylint 2.3.0 ()
* pylint 2.3.0

* remove const

*  disable=syntax-error
2019-02-27 16:10:40 -05:00
Fabian Affolter
127c55e0c1
Update file header ()
* Update file header

* Update file header

* Update file header

* Update file header

* Update file header

* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
987b5cd905
Person component: add storage and WS commands ()
* Forbid duplicate IDs

* Allow loading persons from storage

* Convert to PersonManager

* Add storage support and WS commands to Person component

* Convert list command to differentiate types

* Allow loading person component without defining persons

* Fix cleanups after update/delete

* Address comments

* Start tracking when HA started
2019-02-09 10:41:40 -08:00
Paulus Schoutsen
cb07ea0d60
RFC: Add system health component ()
* Add system health component

* Remove stale comment

* Fix confusing syntax

* Update test_init.py

* Address comments

* Lint

* Move distro check to updater

* Convert to websocket

* Lint

* Make info callback async

* Fix tests

* Fix tests

* Lint

* Catch exceptions
2019-01-30 10:57:53 -08:00
Florian Ludwig
23382ab199 assign user to websocket connection when using legacy_api_password () 2019-01-08 20:45:24 -08:00