Commit graph

25 commits

Author SHA1 Message Date
Allen Porter
12129e9d21
Update service call return values and error handling ()
* 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 () 2023-04-22 18:09:54 +02:00
Maciej Bieniek
09c41ca2d8
Bump nextdns to version 1.4.0 () 2023-04-16 13:51:07 +02:00
epenet
7b3a932cd9
Remove incorrect constant usage in test () 2023-04-11 10:00:17 +02:00
Maciej Bieniek
2f22613cf9
Address late review for NextDNS entity name translations () 2023-04-04 12:56:39 +02:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
a79be493e5
Adjust hass_client type hint in integration tests ()
* Adjust hass_client type hint in integration tests

* Adjust hass_client_no_auth

* Fix rebase
2023-02-02 16:29:57 -05:00
Franck Nijhof
a79885ceaf
Enable Ruff SIM117 () 2023-01-27 11:52:49 +01:00
Maciej Bieniek
34633b0ede
Bump nextdns library to 1.2.0 () 2022-11-24 19:24:47 +01:00
epenet
00dd27ef1b
Apply hass-relative-import to tests (i-r) () 2022-09-19 09:46:59 +02:00
Maciej Bieniek
cba2893862
Set quality scale to platinum in the NextDNS integration ()
* 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 ()
* Add new switches

* Make new switches disabled by default

* Update tests
2022-08-18 11:40:24 +02:00
Maciej Bieniek
6eb1dbdb74
Add NextDNS binary sensor platform ()
* Add binary_sensor platform

* Add tests

* Add quality scale

* Sort coordinators

* Remove quality scale

* Fix docstring
2022-08-09 17:51:04 +02:00
Maciej Bieniek
753a3c0921
Add new sensors to NextDNS integration ()
* Add DNS-over-HTTP/3 sensors

* Update tests
2022-08-09 17:45:48 +02:00
Maciej Bieniek
9f240d5bab
Bump NextDNS backend library ()
* Bump NextDNS backend library

* Update tests

* Update diagnostics tests

* Use fixtures
2022-08-08 07:52:36 -07:00
Maciej Bieniek
88a5ab1e1e
Bump NextDNS library () 2022-08-04 14:01:26 +02:00
Maciej Bieniek
cb543a21b3
Address NextDNS late review ()
* Init instance attributes

* Remove condition

* Improve typing in tests

* Suggested change
2022-07-23 00:58:48 +02:00
Maciej Bieniek
5b555066ea
Add new NextDNS sensors () 2022-07-23 00:18:22 +02:00
Maciej Bieniek
c1a4dc2f22
Add NextDNS switch platform ()
* 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
Maciej Bieniek
fd7330ea77
Bump NextDNS backend library () 2022-07-08 09:48:46 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum () 2022-07-07 19:57:36 +03:00
Maciej Bieniek
41fd1a24bb
Add NextDNS button platform ()
* Add button platform

* Add button tests

* Fix typo

* Use Platform enum

* Fix coordinator type
2022-07-06 16:29:53 +02:00
Maciej Bieniek
a70cb8af78
Add NextDNS diagnostics platform ()
Add diagnostics platform
2022-07-05 20:14:56 -07:00
Maciej Bieniek
f5e3344bfc
Add NextDNS system health ()
Add system_health
2022-07-05 20:10:04 -07:00
Maciej Bieniek
84119eefaa
Add NextDNS integration ()
* Initial commit

* Update manifest

* Add first test

* Simplify init

* More tests

* Update tests

* More tests

* More tests

* Add tests for sensor platform

* More tests for sensor platform

* Add tests for system_health

* Fix typo

* Improve test coverage

* Improve test coverage

* Add tests for diagnostics

* Add comment

* Run hassfest

* Fix typo

* Run gen_requirements_all

* Fix tests

* Change key name in diagnostics

* Remove diagnostics and system_health platforms

* Bump library
2022-07-03 09:51:50 -07:00