Commit Graph

38 Commits

Author SHA1 Message Date
Erik Montnemery
e0795e6d07 Improve config entry state transitions when unloading and removing entries (#138522)
* Improve config entry state transitions when unloading and removing entries

* Update integrations which check for a single loaded entry

* Update tests checking state after unload fails

* Update homeassistant/config_entries.py

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

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-17 18:16:57 +01:00
Max Cabrajac
a67bc12bb8 Change AdGuard Home URL field validator to accept paths (#127957) 2025-01-16 13:34:30 +01:00
Marc Mueller
44049c34f9 Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
Marc Mueller
dace9b32de Store runtime data inside ConfigEntry (#115669) 2024-04-30 11:29:43 +02:00
Marc Mueller
6a7a44c998 Add dataclass to store AdGuard data (#115668)
* Add dataclass to store AdGuard data

* Unify version call
2024-04-16 08:02:27 +02:00
Marc Mueller
ff3a801936 Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Franck Nijhof
c6c063e8c5 Various cleanups in AdGuard Home (#75250)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-07-15 12:38:20 +02:00
Franck Nijhof
d004adf833 Add entity descriptions in AdGuard Home sensors (#75179) 2022-07-14 13:04:19 -07:00
Franck Nijhof
7c2bd319f1 Migrate AdGuard Home to new entity naming style (#74999)
* Migrate AdGuard Home to new entity naming style

* sentence-casing
2022-07-11 18:59:21 +02:00
J. Nick Koston
cd03c49fc2 Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02:00
Kevin Stillhammer
dd57d7d77f Support unload for multiple adguard entries (#74360) 2022-07-04 14:24:21 +02:00
Marc Mueller
d7170f43c3 Add type ignore error codes [A-L] (#66778) 2022-02-18 09:38:15 +01:00
epenet
942f58593b Add type hint to adguard service calls (#62893)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-27 23:55:46 +01:00
Marc Mueller
f57d42a9e8 Use platform enum (1) [A-D] (#60908)
* Use platform enum (1) [A-D]

* Fix imports

* Fix tests

* Use Platform even in tests
2021-12-03 08:51:30 -08:00
Matt
7613c6fd4c Add configuration_url to AdGuard Home integration (#60356) 2021-11-25 22:41:56 +01:00
Ville Skyttä
053c456199 Change device entry type to an StrEnum (#59940)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-11-22 18:14:15 +01:00
Robert Hillis
59fe30e589 Use DeviceInfo class - A (#57859) 2021-10-22 16:35:39 +02:00
Erik Montnemery
7e5ff825dd Enable basic type checking for adguard (#54924) 2021-08-21 11:46:00 +02:00
Ruslan Sayfutdinov
016abda12e Pylint plugin to check that relative imports are used (#50937)
* Pylint plugin to check that relative imports are used

* Fix existing sites

* Update description message

* Fix typo
2021-05-22 09:15:30 +01:00
Milan Meulemans
29d72714f3 Replace dict with DeviceInfo (#49950)
* Replace dict with DeviceInfo

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-02 00:37:19 +02:00
J. Nick Koston
a67b9eff17 Reduce config entry setup/unload boilerplate D-F (#49733) 2021-04-26 20:46:49 -10:00
Franck Nijhof
eb008e533e Process AdGuard review comments (#49274) 2021-04-15 23:34:49 +02:00
Kevin Eifinger
5a01addd67 Add support for multiple AdGuard instances (#49116) 2021-04-15 21:32:52 +02:00
Franck Nijhof
52475c108f Make integration setup optional (#48381) 2021-03-29 13:53:47 -07:00
Franck Nijhof
387e166447 Remove HomeAssistantType alias from AdGuard integration (#48377) 2021-03-26 18:52:01 -10:00
Franck Nijhof
66605b5994 Upgrade adguardhome to v0.5.0 (#47774) 2021-03-12 00:37:34 +01:00
Franck Nijhof
b01a6367cc Complete typing on AdGuard Home integration (#47477) 2021-03-06 23:19:03 +01:00
Quentame
198ecb0945 Uniformize platform setup (#47101)
* A platform is not a component

* Fix dynalite

* SUPPORTED_PLATFORMS --> PLATFORMS

* In tests

* In tests 2

* Fix SmartThings

* Fix ZHA test

* Fix Z-Wave

* Revert Z-Wave

* Use PLATFORMS const in ambient_station

* Fix ihc comment
2021-03-02 21:43:59 +01:00
Franck Nijhof
2c6686c5e1 Remove AdGuard version check (#38326) 2020-07-28 17:51:35 +02:00
Franck Nijhof
53545c984b Log lines do not end with a full stop (#37527) 2020-07-05 23:04:19 +02:00
Franck Nijhof
215215747e Fix use of AdGuard integration without version (#36995) 2020-06-22 13:06:59 +02:00
Paulus Schoutsen
96b84ff348 Fix AdGuard device info (#35217) 2020-05-05 02:30:21 +02:00
Paulus Schoutsen
b90cb09fd1 Add type to device registry (#35095) 2020-05-03 13:56:58 -07:00
Franck Nijhof
47b708974d Add disabled entities support to AdGuard (#31106) 2020-01-24 00:50:59 +01:00
Franck Nijhof
bf9418e51a Bump adguardhome to 0.4.0 (#30483) 2020-01-04 22:47:34 +01:00
Franck Nijhof
cb061e57d2 Add support for AdGuard Home v0.99.0 (#27926)
* Bump adguardhome to 0.3.0

* Add a more user friendly version handling and added logs

* ✏️ Fixes spelling error in abort messages

* ✏️ Error messages improvements, suggested by cgtobi
2019-10-19 12:11:09 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Franck Nijhof
9220270948 Adds AdGuard Home integration (#24219)
* Adds AdGuard Home integration

* 👕 Addresses linting warnings

* 🚑 Fixes typehint in async_setup_entry

* 👕 Take advantage of Python's coalescing operators

* 👕 Use adguard instance from outer scope directly in service calls

* 👕 Use more sensible scan_interval default for sensors

* 👕 Adds specific files to .coveragerc

*  Added tests and small changes to improve coverage

* 🔨 Import adguardhome dependencies at the top

* 🚑 Converted service handlers to be async

* 🔥 Removed init step from config flow
2019-06-01 22:13:14 -07:00