def test_closest_function_invalid_coordinates(self):
        self.hass.states.set('test_domain.closest_home', 'happy', {
            'latitude': self.hass.config.latitude + 0.1,
            'longitude': self.hass.config.longitude + 0.1,
        })

        self.assertEqual(
            'None',
            template.render(self.hass,
                            '{{ closest("invalid", "coord", states) }}'))
Python-nest has its own mechanism for staying up to date.
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_template.py/TestUtilTemplate.test_closest_function_invalid_coordinates--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/thermostat/nest.py/NestThermostat.update