Commit Graph

6 Commits (36b0fc17df229fc900030cb76b75142427a3057e)

Author SHA1 Message Date
Allen Porter 12129e9d21
Update service call return values and error handling (#94657)
* Update return signature of service calls

* Add timeout error handling in websocket api for service calls

* Update recorder tests to remove assertion on service call

* Remove timeout behavior and update callers that depend on it today

* Fix tests

* Add missing else

* await coro directly

* Fix more tests

* Update the intent task to use wait instead of timeout

* Remove script service call limits and limit constants

* Update tests that depend on service call limits

* Use wait instead of wait_for and add test

* Update homeassistant/helpers/intent.py

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

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-06-16 07:01:40 -07:00
Maciej Bieniek 8389086388
Add new parental control switches for NextDNS (#91507) 2023-04-22 18:09:54 +02:00
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