Commit graph

14 commits

Author SHA1 Message Date
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants () 2021-04-25 11:27:40 +02:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Pigotka
7eaa304fc3
Use of reference strings in Heos config flow () 2020-10-05 12:22:02 -05:00
J. Nick Koston
9a53240759
Add ability to ignore heos discovery ()
* Add ability to ignore heos discovery

* Fetch player_id, update tests

* Handle failure state

* Update tests as there are two players in the mock now

* Adjust and add more tests

* Strip out player id lookup

* reverts per review

* one more revert
2020-05-26 10:51:50 -05:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Yuki Ueda
0eb5ca67cd
Make heos and transmission config flow tests more robust ()
* async_step_user to async_configure

* fix for lint

* fix for pylint

* fix isort and black

* fix miss-fixed black

* fixing for the python37 coverage

* fix transmission definition

* fix for Black formatting

* fix type to abort

* clean up

* clean up for the test

* fix for the test

* refactor

* split test_flow_works to three tests

* revert the assert

* remove whitespaces for flake8

* apply patch function

* fix for the patch

* fix for the black

* remove mock_coro

* fix for the black

* hue to heos

* try to fix import

* fix for the black

* revert try to fix import

* Add a pytest fixture

* fix for the black
2020-02-27 12:19:54 +01:00
Ville Skyttä
d236a19139
Include all SSDP data in discovery info ()
* Include all SSDP data in discovery info

* Use UPnP device description as discovery info, inject some SSDP attrs

* Clean up attribute names

* Adapt existing SSDP flows to changed attribute names

* Prefix all SSDP UPnP attribute name constants with ATTR_UPNP, tweak a bit
2019-12-19 19:28:03 +02:00
Andrew Sayre
7bfb365f62 Update pyheos to 0.6.0 () 2019-08-25 20:57:43 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
f54ad26630
Migrate HEOS discovery to manifest ()
* Migrate HEOS discovery to manifest

* Fix tests
2019-06-12 16:08:08 -07:00
Andrew Sayre
8c89e260df
HEOS confirm discovered devices before adding ()
* Add host selection step to discovery

* Review feedback

* Fix failing test
2019-04-13 16:44:45 -05:00
Andrew Sayre
38f063a158
Fix HEOS discovery could result in multiple config entries ()
* Prevent duplicate entries from discovery

* Update reqs files

* Prevent duplicate entries from discovery
2019-04-08 21:24:40 -05:00
Andrew Sayre
5651db4b5c
Add discovery support to HEOS component ()
* Add discovery entry point

* Fix test

* Correct test call method

* Update netdisco to 2.6.0
2019-04-02 15:22:49 -05:00
Andrew Sayre
ecba87179f
Add Heos config flow ()
* Add UI initiated config flow

* Fix alpha order
2019-03-30 08:52:17 -05:00