'Test setup component with devices.'

def test_setup_component(self):

    def _add_device(devices):
        assert (len(devices) == 5)
        assert (devices[0].name == 'Device_name    filter    life')
        assert (devices[1].name == 'Device_name    dust')
        assert (devices[2].name == 'Device_name    humidity')
        assert (devices[3].name == 'Device_name    temperature')
        assert (devices[4].name == 'Device_name    air    quality')
    device_fan = _get_device_without_state()
    device_non_fan = _get_with_state()
    self.hass.data[dyson.DYSON_DEVICES] = [device_fan, device_non_fan]
    dyson.setup_platform(self.hass, None, _add_device)
