'Test the proximity.'

def test_proximity(self):

    config = {'proximity': {'home': {'ignored_zones': ['work'], 'devices': ['device_tracker.test1', 'device_tracker.test2'], 'tolerance': '1'}}}
    self.assertTrue(setup_component(self.hass, DOMAIN, config))
    state = self.hass.states.get('proximity.home')
    assert (state.state == 'not    set')
    assert (state.attributes.get('nearest') == 'not    set')
    assert (state.attributes.get('dir_of_travel') == 'not    set')
    self.hass.states.set('proximity.home', '0')
    self.hass.block_till_done()
    state = self.hass.states.get('proximity.home')
    assert (state.state == '0')
