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

Small fix to be able to use mac and vendor in "device_tracker_new_device" event. (#10537)

* Small fix to be able to use mac and vendor in EVENT_NEW_DEVICE event

* Missed device_tracker test
This commit is contained in:
boltgolt
2017-11-16 07:41:39 +01:00
committed by Paulus Schoutsen
parent e20fd3b973
commit f494c32866
2 changed files with 10 additions and 5 deletions

View File

@@ -481,6 +481,8 @@ class TestComponentsDeviceTracker(unittest.TestCase):
assert test_events[0].data == {
'entity_id': 'device_tracker.hello',
'host_name': 'hello',
'mac': 'MAC_1',
'vendor': 'unknown',
}
# pylint: disable=invalid-name