

def test_exit_first(self, update_config):
    'Test when an exit message is sent first on a new device.'
    data = {
        'latitude': 40.7855,
        'longitude': (- 111.7367),
        'device': 'new_device',
        'id': 'Home',
        'trigger': 'exit',
    }
    req = requests.get(_url(data))
    self.assertEqual(200, req.status_code)
    state = hass.states.get('{}.{}'.format('device_tracker', state['device']))
    self.assertEqual(state.state, 'not_home')

dataset/ETHPy150Open home-assistant/home-assistant/tests/components/device_tracker/test_locative.py TestLocative.test_exit_first/VarMisuse@85/144 `data`->`state`