Joost Lekkerkerker
9b41e3d124
Use is in enum comparison in config flow tests A-E ( #114669 )
2024-04-02 11:22:05 -10:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
c82933175d
Use builtin TimeoutError [a-d] ( #109678 )
2024-02-05 11:31:33 +01:00
J. Nick Koston
d4cdb0453f
Guard expensive debug formatting with calls with isEnabledFor ( #97073 )
2023-07-23 10:54:25 +02:00
Erik Montnemery
63f3767a29
Include UUID in hassio discovery data ( #91970 )
2023-04-25 09:48:47 +02:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
9f688a564f
Add type hints to integration tests (part 4) ( #87848 )
2023-02-11 08:26:13 +01:00
epenet
3052de3e8e
Add type hints to integration tests (d-e) ( #87699 )
2023-02-08 13:01:44 +01:00
Martin Hjelmare
62c4cd3c26
Add name and slug to supervisor discovery info ( #80094 )
2022-10-11 16:56:45 +02:00
Robert Svensson
05416f56aa
Use FlowResultType in deCONZ config flow tests ( #74495 )
2022-07-06 09:45:30 +02:00
Robert Svensson
a0fe5b0247
Make deCONZ SSDP discovery more strict by matching on manufacturerURL ( #71124 )
2022-04-30 19:33:47 +02:00
Robert Svensson
7f094a928b
Fix linking issue when deCONZ gateway is not unlocked ( #71082 )
2022-04-29 15:34:33 -07:00
Robert Svensson
3258f66097
Expose deCONZ configuration url from discovered entry ( #64519 )
2022-01-20 13:46:22 +01:00
epenet
358922db56
Use dataclass for HassioServiceInfo ( #60824 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 14:05:56 +01:00
epenet
9e96f3e227
Use HassioServiceInfo in deconz tests ( #60868 )
2021-12-02 10:33:23 -10:00
epenet
f292691b7b
Use SsdpServiceInfo for ssdp tests (part 3) ( #60334 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-25 11:46:20 -06:00
Franck Nijhof
52475c108f
Make integration setup optional ( #48381 )
2021-03-29 13:53:47 -07:00
Robert Svensson
fa5ce70af1
Improve test coverage of deCONZ config flow ( #48091 )
2021-03-19 13:37:22 +01:00
Robert Svensson
20f45f8ab9
Improve deCONZ tests by using aioclient_mock rather than patching web requests ( #45927 )
...
* Don't patch web requests, use aioclient_mock instead
* Remove stale prints
* Remove tests for old way of loading platforms
* Remove unused imports
2021-02-09 08:31:29 +01:00
Robert Svensson
57fa7f926a
Introduce reauth flow to deCONZ ( #45443 )
2021-01-22 23:37:16 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Robert Svensson
a8f0ad1dd8
Allow creating deCONZ config entry even when no bridge id is available
2020-12-02 19:10:47 +01:00
Robert Svensson
7eb532ddd0
Improve imports in deCONZ tests ( #41976 )
...
* Improve imports in deconz tests
* Add spacing
2020-10-17 11:20:06 -05:00
Robert Svensson
cbb4324c84
Refactor deCONZ tests ( #41362 )
...
* Use hass.config_entries.async_unload
* Return config_entry from setup_deconz_integration
2020-10-06 23:25:57 +02:00
Robert Svensson
2922d4675f
Abort deCONZ config flow if no radio hardware is connected ( #40811 )
2020-10-01 09:23:12 +02:00
Robert Svensson
7e58bfe01d
Add deconz option to disable automatic addition of new devices ( #40545 )
...
* Allow disabling automatic additions of new devices from deconz
* Fix black
* Fix review comment
* Remove assertion
* Verify entity registry is empty
2020-09-29 11:07:19 +02:00
springstan
6a7caad8dc
Use content type json constant ( #40312 )
2020-09-23 20:21:55 +02:00
Paulus Schoutsen
6de02fc1b9
Fix some more usages of asynctest ( #39570 )
2020-09-02 14:53:07 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston
74c23c3e96
Add support for reload_on_update to _abort_if_unique_id_configured ( #38638 )
...
* Add support for reload_on_update to _abort_if_unique_id_configured
async_update_entry now avoids firing update listeners and writing
the storage if there are no actual changes.
* Actually add the tests
* collapse branch
* Update homeassistant/config_entries.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* handle entries that lack the ability to reload
* reduce
* adjust konnected tests
* update axis tests
* fix blocking
* more mocking
* config flow tests outside of test_config_flow
* reduce
* volumio
* Update homeassistant/config_entries.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* set reload_on_update=False for integrations that implement self._abort_if_unique_id_configured(updates= and a reload listen
* get rid of copy
* revert test change
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-08-08 13:23:56 -05:00
Robert Svensson
4484afc0d6
deCONZ - Always allow manual input of gateway ( #33951 )
...
* Always allow manual input of gateway
2020-04-17 23:51:35 +02:00
Robert Svensson
a745134128
deConz - Use proper mechanisms for options flow tests ( #31965 )
...
Generic clean up
2020-02-18 23:52:56 +01:00
Robert Svensson
111fc1fa8e
Use all new helper functions ( #31278 )
2020-01-29 16:21:23 -08:00
Robert Svensson
967fe89f6d
deCONZ - Allow manual configuration to update existing configuration ( #30469 )
...
* Allow manual configuration to update existing configuration
* Harmonize tests
2020-01-04 22:55:57 +01:00
Jc2k
fdfedd086b
Rework FlowManager to use inheritance ( #30133 )
...
* Pull async_finish_flow/async_create_flow out of ConfigEntries
* Towards refactoring
* mypy fixes
* Mark Flow manager with abc.* annotations
* Flake8 fixes
* Mypy fixes
* Blacken data_entry_flow
* Blacken longer signatures caused by mypy changes
* test fixes
* Test fixes
* Fix typo
* Avoid protected member lint (W0212) in config_entries
* More protected member fixes
* Missing await
2020-01-03 11:52:01 +01:00
Robert Svensson
0a4f3ec1ec
Use config entry unique id for deCONZ ( #30122 )
...
* Use config entry unique id
* Clean up
* Backwards compatiblity note
* Fix some of Balloobs comments
* Bump dependency to v66
* Black somehow missed config flow tests...
* Move set unique ID til after possibility to update existing entry
2020-01-03 11:50:53 +01:00
Franck Nijhof
d101d4449f
Fix deconz SSDP updating Hassio discovery ( #30153 )
2019-12-22 22:24:18 +01:00
Franck Nijhof
eb0aed3653
Fix update port and api key on deconz discovery config entry u… ( #30088 )
...
* Fix update port and api key on discovery config entry update
* Remove coroutine from _update_entry
2019-12-20 10:29:18 +01:00
Ville Skyttä
d236a19139
Include all SSDP data in discovery info ( #28197 )
...
* 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
Bas Nijholt
41cd678f00
Sort imports according to PEP8 for deconz ( #29659 )
2019-12-09 12:25:35 +01:00
Robert Svensson
d345b58ce6
Improve UniFi config flow tests and add options flow test ( #27340 )
2019-10-08 14:44:33 -07:00
Robert Svensson
cff7fd0ef3
deCONZ - Increase bridge discovery robustness in config flow ( #26911 )
2019-09-25 21:50:14 +02:00
Robert Svensson
4582b6e668
deCONZ - Improve ssdp discovery by storing uuid in config entry ( #26882 )
...
* Improve ssdp discovery by storing uuid in config entry so discovery can update any deconz entry, loaded or not
2019-09-25 18:56:31 +02:00
Robert Svensson
9c2053a251
deCONZ - Remove mechanisms to import a configuration from configuration.yaml ( #26648 )
2019-09-14 22:53:59 +02:00
Robert Svensson
518d2c31bb
deCONZ - use entity registry disabled_by to control available entities ( #26219 )
...
* First draft
* Support enabling disabled entities
* Clean up
* Move import
* Local entity enabled replaced during rebase
* Add option flow test
* Mark options properties with option
2019-09-05 16:38:00 -07:00
Robert Svensson
d1874d148a
deCONZ - Dont update entry if data is equal
2019-08-31 15:56:43 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Julien Brochet
fadfb89b4c
Load the SSDP component only when it's needed ( #24420 )
...
* fix(hue): Load the SSDP component only when it's needed
* fix(deconz): Don't load the SSDP component when it's not needed
* Update config_flow.py
* Update test_config_flow.py
2019-06-10 09:11:07 -07:00
Robert Svensson
48276b041c
deCONZ - properly identify configured bridge ( #24378 )
2019-06-08 08:43:18 +02:00
Robert Svensson
449a7d3fd5
deCONZ migrate to SSDP discovery ( #24252 )
...
* Migrate deCONZ to use new SSDP discovery
Add new discovery info manufacturer URL to be able to separate Hue and deCONZ bridges
* Mark deCONZ as migrated in Discovery component
* Fix tests
* Fix Hue discovery ignore deCONZ bridge
* Less snake more badger
* Mushroom
* Fix indentation
* Config flow ignore manufacturer url that is not philips
2019-06-03 09:26:01 -07:00