epenet
9204ccfa17
Use is in ConfigEntryState enum comparison in tests (N-Z) ( #114926 )
2024-04-05 17:37:00 +02:00
Joost Lekkerkerker
2ef0521d3d
Use is in enum comparison in config flow tests U-Z ( #114677 )
...
* Use right enum expression U-Z
* Fix
2024-04-02 23:09:56 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
G Johansson
e8de1a7031
Revert "Avoid pre-importing config_flows if the integration does not … ( #113553 )
...
Revert "Avoid pre-importing config_flows if the integration does not support …"
This reverts commit 9940f51b95
.
2024-03-15 23:15:36 +01:00
Christopher Bailey
1ada10299a
Check for EA release channel for UniFi Protect ( #113432 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-14 09:07:54 -10:00
J. Nick Koston
9940f51b95
Avoid pre-importing config_flows if the integration does not support migration ( #113369 )
...
* Avoid pre-importing config_flows if the integration does support migration
Currently we pre-import the config flow module if it exists since
setting up the config entry required comparing the versions found
in the config_flow.py. We can avoid the pre-import if the integration
does not support async_migrate_entry which means we avoid loading
many config flows in memory at startup.
* cover
* fix missing block
* do not call directly
* its too fast now, the test gets more along
* Update homeassistant/loader.py
2024-03-14 00:13:40 -04:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Christopher Bailey
7eb6614818
Guide users to migrate from Ubiquiti Cloud Accounts to local for UniFi Protect ( #111018 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-20 23:32:47 -06:00
J. Nick Koston
2fe246441f
Fix formatting of mac addresses from dhcp discovery mocking in unifiprotect ( #110610 )
...
dhcp returns addresses in lowercase without :
2024-02-14 17:21:19 -05:00
J. Nick Koston
0120d00081
Switch unifiprotect to use async_update_reload_and_abort helper ( #108934 )
2024-01-26 22:55:58 -05:00
J. Nick Koston
480a495239
Fix unifiprotect discovery running at shutdown ( #88802 )
...
* Fix unifiprotect discovery running at shutdown
Move the discovery start into `async_setup` so we only
start discovery once reguardless of how many config entries
for unifiprotect they have (or how many times they reload).
Always make discovery a background task so it does not get
to block shutdown
* missing decorator
2023-02-26 21:08:20 -05: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
Christopher Bailey
bfd2eb50b2
Detect Early Access versions of UniFi Protect and Warn User ( #81758 )
2022-11-13 09:34:29 -06:00
J. Nick Koston
914ccdbc4f
Fix unload race in unifiprotect tests ( #81361 )
2022-11-01 13:21:20 -05:00
Franck Nijhof
dbb556a812
Revert "Add ability to ignore devices for UniFi Protect" ( #77916 )
2022-09-06 20:13:01 +02:00
Christopher Bailey
0867392f96
Add ability to ignore devices for UniFi Protect ( #77414 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-08-28 20:35:45 -05:00
Christopher Bailey
d139d1e175
Add UniFi Protect media source ( #73244 )
2022-08-08 10:00:50 -10:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02:00
Christopher Bailey
e67f8720e8
Refactor UniFi Protect tests ( #73971 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-25 08:15:38 -07:00
J. Nick Koston
9159db4b4a
Only update unifiprotect ips from discovery when the console is offline ( #73411 )
2022-06-12 20:04:17 -07:00
Christopher Bailey
5c2c602686
Bumps pyunifiprotect to 3.6.0 ( #72188 )
2022-05-19 20:34:58 -05:00
J. Nick Koston
03c91dad78
Fix missing title placeholders during unifiprotect reauth ( #70067 )
2022-04-15 07:31:50 -10:00
J. Nick Koston
02d245a31a
Fix reload race in unifiprotect ( #69485 )
...
- The integration already has a reload listener installed
once it is setup. We should not reload from the config
flow since they compete
2022-04-07 00:21:50 +03:00
J. Nick Koston
2b43293363
Switch unifiprotect to use integration discovery ( #66569 )
...
Backstory: https://github.com/home-assistant/core/pull/65752#discussion_r800068914
2022-02-15 17:02:33 +01:00
J. Nick Koston
b97cd3ce93
Do not update unifiprotect host from discovery if its not an ip ( #65548 )
2022-02-03 19:14:36 +01:00
J. Nick Koston
530fc8a9af
Ensure unifiprotect discovery can be ignored ( #65406 )
2022-02-02 16:16:29 +01:00
J. Nick Koston
18ea3fb85a
Prevent unifiprotect from being rediscovered on UDM-PROs ( #65335 )
2022-01-31 15:27:26 -08:00
J. Nick Koston
3c7005d4dc
Use unifi direct connect w/ssl verify for unifiprotect when possible ( #64395 )
2022-01-18 14:40:55 -10:00
J. Nick Koston
8aec26d105
Cleanup unifiprotect discovery name ( #64389 )
2022-01-18 12:38:16 -10:00
J. Nick Koston
88261c6c14
Add discovery support to unifiprotect ( #64340 )
2022-01-18 08:40:29 -10:00
Christopher Bailey
d0d5222bf4
UniFi Protect test refactoring ( #63486 )
...
* UniFi Protect test refactoring
* More pylint fixes
* Use load_fixture helper
* yield to return where able
2022-01-05 19:29:59 +01:00
Christopher Bailey
dc3f21dd1e
Followup PR for UniFi Protect integration ( #62806 )
...
* Followup improvements from initial PR
* Update tests/components/unifiprotect/conftest.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update translations
* Fixes log message
* Fixes log message
* Unknown to cannot connect
* Update tests/components/unifiprotect/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fixes camera coverage
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 12:39:24 +01:00
Christopher Bailey
e982e7403a
Add unifiprotect integration ( #62697 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-12-25 20:12:57 -10:00