'Test state gets updated to unknown when sensor returns no data.'

@requests_mock.Mocker()
def test_update_when_value_is_none(self, mock_req):

    self.setup_api(None, mock_req)
    for name in self.sensor_dict:
        sensor = self.sensor_dict[name]['sensor']
        self.fake_delay(2)
        sensor.update()
        self.assertEqual(STATE_UNKNOWN, sensor.state)
