1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Discover devices from device_trackers with router sources (#45160)

* Discover devices from device_trackers with router sources

* Update homeassistant/components/dhcp/__init__.py

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

* fix stop being called on the wrong context

* clean

* move it to base

* cleanup was too agressive

* Update homeassistant/components/dhcp/__init__.py

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

* coverage

* revert legacy changes

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
J. Nick Koston
2021-01-15 14:01:37 -10:00
committed by GitHub
parent 598a0d19b1
commit 5e01b828af
7 changed files with 393 additions and 68 deletions

View File

@@ -59,3 +59,6 @@ def test_base_tracker_entity():
assert entity.battery_level is None
with pytest.raises(NotImplementedError):
assert entity.state_attributes is None
assert entity.ip_address is None
assert entity.mac_address is None
assert entity.hostname is None