mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Fixed proximity zone incorrectly using name instead of zone setting. (#5862)
* Fixed proximity zone incorrectly using name instead of zone setting. * Fixed proximity tests to suit change.
This commit is contained in:
committed by
Paulus Schoutsen
parent
f8be731891
commit
2103bfc824
@@ -394,6 +394,7 @@ class TestProximity(unittest.TestCase):
|
||||
'device_tracker.test2'
|
||||
],
|
||||
'tolerance': '1',
|
||||
'zone': 'home'
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -445,7 +446,9 @@ class TestProximity(unittest.TestCase):
|
||||
'devices': [
|
||||
'device_tracker.test1',
|
||||
'device_tracker.test2'
|
||||
]
|
||||
],
|
||||
'zone': 'home'
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -497,7 +500,8 @@ class TestProximity(unittest.TestCase):
|
||||
'devices': [
|
||||
'device_tracker.test1',
|
||||
'device_tracker.test2'
|
||||
]
|
||||
],
|
||||
'zone': 'home'
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -538,7 +542,8 @@ class TestProximity(unittest.TestCase):
|
||||
'devices': [
|
||||
'device_tracker.test1',
|
||||
'device_tracker.test2'
|
||||
]
|
||||
],
|
||||
'zone': 'home'
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -601,7 +606,8 @@ class TestProximity(unittest.TestCase):
|
||||
'devices': [
|
||||
'device_tracker.test1'
|
||||
],
|
||||
'tolerance': 1000
|
||||
'tolerance': 1000,
|
||||
'zone': 'home'
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -654,7 +660,8 @@ class TestProximity(unittest.TestCase):
|
||||
'devices': [
|
||||
'device_tracker.test1',
|
||||
'device_tracker.test2'
|
||||
]
|
||||
],
|
||||
'zone': 'home'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user