Commit Graph

4 Commits (78e29d526c178c2eaceda031ab3c9d126ebea654)

Author SHA1 Message Date
Franck Nijhof a79885ceaf
Enable Ruff SIM117 (#86783) 2023-01-27 11:52:49 +01:00
Maciej Bieniek cba2893862
Set quality scale to platinum in the NextDNS integration (#77099)
* Set quality scale to platinum

* Catch exceptions on when service calls

* Add tests
2022-08-21 22:08:57 -07:00
Maciej Bieniek 681b726128
Add parental control switches to NextDNS integration (#76559)
* Add new switches

* Make new switches disabled by default

* Update tests
2022-08-18 11:40:24 +02:00
Maciej Bieniek c1a4dc2f22
Add NextDNS switch platform (#74512)
* Add switch platform

* Use lambda to get state

* Use async with timeout

* Add tests

* Use correct type

* Use Generic for coordinator

* Use TCoordinatorData

* Cleanup generic

* Simplify coordinator data update methods

* Use new entity naming style

* Remove unnecessary code

* Only the first word should be capitalised

* Suggested change

* improve typing in tests

* Improve typing intests

* Update tests/components/nextdns/__init__.py

* black

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-07-11 16:00:13 +02:00