Commit Graph
33 Commits
Author SHA1 Message Date
Ville SkyttäandGitHub 50e0c58310 Use http.HTTPStatus in components/s* (#58291) 2021-10-23 20:49:04 +02:00
e27e4c3561 Add support for device configuration URL (#57539)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-10-14 11:16:56 -07:00
a4d9019ffc Refactor persistent notification to no longer route all data via a service (#57157)
* Convert persistent notification tests to async

* Create/dismiss persistent notifications in exposed functions, not service calls

* Fix notify persistent_notification

* Remove setting up persistent_notification

* Drop more setups

* Empty methods

* Undeprecate sync methods because too big task

* Fix setup clearing notifications

* Fix a bunch of tests

* Fix more tests

* Uno mas

* Test persistent notification events

* Clean up stale comment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Shay LevyandGitHub 47340802b3 Add Shelly RPC device trigger and logbook platforms (#56428)
* Add RPC device trigger and logbook platforms

* Single input event for Block and RPC

* Add device generation to shelly.click
2021-09-21 00:09:44 +03:00
Shay LevyandGitHub e9eb76c7db Add switch support for RPC device (#56153)
* Add switch support for RPC device

* Apply review comments

* Apply review comments
2021-09-13 09:31:35 +03:00
Shay LevyandGitHub f1a88f0563 Add config flow support for RPC device (#56118) 2021-09-11 23:28:33 +03:00
Shay LevyandGitHub 8c3c2ad8e3 Updated changes for aioshelly 1.0.0 (#56083) 2021-09-11 00:48:55 +03:00
Shay LevyandGitHub c7ada1e8f6 Fix flaky Shelly config flow test (#50982) 2021-05-23 02:11:02 +03:00
Shay LevyandGitHub 98396e13af Fix Shelly button device triggers (#48974) 2021-04-09 16:58:44 -07:00
Paulus SchoutsenandGitHub 34b9e6f6fc Shelly: set confirm only (#47608) 2021-03-09 13:13:43 +01:00
Paulus SchoutsenandGitHub 7c2545af6e Use async_capture_events to avoid running in executor (#47111) 2021-02-26 13:28:52 -08:00
Maciej BieniekandGitHub b645b151f9 Catch AuthRequired exception in confirm discovery step for Shelly config flow (#46135) 2021-02-24 07:13:32 -06:00
2fc1c19a45 Allow to setup of a previously discovered sleeping Shelly device (#46124)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-02-09 09:28:40 +01:00
0875f654c8 Add support for Shelly battery operated devices (#45406)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-03 17:03:22 +01:00
Shay LevyandGitHub e3f38942cc Add 100% tests coverage for Shelly cover and switch platforms (#45001) 2021-01-11 16:45:06 +01:00
Paulus SchoutsenandGitHub f1c116831f Patch Shelly test setting up entry (#44842) 2021-01-05 18:35:54 +01:00
Shay LevyandGitHub 76537305e2 Add logbook and device trigger platforms to Shelly (#44020)
* Add logbook and device trigger platforms to Shelly

Add `logbook` platform for describing “shelly.click” event
Add `device_trigger` platform for adding automation based on click events:

Example of logbook event:
Shelly 'single' click event for Test I3 channel 3 was fired.
(Test I3 is the name of the device)

Example of automation triggers:
First button triple clicked
First button long clicked and then single clicked
First button double clicked
First button long clicked
First button single clicked and then long clicked
First button single clicked
Second button triple clicked
..
Second button single clicked

* Fix codespell

* Remove pylint added for debug

* Add tests

* Rebase

* Fix Rebase & Apply PR review suggestions

Fix tests after rebasing
Use `INPUTS_EVENTS_DICT` for input triggers
Apply PR suggestions
2021-01-04 23:10:42 +01:00
Simone ChemelliandGitHub f07bf6a88e Cleanup timeouts values for Shelly (#44790)
* Updated timeouts

* Small cleanup

* Fix + small cleanup of test code
2021-01-04 14:04:40 +01:00
Franck NijhofandGitHub 65cf2fcb6f Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
2b0556520b Catch Shelly zeroconf types with uppercase too (#44672)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-01 20:54:43 +01:00
Shay LevyandGitHub fd24baa1f6 Fix Shelly devices missing properties field (#44279) 2020-12-16 21:28:59 +01:00
nivnoachandGitHub 906e1ce960 Allow manual configuration of ignored config entries (#43947) 2020-12-07 09:25:04 +01:00
Paulus SchoutsenandGitHub 0ee86ea8e4 Another try to get rid of Shelly flaky test (#43821) 2020-12-01 19:26:43 +01:00
Paulus SchoutsenandGitHub 897ff31ffe Maybe fix flaky test (#43690) 2020-11-27 12:31:42 +01:00
f45075eeb5 Use own CoAP lib and support for multicast updates (#42718)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-02 16:46:34 +01:00
Paulus SchoutsenandGitHub 1c36bf5e19 Fix block till done in create entry config flow tests (#42290) 2020-10-24 16:20:56 +02:00
On FreundandGitHub a07c0d1605 Fallback to mac in Shelly config flow title (#40783) 2020-10-21 15:05:06 +02:00
Maciej BieniekandGitHub b8f837365c Bump aioshelly library to version 0.3.3 (#40415) 2020-09-26 22:39:02 +02:00
Ville SkyttäandGitHub 271ffac4a9 Fix static/class async mocks on Python 3.8.0 and .1 (#40147)
* forked_daapd

* shelly

* simplipy
2020-09-17 08:20:00 +03:00
963651d6f2 Add support for authenticated Shelly devices (#39461)
* Add support for authenticated Shelly devices

* Fix comment typos

* Update homeassistant/components/shelly/config_flow.py

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>

* Fix unauthenticated devices

* Update homeassistant/components/shelly/config_flow.py

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

* Code review fixes

* More code review fixes

* Fix typo

* Update homeassistant/components/shelly/config_flow.py

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

Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-09-01 08:08:37 -04:00
Franck NijhofandGitHub 1c2ebdf307 Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
Paulus SchoutsenandGitHub e61f7f0274 100% test coverage for Shelly config flow (#39209) 2020-08-24 13:39:23 +02:00
Paulus SchoutsenandGitHub ca2bc9906d Add Shelly integration (#39178) 2020-08-24 12:43:31 +02:00