Commit graph

13 commits

Author SHA1 Message Date
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma () 2023-08-10 14:27:03 +02:00
Erik Montnemery
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device ()
* Require keyword arguments to DeviceRegistry.async_get_device

* Update tests

* Update tests

* Don't enforce keyword arguments
2023-07-13 13:39:25 -04:00
Erik Montnemery
eba04824a4
Replace assert_lists_same with pytest_unordered in integrations n-s () 2023-06-20 20:23:14 +02:00
epenet
50cbabb2d8
Add type hints to integration tests (part 15) () 2023-02-15 10:00:49 +01:00
Allen Porter
7a5fa8eb58
Update more nest tests to use common fixtures ()
Update nest tests to use fixtures
2022-06-10 07:14:43 +02:00
Erik Montnemery
5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ()
* Mark device triggers from hidden or auxiliary entities as secondary

* Update tests
2022-04-21 08:01:32 +02:00
Ville Skyttä
f913961d63
Use DeviceAutomationType in tests/components/[m-r]* () 2021-12-20 22:29:22 +01:00
Erik Montnemery
84226da404
Update tests i-o to use async_get() instead of async_get_registry() () 2021-03-09 14:32:08 +01:00
Ville Skyttä
2fb3be50ab
Make DeviceRegistry.async_get_device connections arg optional ()
* Make async_get_device connections Optional, default None

* Remove unnecessary async_get_device connections arg usages

Some of these were using an incorrect collection type, which didn't
cause issues mostly just due to luck.
2021-01-07 13:49:45 +01:00
Allen Porter
baacf2cd7d
Publish timestamps in nest events () 2020-12-30 10:23:48 +01:00
Allen Porter
51b88337ca
Simplify nest event handling ()
* Simplify nest event handling

Use device specific update callbacks rather than a global callback.
The motivation is to prepare for a follow up change that will store
camera specific event tokens on the camera itself, so that a service
can later fetch event specific image snapshots, which would be difficult
to send across the event bus.

* Increase nest camera test coverage

* Remove unnecessary device updates for nest cameras

* Remove unused imports

* Fix device id check to look at returned entry

* Remove unused imports after rebase

* Partial revert of nest event simplification

* Push more update logic into the nest library

* Revert nest device_info changes

* Revert test changes to restore global update behavior

* Bump nest library version to support new callback interfaces
2020-12-27 09:49:22 +01:00
Allen Porter
0670124e8d
Address PR cleanup for nest device triggers () 2020-12-05 10:55:19 +01:00
Allen Porter
945a0a9f7e
Add nest device triggers for camera and doorbell events () 2020-11-30 09:19:42 +01:00