Restructure device tracker (#23862)
* Restructure device tracker * Docstyle * Fix typing * Lint * Lint * Fix tests
This commit is contained in:
parent
7a4238095d
commit
70ed58a78d
20 changed files with 978 additions and 757 deletions
|
@ -102,11 +102,11 @@ def mock_device_tracker_conf():
|
|||
devices.append(entity)
|
||||
|
||||
with patch(
|
||||
'homeassistant.components.device_tracker'
|
||||
'homeassistant.components.device_tracker.legacy'
|
||||
'.DeviceTracker.async_update_config',
|
||||
side_effect=mock_update_config
|
||||
), patch(
|
||||
'homeassistant.components.device_tracker.async_load_config',
|
||||
'homeassistant.components.device_tracker.legacy.async_load_config',
|
||||
side_effect=lambda *args: mock_coro(devices)
|
||||
):
|
||||
yield devices
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue